Skip to content

Commit 9e415c4

Browse files
committed
* SDK changes for LM Monitoring
1 parent 18dc9cd commit 9e415c4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/eCloud/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ public function loadBalancers()
320320
{
321321
return (new LoadBalancerClient($this->httpClient))->auth($this->token);
322322
}
323+
323324
/**
324325
* @return BaseClient
325326
*/

src/eCloud/MonitoringClient.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ public function getEntityMap()
2020
];
2121
}
2222

23+
/**
24+
* @param $data
25+
* @return Instance
26+
*/
2327
public function loadEntity($data)
2428
{
2529
return new Instance(
2630
$this->apiToFriendly($data, $this->getEntityMap())
2731
);
2832
}
2933

34+
/**
35+
* @param string $vmId
36+
* @return array|string
37+
* @throws \GuzzleHttp\Exception\GuzzleException
38+
*/
3039
public function getAvailableMetrics(string $vmId)
3140
{
3241
try {
@@ -37,6 +46,12 @@ public function getAvailableMetrics(string $vmId)
3746
return $data->getBody()->getContents();
3847
}
3948

49+
/**
50+
* @param int $widgetId
51+
* @param $additionalQueryParams
52+
* @return array|string
53+
* @throws \GuzzleHttp\Exception\GuzzleException
54+
*/
4055
public function getMetrics(int $widgetId, $additionalQueryParams)
4156
{
4257
try {

0 commit comments

Comments
 (0)