File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ public function loadBalancers()
320
320
{
321
321
return (new LoadBalancerClient ($ this ->httpClient ))->auth ($ this ->token );
322
322
}
323
+
323
324
/**
324
325
* @return BaseClient
325
326
*/
Original file line number Diff line number Diff line change @@ -20,13 +20,22 @@ public function getEntityMap()
20
20
];
21
21
}
22
22
23
+ /**
24
+ * @param $data
25
+ * @return Instance
26
+ */
23
27
public function loadEntity ($ data )
24
28
{
25
29
return new Instance (
26
30
$ this ->apiToFriendly ($ data , $ this ->getEntityMap ())
27
31
);
28
32
}
29
33
34
+ /**
35
+ * @param string $vmId
36
+ * @return array|string
37
+ * @throws \GuzzleHttp\Exception\GuzzleException
38
+ */
30
39
public function getAvailableMetrics (string $ vmId )
31
40
{
32
41
try {
@@ -37,6 +46,12 @@ public function getAvailableMetrics(string $vmId)
37
46
return $ data ->getBody ()->getContents ();
38
47
}
39
48
49
+ /**
50
+ * @param int $widgetId
51
+ * @param $additionalQueryParams
52
+ * @return array|string
53
+ * @throws \GuzzleHttp\Exception\GuzzleException
54
+ */
40
55
public function getMetrics (int $ widgetId , $ additionalQueryParams )
41
56
{
42
57
try {
You can’t perform that action at this time.
0 commit comments