All URIs are relative to https://api.beget.com
| Method | HTTP request | Description |
|---|---|---|
| CdnStatisticServiceGetNetwork | Get /v1/cloud/cdn/{service_id}/statistic/network | |
| CdnStatisticServiceGetRequest | Get /v1/cloud/cdn/{service_id}/statistic/count-request | |
| CdnStatisticServiceGetTraffic | Get /v1/cloud/cdn/{service_id}/statistic/traffic-usage |
CdnStatisticGetNetworkResponse CdnStatisticServiceGetNetwork(ctx, serviceId).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CdnStatisticServiceApi.CdnStatisticServiceGetNetwork(context.Background(), serviceId).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CdnStatisticServiceApi.CdnStatisticServiceGetNetwork``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CdnStatisticServiceGetNetwork`: CdnStatisticGetNetworkResponse
fmt.Fprintf(os.Stdout, "Response from `CdnStatisticServiceApi.CdnStatisticServiceGetNetwork`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| serviceId | string |
Other parameters are passed through a pointer to a apiCdnStatisticServiceGetNetworkRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
period | string | |
CdnStatisticGetNetworkResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CdnStatisticGetRequestResponse CdnStatisticServiceGetRequest(ctx, serviceId).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CdnStatisticServiceApi.CdnStatisticServiceGetRequest(context.Background(), serviceId).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CdnStatisticServiceApi.CdnStatisticServiceGetRequest``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CdnStatisticServiceGetRequest`: CdnStatisticGetRequestResponse
fmt.Fprintf(os.Stdout, "Response from `CdnStatisticServiceApi.CdnStatisticServiceGetRequest`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| serviceId | string |
Other parameters are passed through a pointer to a apiCdnStatisticServiceGetRequestRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
period | string | |
CdnStatisticGetRequestResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CdnStatisticGetTrafficResponse CdnStatisticServiceGetTraffic(ctx, serviceId).Period(period).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/LTD-Beget/openapi-cloud-go"
)
func main() {
serviceId := "serviceId_example" // string |
period := "period_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CdnStatisticServiceApi.CdnStatisticServiceGetTraffic(context.Background(), serviceId).Period(period).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CdnStatisticServiceApi.CdnStatisticServiceGetTraffic``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CdnStatisticServiceGetTraffic`: CdnStatisticGetTrafficResponse
fmt.Fprintf(os.Stdout, "Response from `CdnStatisticServiceApi.CdnStatisticServiceGetTraffic`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| serviceId | string |
Other parameters are passed through a pointer to a apiCdnStatisticServiceGetTrafficRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
period | string | |
CdnStatisticGetTrafficResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]