���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/drive.rickard.co/systemMYs/classes/vendor/Elasticsearch/Endpoints/Indices/Stats.php
���ѧ٧ѧ�
<?php namespace Elasticsearch\Endpoints\Indices; use Elasticsearch\Endpoints\AbstractEndpoint; /** * Class Stats * * @category Elasticsearch * @package Elasticsearch\Endpoints\Indices * @author Zachary Tong <zach@elastic.co> * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elastic.co */ class Stats extends AbstractEndpoint { // Limit the information returned the specific metrics. private $metric; /** * @param $metric * * @return $this */ public function setMetric($metric) { if (isset($metric) !== true) { return $this; } if (is_array($metric)) { $metric = implode(",", $metric); } $this->metric = $metric; return $this; } /** * @return string */ public function getURI() { $index = $this->index; $metric = $this->metric; $uri = "/_stats"; if (isset($index) === true && isset($metric) === true) { $uri = "/$index/_stats/$metric"; } elseif (isset($index) === true) { $uri = "/$index/_stats"; } elseif (isset($metric) === true) { $uri = "/_stats/$metric"; } return $uri; } /** * @return string[] */ public function getParamWhitelist() { return array( 'completion_fields', 'fielddata_fields', 'fields', 'groups', 'human', 'level', 'types', 'metric', 'include_segment_file_sizes' ); } /** * @return string */ public function getMethod() { return 'GET'; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.04 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�