All URIs are relative to https://api.beget.com
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} |
StatisticGetCpuResponse StatisticServiceGetCpu(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetCpu(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetCpu``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetCpu`: StatisticGetCpuResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetCpu`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetCpuRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetCpuDetailsResponse StatisticServiceGetCpuDetails(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetCpuDetails(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetCpuDetails``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetCpuDetails`: StatisticGetCpuDetailsResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetCpuDetails`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetCpuDetailsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
StatisticGetCpuDetailsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetDiskResponse StatisticServiceGetDisk(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetDisk(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetDisk``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetDisk`: StatisticGetDiskResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetDisk`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetDiskRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetDiskUsageResponse StatisticServiceGetDiskUsage(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetDiskUsage(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetDiskUsage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetDiskUsage`: StatisticGetDiskUsageResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetDiskUsage`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetDiskUsageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetLoadAverageResponse StatisticServiceGetLoadAverage(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetLoadAverage(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetLoadAverage``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetLoadAverage`: StatisticGetLoadAverageResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetLoadAverage`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetLoadAverageRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
StatisticGetLoadAverageResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetMemoryResponse StatisticServiceGetMemory(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetMemory(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetMemory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetMemory`: StatisticGetMemoryResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetMemory`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetMemoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetNetworkResponse StatisticServiceGetNetwork(ctx, id).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetNetwork(context.Background(), id).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetNetwork``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetNetwork`: StatisticGetNetworkResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetNetwork`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetNetworkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
period | string | |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StatisticGetProcessListResponse StatisticServiceGetProcessList(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatisticServiceApi.StatisticServiceGetProcessList(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatisticServiceApi.StatisticServiceGetProcessList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatisticServiceGetProcessList`: StatisticGetProcessListResponse
fmt.Fprintf(os.Stdout, "Response from `StatisticServiceApi.StatisticServiceGetProcessList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiStatisticServiceGetProcessListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
StatisticGetProcessListResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]