All URIs are relative to https://api.uptrends.com/v4
| Method | HTTP request | Description |
|---|---|---|
| MonitorGroupAddMaintenancePeriodToAllMembers | Post /MonitorGroup/{monitorGroupGuid}/AddMaintenancePeriodToAllMembers | Adds the provided maintenance period to all monitors in the group specified |
| MonitorGroupAddMonitorToMonitorGroup | Post /MonitorGroup/{monitorGroupGuid}/Member/{monitorGuid} | Adds the specified monitor to the monitor group |
| MonitorGroupCreateAuthorizationForMonitorGroup | Post /MonitorGroup/{monitorGroupGuid}/Authorizations | Create monitor authorizations for monitor group If the wanted authorizations requires other authorizations, these will be added as well |
| MonitorGroupCreateMonitorGroup | Post /MonitorGroup | Creates a new monitor group |
| MonitorGroupDeleteAuthorizationForMonitorGroup | Delete /MonitorGroup/{monitorGroupGuid}/Authorizations/{authorizationGuid} | Delete monitor authorization for monitor group |
| MonitorGroupDeleteMonitorGroup | Delete /MonitorGroup/{monitorGroupGuid} | Deletes the specified monitor group |
| MonitorGroupGetAllMonitorGroups | Get /MonitorGroup | Gets all monitor groups |
| MonitorGroupGetAuthorizationsOfMonitorGroup | Get /MonitorGroup/{monitorGroupGuid}/Authorizations | Get monitor authorizations of monitor group |
| MonitorGroupGetMonitorGroup | Get /MonitorGroup/{monitorGroupGuid} | Gets the details of a monitor group |
| MonitorGroupGetMonitorGroupMembers | Get /MonitorGroup/{monitorGroupGuid}/Member | Gets a list of all members of a monitor group |
| MonitorGroupRemoveMonitorFromMonitorGroup | Delete /MonitorGroup/{monitorGroupGuid}/Member/{monitorGuid} | Removes the specified monitor from the monitor group |
| MonitorGroupStartAllMonitorAlertsInGroup | Post /MonitorGroup/{monitorGroupGuid}/StartAllMonitorAlerts | Starts alerting for all monitors that are a member of the monitor group specified by the monitor group GUID |
| MonitorGroupStartAllMonitorsInGroup | Post /MonitorGroup/{monitorGroupGuid}/StartAllMonitors | Starts all monitors that are a member of the monitor group specified by the monitor group GUID |
| MonitorGroupStopAllMonitorAlertsInGroup | Post /MonitorGroup/{monitorGroupGuid}/StopAllMonitorAlerts | Stops alerting for all monitors that are a member of the monitor group specified by the monitor group GUID |
| MonitorGroupStopAllMonitorsInGroup | Post /MonitorGroup/{monitorGroupGuid}/StopAllMonitors | Stops all monitors that are a member of the monitor group specified by the monitor group GUID |
| MonitorGroupUpdateMonitorGroup | Put /MonitorGroup/{monitorGroupGuid} | Updates the monitor group with the Guid specified |
MonitorGroupAddMaintenancePeriodToAllMembers(ctx, monitorGroupGuid).MaintenancePeriod(maintenancePeriod).Execute()
Adds the provided maintenance period to all monitors in the group specified
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string |
maintenancePeriod := *openapiclient.NewMaintenancePeriod(int32(123), openapiclient.ScheduleMode("OneTime"), openapiclient.MaintenanceTypes("DisableMonitoring")) // MaintenancePeriod | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupAddMaintenancePeriodToAllMembers(context.Background(), monitorGroupGuid).MaintenancePeriod(maintenancePeriod).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupAddMaintenancePeriodToAllMembers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string |
Other parameters are passed through a pointer to a apiMonitorGroupAddMaintenancePeriodToAllMembersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
maintenancePeriod | MaintenancePeriod | |
(empty response body)
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupAddMonitorToMonitorGroup(ctx, monitorGroupGuid, monitorGuid).Execute()
Adds the specified monitor to the monitor group
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 to add the monitor to
monitorGuid := "monitorGuid_example" // string | The monitor Guid
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupAddMonitorToMonitorGroup(context.Background(), monitorGroupGuid, monitorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupAddMonitorToMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The Guid of the monitor group to add the monitor to | |
| monitorGuid | string | The monitor Guid |
Other parameters are passed through a pointer to a apiMonitorGroupAddMonitorToMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]MonitorGroupAuthorization MonitorGroupCreateAuthorizationForMonitorGroup(ctx, monitorGroupGuid).MonitorGroupAuthorization(monitorGroupAuthorization).Execute()
Create monitor authorizations for monitor group If the wanted authorizations requires other authorizations, these will be added as well
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
monitorGroupAuthorization := *openapiclient.NewMonitorGroupAuthorization(openapiclient.MonitorGroupAuthorizationType("ViewMonitorDataInGroup")) // MonitorGroupAuthorization | Authorization to add (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupCreateAuthorizationForMonitorGroup(context.Background(), monitorGroupGuid).MonitorGroupAuthorization(monitorGroupAuthorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupCreateAuthorizationForMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupCreateAuthorizationForMonitorGroup`: []MonitorGroupAuthorization
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupCreateAuthorizationForMonitorGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupCreateAuthorizationForMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
monitorGroupAuthorization | MonitorGroupAuthorization | Authorization to add |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroup MonitorGroupCreateMonitorGroup(ctx).MonitorGroup(monitorGroup).Execute()
Creates a new monitor group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroup := *openapiclient.NewMonitorGroup(false) // MonitorGroup | The MonitorGroup object to be created (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupCreateMonitorGroup(context.Background()).MonitorGroup(monitorGroup).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupCreateMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupCreateMonitorGroup`: MonitorGroup
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupCreateMonitorGroup`: %v\n", resp)
}Other parameters are passed through a pointer to a apiMonitorGroupCreateMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| monitorGroup | MonitorGroup | The MonitorGroup object to be created |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupDeleteAuthorizationForMonitorGroup(ctx, monitorGroupGuid, authorizationGuid).Execute()
Delete monitor authorization for monitor group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
authorizationGuid := "authorizationGuid_example" // string | The authorization GUID that needs to be deleted
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupDeleteAuthorizationForMonitorGroup(context.Background(), monitorGroupGuid, authorizationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupDeleteAuthorizationForMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID | |
| authorizationGuid | string | The authorization GUID that needs to be deleted |
Other parameters are passed through a pointer to a apiMonitorGroupDeleteAuthorizationForMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupDeleteMonitorGroup(ctx, monitorGroupGuid).Execute()
Deletes the specified monitor group
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 to be deleted
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupDeleteMonitorGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupDeleteMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The Guid of the monitor group to be deleted |
Other parameters are passed through a pointer to a apiMonitorGroupDeleteMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]MonitorGroup MonitorGroupGetAllMonitorGroups(ctx).Execute()
Gets all monitor groups
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupGetAllMonitorGroups(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupGetAllMonitorGroups``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupGetAllMonitorGroups`: []MonitorGroup
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupGetAllMonitorGroups`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiMonitorGroupGetAllMonitorGroupsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]MonitorGroupAuthorization MonitorGroupGetAuthorizationsOfMonitorGroup(ctx, monitorGroupGuid).Execute()
Get monitor authorizations of monitor group
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupGetAuthorizationsOfMonitorGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupGetAuthorizationsOfMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupGetAuthorizationsOfMonitorGroup`: []MonitorGroupAuthorization
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupGetAuthorizationsOfMonitorGroup`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupGetAuthorizationsOfMonitorGroupRequest 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]
MonitorGroup MonitorGroupGetMonitorGroup(ctx, monitorGroupGuid).Execute()
Gets the details of a monitor group
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 to be retrieved
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupGetMonitorGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupGetMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupGetMonitorGroup`: MonitorGroup
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupGetMonitorGroup`: %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 to be retrieved |
Other parameters are passed through a pointer to a apiMonitorGroupGetMonitorGroupRequest 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]
MonitorGroupMember MonitorGroupGetMonitorGroupMembers(ctx, monitorGroupGuid).Execute()
Gets a list of all members of a monitor group
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 to retrieve the members for
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.MonitorGroupAPI.MonitorGroupGetMonitorGroupMembers(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupGetMonitorGroupMembers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `MonitorGroupGetMonitorGroupMembers`: MonitorGroupMember
fmt.Fprintf(os.Stdout, "Response from `MonitorGroupAPI.MonitorGroupGetMonitorGroupMembers`: %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 to retrieve the members for |
Other parameters are passed through a pointer to a apiMonitorGroupGetMonitorGroupMembersRequest 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]
MonitorGroupRemoveMonitorFromMonitorGroup(ctx, monitorGroupGuid, monitorGuid).Execute()
Removes the specified monitor from the monitor group
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 to remove the monitor from
monitorGuid := "monitorGuid_example" // string | The monitor Guid to be removed
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupRemoveMonitorFromMonitorGroup(context.Background(), monitorGroupGuid, monitorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupRemoveMonitorFromMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The Guid of the monitor group to remove the monitor from | |
| monitorGuid | string | The monitor Guid to be removed |
Other parameters are passed through a pointer to a apiMonitorGroupRemoveMonitorFromMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupStartAllMonitorAlertsInGroup(ctx, monitorGroupGuid).Execute()
Starts alerting for all monitors that are a member of the monitor group specified by the monitor group GUID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupStartAllMonitorAlertsInGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupStartAllMonitorAlertsInGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupStartAllMonitorAlertsInGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupStartAllMonitorsInGroup(ctx, monitorGroupGuid).Execute()
Starts all monitors that are a member of the monitor group specified by the monitor group GUID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupStartAllMonitorsInGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupStartAllMonitorsInGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupStartAllMonitorsInGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupStopAllMonitorAlertsInGroup(ctx, monitorGroupGuid).Execute()
Stops alerting for all monitors that are a member of the monitor group specified by the monitor group GUID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupStopAllMonitorAlertsInGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupStopAllMonitorAlertsInGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupStopAllMonitorAlertsInGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupStopAllMonitorsInGroup(ctx, monitorGroupGuid).Execute()
Stops all monitors that are a member of the monitor group specified by the monitor group GUID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/JetManiack/go-uptrends-api"
)
func main() {
monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupStopAllMonitorsInGroup(context.Background(), monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupStopAllMonitorsInGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The monitor group GUID |
Other parameters are passed through a pointer to a apiMonitorGroupStopAllMonitorsInGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MonitorGroupUpdateMonitorGroup(ctx, monitorGroupGuid).MonitorGroup(monitorGroup).Execute()
Updates the monitor group with the Guid specified
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 to be updated
monitorGroup := *openapiclient.NewMonitorGroup(false) // MonitorGroup | The monitor group to be updated (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.MonitorGroupAPI.MonitorGroupUpdateMonitorGroup(context.Background(), monitorGroupGuid).MonitorGroup(monitorGroup).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `MonitorGroupAPI.MonitorGroupUpdateMonitorGroup``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| monitorGroupGuid | string | The Guid of the monitor group to be updated |
Other parameters are passed through a pointer to a apiMonitorGroupUpdateMonitorGroupRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
monitorGroup | MonitorGroup | The monitor group to be updated |
(empty response body)
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]