Skip to content

Latest commit

 

History

History
1094 lines (707 loc) · 34.2 KB

MonitorGroupApi.md

File metadata and controls

1094 lines (707 loc) · 34.2 KB

\MonitorGroupApi

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

MonitorGroupAddMaintenancePeriodToAllMembers(ctx, monitorGroupGuid).MaintenancePeriod(maintenancePeriod).Execute()

Adds the provided maintenance period to all monitors in the group specified

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | 
    maintenancePeriod := *openapiclient.NewMaintenancePeriod(int32(123), map[string][]openapiclient.ScheduleMode{ ... }, map[string][]openapiclient.MaintenanceTypes{ ... }) // MaintenancePeriod |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string

Other Parameters

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

Name Type Description Notes

maintenancePeriod | MaintenancePeriod | |

Return type

(empty response body)

Authorization

basicauth

HTTP request headers

  • 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

MonitorGroupAddMonitorToMonitorGroup(ctx, monitorGroupGuid, monitorGuid).Execute()

Adds the specified monitor to the monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

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 to add the monitor to
monitorGuid string The monitor Guid

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupCreateAuthorizationForMonitorGroup

[]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

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID
    monitorGroupAuthorization := *openapiclient.NewMonitorGroupAuthorization(map[string][]openapiclient.MonitorGroupAuthorizationType{ ... }) // 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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

monitorGroupAuthorization | MonitorGroupAuthorization | Authorization to add |

Return type

[]MonitorGroupAuthorization

Authorization

basicauth

HTTP request headers

  • 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]

MonitorGroupCreateMonitorGroup

MonitorGroup MonitorGroupCreateMonitorGroup(ctx).MonitorGroup(monitorGroup).Execute()

Creates a new monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

Path Parameters

Other Parameters

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

Return type

MonitorGroup

Authorization

basicauth

HTTP request headers

  • 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

MonitorGroupDeleteAuthorizationForMonitorGroup(ctx, monitorGroupGuid, authorizationGuid).Execute()

Delete monitor authorization for monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

Path Parameters

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

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupDeleteMonitorGroup

MonitorGroupDeleteMonitorGroup(ctx, monitorGroupGuid).Execute()

Deletes the specified monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The Guid of the monitor group to be deleted

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

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 to be deleted

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupGetAllMonitorGroups

[]MonitorGroup MonitorGroupGetAllMonitorGroups(ctx).Execute()

Gets all monitor groups

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]MonitorGroup

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]

MonitorGroupGetAuthorizationsOfMonitorGroup

[]MonitorGroupAuthorization MonitorGroupGetAuthorizationsOfMonitorGroup(ctx, monitorGroupGuid).Execute()

Get monitor authorizations of monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

Return type

[]MonitorGroupAuthorization

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]

MonitorGroupGetMonitorGroup

MonitorGroup MonitorGroupGetMonitorGroup(ctx, monitorGroupGuid).Execute()

Gets the details of a monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

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 to be retrieved

Other Parameters

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

Name Type Description Notes

Return type

MonitorGroup

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]

MonitorGroupGetMonitorGroupMembers

MonitorGroupMember MonitorGroupGetMonitorGroupMembers(ctx, monitorGroupGuid).Execute()

Gets a list of all members of a monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

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 to retrieve the members for

Other Parameters

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

Name Type Description Notes

Return type

MonitorGroupMember

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]

MonitorGroupRemoveMonitorFromMonitorGroup

MonitorGroupRemoveMonitorFromMonitorGroup(ctx, monitorGroupGuid, monitorGuid).Execute()

Removes the specified monitor from the monitor group

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

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 to remove the monitor from
monitorGuid string The monitor Guid to be removed

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupStartAllMonitorAlertsInGroup

MonitorGroupStartAllMonitorAlertsInGroup(ctx, monitorGroupGuid).Execute()

Starts alerting for all monitors that are a member of the monitor group specified by the monitor group GUID

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupStartAllMonitorsInGroup

MonitorGroupStartAllMonitorsInGroup(ctx, monitorGroupGuid).Execute()

Starts all monitors that are a member of the monitor group specified by the monitor group GUID

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupStopAllMonitorAlertsInGroup

MonitorGroupStopAllMonitorAlertsInGroup(ctx, monitorGroupGuid).Execute()

Stops alerting for all monitors that are a member of the monitor group specified by the monitor group GUID

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupStopAllMonitorsInGroup

MonitorGroupStopAllMonitorsInGroup(ctx, monitorGroupGuid).Execute()

Stops all monitors that are a member of the monitor group specified by the monitor group GUID

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    monitorGroupGuid := "monitorGroupGuid_example" // string | The monitor group GUID

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, 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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
monitorGroupGuid string The monitor group GUID

Other Parameters

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

Name Type Description Notes

Return type

(empty response body)

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]

MonitorGroupUpdateMonitorGroup

MonitorGroupUpdateMonitorGroup(ctx, monitorGroupGuid).MonitorGroup(monitorGroup).Execute()

Updates the monitor group with the Guid specified

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

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

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 to be updated

Other Parameters

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 |

Return type

(empty response body)

Authorization

basicauth

HTTP request headers

  • 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]