All URIs are relative to https://api.korewireless.com
Method | HTTP request | Description |
---|---|---|
GetMetrics | Get /omnicore/subscriptions/{subscriptionId}/metrics |
Metrics GetMetrics(ctx, subscriptionId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/korewireless/OmniCore-Go-SDK"
)
func main() {
subscriptionId := "subscriptionId_example" // string | Subscription ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MetricsApi.GetMetrics(context.Background(), subscriptionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MetricsApi.GetMetrics``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMetrics`: Metrics
fmt.Fprintf(os.Stdout, "Response from `MetricsApi.GetMetrics`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
subscriptionId | string | Subscription ID |
Other parameters are passed through a pointer to a apiGetMetricsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]