Skip to content

Latest commit

 

History

History
146 lines (94 loc) · 4.14 KB

File metadata and controls

146 lines (94 loc) · 4.14 KB

\StatusAPI

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.

StatusGetMonitorGroupStatus

MonitorStatusListResponse StatusGetMonitorGroupStatus(ctx, monitorGroupGuid).Execute()

Gets a list of all monitor group status data.

Example

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

Path Parameters

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

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

Name Type Description Notes

Return type

MonitorStatusListResponse

Authorization

basicauth

HTTP request headers

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

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

StatusGetMonitorStatus

MonitorStatusResponse StatusGetMonitorStatus(ctx, monitorGuid).Execute()

Gets all monitor status data.

Example

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGuid string The Guid of the monitor.

Other Parameters

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

Name Type Description Notes

Return type

MonitorStatusResponse

Authorization

basicauth

HTTP request headers

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

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