All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
GetDevicesHealthList | Get /monitor/api/v8/health/devices/list | |
GetServicesHealthList | Get /monitor/api/v8/health/services/list |
[]ResourceHealth GetDevicesHealthList(ctx).Ids(ids).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ids := []string{"Inner_example"} // []string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HealthApi.GetDevicesHealthList(context.Background()).Ids(ids).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HealthApi.GetDevicesHealthList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDevicesHealthList`: []ResourceHealth
fmt.Fprintf(os.Stdout, "Response from `HealthApi.GetDevicesHealthList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetDevicesHealthListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ids | []string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourceHealth GetServicesHealthList(ctx).Ids(ids).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
ids := []string{"Inner_example"} // []string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.HealthApi.GetServicesHealthList(context.Background()).Ids(ids).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `HealthApi.GetServicesHealthList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetServicesHealthList`: []ResourceHealth
fmt.Fprintf(os.Stdout, "Response from `HealthApi.GetServicesHealthList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetServicesHealthListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
ids | []string |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]