File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Elasticsearch \Endpoints \Cluster ;
4
+
5
+ use Elasticsearch \Endpoints \AbstractEndpoint ;
6
+
7
+ /**
8
+ * RemoteInfo Health
9
+ *
10
+ * @category Elasticsearch
11
+ * @package Elasticsearch\Endpoints\Cluster
12
+ * @author Zachary Tong <[email protected] >
13
+ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14
+ * @link http://elastic.co
15
+ */
16
+ class RemoteInfo extends AbstractEndpoint
17
+ {
18
+ /**
19
+ * @return string
20
+ */
21
+ public function getURI ()
22
+ {
23
+ return "/_remote/info " ;
24
+ }
25
+
26
+ /**
27
+ * @return string[]
28
+ */
29
+ public function getParamWhitelist ()
30
+ {
31
+ return [];
32
+ }
33
+
34
+ /**
35
+ * @return string
36
+ */
37
+ public function getMethod ()
38
+ {
39
+ return 'GET ' ;
40
+ }
41
+ }
Original file line number Diff line number Diff line change @@ -202,4 +202,22 @@ public function allocationExplain($params = array())
202
202
203
203
return $ this ->performRequest ($ endpoint );
204
204
}
205
+
206
+ /**
207
+ * $params[]
208
+ *
209
+ * @param $params array Associative array of parameters
210
+ *
211
+ * @return array
212
+ */
213
+ public function remoteInfo ($ params = array ())
214
+ {
215
+ /** @var callback $endpointBuilder */
216
+ $ endpointBuilder = $ this ->endpoints ;
217
+
218
+ /** @var \Elasticsearch\Endpoints\Cluster\RemoteInfo $endpoint */
219
+ $ endpoint = $ endpointBuilder ('Cluster\RemoteInfo ' );
220
+
221
+ return $ this ->performRequest ($ endpoint );
222
+ }
205
223
}
You can’t perform that action at this time.
0 commit comments