Skip to content

Latest commit

 

History

History
505 lines (326 loc) · 15.7 KB

PostgresqlStatisticServiceApi.md

File metadata and controls

505 lines (326 loc) · 15.7 KB

\PostgresqlStatisticServiceApi

All URIs are relative to https://api.beget.com

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

PostgresqlStatisticGetCpuResponse PostgresqlStatisticServiceGetCpu(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetCpu`: PostgresqlStatisticGetCpuResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpu`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetCpuRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetCpuDetailsResponse PostgresqlStatisticServiceGetCpuDetails(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetCpuDetails`: PostgresqlStatisticGetCpuDetailsResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetCpuDetails`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetCpuDetailsRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetDiskResponse PostgresqlStatisticServiceGetDisk(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetDisk`: PostgresqlStatisticGetDiskResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDisk`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetDiskRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetDiskUsageResponse PostgresqlStatisticServiceGetDiskUsage(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetDiskUsage`: PostgresqlStatisticGetDiskUsageResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetDiskUsage`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetDiskUsageRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetLoadAverageResponse PostgresqlStatisticServiceGetLoadAverage(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetLoadAverage`: PostgresqlStatisticGetLoadAverageResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetLoadAverage`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetLoadAverageRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetMemoryResponse PostgresqlStatisticServiceGetMemory(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetMemory`: PostgresqlStatisticGetMemoryResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetMemory`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetMemoryRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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

PostgresqlStatisticGetNetworkResponse PostgresqlStatisticServiceGetNetwork(ctx, serviceId).Period(period).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    serviceId := "serviceId_example" // string | 
    period := "period_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork(context.Background(), serviceId).Period(period).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `PostgresqlStatisticServiceGetNetwork`: PostgresqlStatisticGetNetworkResponse
    fmt.Fprintf(os.Stdout, "Response from `PostgresqlStatisticServiceApi.PostgresqlStatisticServiceGetNetwork`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serviceId string

Other Parameters

Other parameters are passed through a pointer to a apiPostgresqlStatisticServiceGetNetworkRequest struct via the builder pattern

Name Type Description Notes

period | string | |

Return type

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]