Skip to content

Latest commit

 

History

History
138 lines (86 loc) · 3.28 KB

HealthApi.md

File metadata and controls

138 lines (86 loc) · 3.28 KB

\HealthApi

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

GetDevicesHealthList

[]ResourceHealth GetDevicesHealthList(ctx).Ids(ids).Execute()

Example

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)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
ids []string

Return type

[]ResourceHealth

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetServicesHealthList

[]ResourceHealth GetServicesHealthList(ctx).Ids(ids).Execute()

Example

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)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
ids []string

Return type

[]ResourceHealth

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]