Skip to content

Latest commit

 

History

History
434 lines (291 loc) · 13.2 KB

PostgresqlStatisticServiceApi.md

File metadata and controls

434 lines (291 loc) · 13.2 KB

OpenAPI\Client\PostgresqlStatisticServiceApi

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

Method HTTP request Description
postgresqlStatisticServiceGetCpu() GET /v1/cloud/postgresql/{service_id}/statistic/cpu
postgresqlStatisticServiceGetCpuDetails() GET /v1/cloud/postgresql/{service_id}/statistic/cpu-details
postgresqlStatisticServiceGetDisk() GET /v1/cloud/postgresql/{service_id}/statistic/disk
postgresqlStatisticServiceGetDiskUsage() GET /v1/cloud/postgresql/{service_id}/statistic/disk-usage
postgresqlStatisticServiceGetLoadAverage() GET /v1/cloud/postgresql/{service_id}/statistic/load-average
postgresqlStatisticServiceGetMemory() GET /v1/cloud/postgresql/{service_id}/statistic/memory
postgresqlStatisticServiceGetNetwork() GET /v1/cloud/postgresql/{service_id}/statistic/network

postgresqlStatisticServiceGetCpu()

postgresqlStatisticServiceGetCpu($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetCpuResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetCpu($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetCpu: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetCpuResponse

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]

postgresqlStatisticServiceGetCpuDetails()

postgresqlStatisticServiceGetCpuDetails($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetCpuDetailsResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetCpuDetails($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetCpuDetails: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetCpuDetailsResponse

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]

postgresqlStatisticServiceGetDisk()

postgresqlStatisticServiceGetDisk($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetDiskResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetDisk($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetDisk: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetDiskResponse

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]

postgresqlStatisticServiceGetDiskUsage()

postgresqlStatisticServiceGetDiskUsage($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetDiskUsageResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetDiskUsage($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetDiskUsage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetDiskUsageResponse

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]

postgresqlStatisticServiceGetLoadAverage()

postgresqlStatisticServiceGetLoadAverage($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetLoadAverageResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetLoadAverage($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetLoadAverage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetLoadAverageResponse

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]

postgresqlStatisticServiceGetMemory()

postgresqlStatisticServiceGetMemory($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetMemoryResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetMemory($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetMemory: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetMemoryResponse

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]

postgresqlStatisticServiceGetNetwork()

postgresqlStatisticServiceGetNetwork($service_id, $period): \OpenAPI\Client\Model\PostgresqlStatisticGetNetworkResponse

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\PostgresqlStatisticServiceApi(
    // 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->postgresqlStatisticServiceGetNetwork($service_id, $period);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostgresqlStatisticServiceApi->postgresqlStatisticServiceGetNetwork: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
service_id string
period string [optional]

Return type

\OpenAPI\Client\Model\PostgresqlStatisticGetNetworkResponse

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]