Skip to content

Latest commit

 

History

History
434 lines (291 loc) · 12.7 KB

File metadata and controls

434 lines (291 loc) · 12.7 KB

OpenAPI\Client\MysqlStatisticServiceApi

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

Method HTTP request Description
mysqlStatisticServiceGetCpu() GET /v1/cloud/mysql/{service_id}/statistic/cpu
mysqlStatisticServiceGetCpuDetails() GET /v1/cloud/mysql/{service_id}/statistic/cpu-details
mysqlStatisticServiceGetDisk() GET /v1/cloud/mysql/{service_id}/statistic/disk
mysqlStatisticServiceGetDiskUsage() GET /v1/cloud/mysql/{service_id}/statistic/disk-usage
mysqlStatisticServiceGetLoadAverage() GET /v1/cloud/mysql/{service_id}/statistic/load-average
mysqlStatisticServiceGetMemory() GET /v1/cloud/mysql/{service_id}/statistic/memory
mysqlStatisticServiceGetNetwork() GET /v1/cloud/mysql/{service_id}/statistic/network

mysqlStatisticServiceGetCpu()

mysqlStatisticServiceGetCpu($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetCpuResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetCpuResponse

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]

mysqlStatisticServiceGetCpuDetails()

mysqlStatisticServiceGetCpuDetails($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetCpuDetailsResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetCpuDetailsResponse

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]

mysqlStatisticServiceGetDisk()

mysqlStatisticServiceGetDisk($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetDiskResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetDiskResponse

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]

mysqlStatisticServiceGetDiskUsage()

mysqlStatisticServiceGetDiskUsage($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetDiskUsageResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetDiskUsageResponse

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]

mysqlStatisticServiceGetLoadAverage()

mysqlStatisticServiceGetLoadAverage($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetLoadAverageResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetLoadAverageResponse

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]

mysqlStatisticServiceGetMemory()

mysqlStatisticServiceGetMemory($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetMemoryResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetMemoryResponse

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]

mysqlStatisticServiceGetNetwork()

mysqlStatisticServiceGetNetwork($service_id, $period): \OpenAPI\Client\Model\MysqlStatisticGetNetworkResponse

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\MysqlStatisticServiceApi(
    // 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string

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

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\MysqlStatisticGetNetworkResponse

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]