All URIs are relative to https://api.uptrends.com/v4
| Method | HTTP request | Description |
|---|---|---|
| StatusGetMonitorGroupStatus | Get /Status/MonitorGroup/{monitorGroupGuid} | Gets a list of all monitor group status data. |
| StatusGetMonitorStatus | Get /Status/Monitor/{monitorGuid} | Gets all monitor status data. |
MonitorStatusListResponse StatusGetMonitorGroupStatus(ctx, monitorGroupGuid).Execute()
Gets a list of all monitor group status data.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The Guid of the monitor group.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatusAPI.StatusGetMonitorGroupStatus(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.StatusGetMonitorGroupStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatusGetMonitorGroupStatus`: MonitorStatusListResponse
fmt.Fprintf(os.Stdout, "Response from `StatusAPI.StatusGetMonitorGroupStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The Guid of the monitor group. |
Other parameters are passed through a pointer to a apiStatusGetMonitorGroupStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorStatusResponse StatusGetMonitorStatus(ctx, monitorGuid).Execute()
Gets all monitor status data.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGuid := "monitorGuid_example" // string | The Guid of the monitor.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatusAPI.StatusGetMonitorStatus(context.Background(), monitorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.StatusGetMonitorStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StatusGetMonitorStatus`: MonitorStatusResponse
fmt.Fprintf(os.Stdout, "Response from `StatusAPI.StatusGetMonitorStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGuid | string | The Guid of the monitor. |
Other parameters are passed through a pointer to a apiStatusGetMonitorStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]