Skip to content

Latest commit

 

History

History
493 lines (330 loc) · 13.6 KB

File metadata and controls

493 lines (330 loc) · 13.6 KB

OpenAPI\Client\StatisticServiceApi

All URIs are relative to https://api.beget.com, except if the operation defines another base path.

Method HTTP request Description
statisticServiceGetCpu() GET /v1/vps/statistic/cpu/{id}
statisticServiceGetCpuDetails() GET /v1/vps/statistic/cpu-details/{id}
statisticServiceGetDisk() GET /v1/vps/statistic/disk/{id}
statisticServiceGetDiskUsage() GET /v1/vps/statistic/disk-usage/{id}
statisticServiceGetLoadAverage() GET /v1/vps/statistic/load-average/{id}
statisticServiceGetMemory() GET /v1/vps/statistic/memory/{id}
statisticServiceGetNetwork() GET /v1/vps/statistic/network/{id}
statisticServiceGetProcessList() GET /v1/vps/statistic/processes/{id}

statisticServiceGetCpu()

statisticServiceGetCpu($id, $period): \OpenAPI\Client\Model\StatisticGetCpuResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetCpu($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetCpu: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetCpuResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetCpuDetails()

statisticServiceGetCpuDetails($id, $period): \OpenAPI\Client\Model\StatisticGetCpuDetailsResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetCpuDetails($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetCpuDetails: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetCpuDetailsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetDisk()

statisticServiceGetDisk($id, $period): \OpenAPI\Client\Model\StatisticGetDiskResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetDisk($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetDisk: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetDiskResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetDiskUsage()

statisticServiceGetDiskUsage($id, $period): \OpenAPI\Client\Model\StatisticGetDiskUsageResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetDiskUsage($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetDiskUsage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetDiskUsageResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetLoadAverage()

statisticServiceGetLoadAverage($id, $period): \OpenAPI\Client\Model\StatisticGetLoadAverageResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetLoadAverage($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetLoadAverage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetLoadAverageResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetMemory()

statisticServiceGetMemory($id, $period): \OpenAPI\Client\Model\StatisticGetMemoryResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetMemory($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetMemory: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetMemoryResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetNetwork()

statisticServiceGetNetwork($id, $period): \OpenAPI\Client\Model\StatisticGetNetworkResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string
$period = 'period_example'; // string

try {
    $result = $apiInstance->statisticServiceGetNetwork($id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetNetwork: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string
period string [optional]

Return type

\OpenAPI\Client\Model\StatisticGetNetworkResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statisticServiceGetProcessList()

statisticServiceGetProcessList($id): \OpenAPI\Client\Model\StatisticGetProcessListResponse

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\StatisticServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string

try {
    $result = $apiInstance->statisticServiceGetProcessList($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticServiceApi->statisticServiceGetProcessList: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string

Return type

\OpenAPI\Client\Model\StatisticGetProcessListResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]