All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| MetricsDetail | Get /api/v1/prometheus_metrics | Get Prometheus metrics |
string MetricsDetail(ctx).Request(request).Execute()
Get Prometheus metrics
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yugabyte/platform-go-client/v1"
)
func main() {
request := TODO // interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MetricsAPI.MetricsDetail(context.Background()).Request(request).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetricsAPI.MetricsDetail``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MetricsDetail`: string
fmt.Fprintf(os.Stdout, "Response from `MetricsAPI.MetricsDetail`: %v\n", resp)
}Other parameters are passed through a pointer to a apiMetricsDetailRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| request | interface{} |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]