All URIs are relative to https://api.uptrends.com/v4
Method | HTTP request | Description |
---|---|---|
AlertDefinitionAddIntegrationToEscalationLevel | Post /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration | Adds an integration to a specified escalation level. |
AlertDefinitionAddMonitorGroupToAlertDefinition | Post /AlertDefinition/{alertDefinitionGuid}/Member/MonitorGroup/{monitorGroupGuid} | Adds a monitor group to the specified alert definition. |
AlertDefinitionAddMonitorToAlertDefinition | Post /AlertDefinition/{alertDefinitionGuid}/Member/Monitor/{monitorGuid} | Adds a monitor to the specified alert definition. |
AlertDefinitionAddOperatorGroupToEscalationLevel | Post /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Member/OperatorGroup/{operatorGroupGuid} | Adds an operator group to the specified escalation level. |
AlertDefinitionAddOperatorToEscalationLevel | Post /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Member/Operator/{operatorGuid} | Adds an operator to the specified escalation level. |
AlertDefinitionCreateAlertDefinition | Post /AlertDefinition | Creates a new alert definition. |
AlertDefinitionCreateAuthorizationForAlertDefinition | Post /AlertDefinition/{alertDefinitionGuid}/Authorizations | Create authorizations for alert definition If the wanted authorizations requires other authorizations, these will be added as well |
AlertDefinitionDeleteAlertDefinition | Delete /AlertDefinition/{alertDefinitionGuid} | Deletes an existing alert definition. |
AlertDefinitionDeleteAuthorizationForAlertDefinition | Delete /AlertDefinition/{alertDefinitionGuid}/Authorizations/{authorizationGuid} | Delete alert definition authorization for alert definition |
AlertDefinitionGetAllAlertDefinitions | Get /AlertDefinition | Gets a list of all alert definitions. |
AlertDefinitionGetAllEscalationLevelIntegrations | Get /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration | Gets all integrations for a specified escalation level. |
AlertDefinitionGetAllEscalationLevels | Get /AlertDefinition/{alertDefinitionGuid}/EscalationLevel | Gets all escalation level information for the specified alert definition. |
AlertDefinitionGetAllMembers | Get /AlertDefinition/{alertDefinitionGuid}/Member | Gets a list of all monitor and monitor group guids for the specified alert definition. |
AlertDefinitionGetAuthorizationsOfAlertDefinition | Get /AlertDefinition/{alertDefinitionGuid}/Authorizations | Get authorizations of alert definition |
AlertDefinitionGetEscalationLevel | Get /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId} | Gets the escalation level information of the specified alert definition. |
AlertDefinitionGetEscalationLevelIntegration | Get /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration/{integrationGuid} | Gets a single integration for a specified escalation level. |
AlertDefinitionGetEscalationLevelOperator | Get /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Member | Gets the operator and operator group guids for the specified escalation level. |
AlertDefinitionGetSpecifiedAlertDefinitions | Get /AlertDefinition/{alertDefinitionGuid} | Gets the specified alert definition. |
AlertDefinitionPatchAlertDefinition | Patch /AlertDefinition/{alertDefinitionGuid} | Partially updates the definition for the specified alert definition. |
AlertDefinitionPatchAlertDefinitionEscalation | Patch /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId} | Partially updates the escalation level for the specified alert definition. |
AlertDefinitionPutAlertDefinition | Put /AlertDefinition/{alertDefinitionGuid} | Updates the definition for the specified alert definition. |
AlertDefinitionPutAlertDefinitionEscalation | Put /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId} | Updates the escalation level for the specified alert definition. |
AlertDefinitionRemoveIntegrationFromEscalationLevel | Delete /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration/{integrationGuid} | Removes an integration from a specified escalation level. |
AlertDefinitionRemoveMonitorFromAlertDefinition | Delete /AlertDefinition/{alertDefinitionGuid}/Member/Monitor/{monitorGuid} | Removes a monitor for the specified alert definition. |
AlertDefinitionRemoveMonitorGroupFromAlertDefinition | Delete /AlertDefinition/{alertDefinitionGuid}/Member/MonitorGroup/{monitorGroupGuid} | Removes a monitor group for the specified alert definition. |
AlertDefinitionRemoveOperatorFromEscalationLevel | Delete /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Member/Operator/{operatorGuid} | Removes an operator for the specified escalation level. |
AlertDefinitionRemoveOperatorGroupFromEscalationLevel | Delete /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Member/OperatorGroup/{operatorGroupGuid} | Removes an operator group for the specified escalation level. |
AlertDefinitionUpdateIntegrationForEscalationWithPatch | Patch /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration/{integrationGuid} | Partially updates an integration for a specified escalation level. |
AlertDefinitionUpdateIntegrationForEscalationWithPut | Put /AlertDefinition/{alertDefinitionGuid}/EscalationLevel/{escalationLevelId}/Integration/{integrationGuid} | Updates an integration for a specified escalation level. |
Integration AlertDefinitionAddIntegrationToEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId).EscalationLevelIntegration(escalationLevelIntegration).Execute()
Adds an integration to a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
escalationLevelIntegration := *openapiclient.NewEscalationLevelIntegration() // EscalationLevelIntegration | The integration to add. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionAddIntegrationToEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId).EscalationLevelIntegration(escalationLevelIntegration).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionAddIntegrationToEscalationLevel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionAddIntegrationToEscalationLevel`: Integration
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionAddIntegrationToEscalationLevel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. |
Other parameters are passed through a pointer to a apiAlertDefinitionAddIntegrationToEscalationLevelRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
escalationLevelIntegration | EscalationLevelIntegration | The integration 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]
AlertDefinitionMonitorGroup AlertDefinitionAddMonitorGroupToAlertDefinition(ctx, alertDefinitionGuid, monitorGroupGuid).Execute()
Adds a monitor group to the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition to modify.
monitorGroupGuid := "monitorGroupGuid_example" // string | The Guid of the monitor group to add.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionAddMonitorGroupToAlertDefinition(context.Background(), alertDefinitionGuid, monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionAddMonitorGroupToAlertDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionAddMonitorGroupToAlertDefinition`: AlertDefinitionMonitorGroup
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionAddMonitorGroupToAlertDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition to modify. | |
monitorGroupGuid | string | The Guid of the monitor group to add. |
Other parameters are passed through a pointer to a apiAlertDefinitionAddMonitorGroupToAlertDefinitionRequest 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]
AlertDefinitionMonitor AlertDefinitionAddMonitorToAlertDefinition(ctx, alertDefinitionGuid, monitorGuid).Execute()
Adds a monitor to the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition to modify.
monitorGuid := "monitorGuid_example" // string | The Guid of the monitor to add.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionAddMonitorToAlertDefinition(context.Background(), alertDefinitionGuid, monitorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionAddMonitorToAlertDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionAddMonitorToAlertDefinition`: AlertDefinitionMonitor
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionAddMonitorToAlertDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition to modify. | |
monitorGuid | string | The Guid of the monitor to add. |
Other parameters are passed through a pointer to a apiAlertDefinitionAddMonitorToAlertDefinitionRequest 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]
AlertDefinitionOperatorGroup AlertDefinitionAddOperatorGroupToEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId, operatorGroupGuid).Execute()
Adds an operator group to the specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
operatorGroupGuid := "operatorGroupGuid_example" // string | The Guid of the operator group to add.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionAddOperatorGroupToEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId, operatorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionAddOperatorGroupToEscalationLevel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionAddOperatorGroupToEscalationLevel`: AlertDefinitionOperatorGroup
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionAddOperatorGroupToEscalationLevel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
operatorGroupGuid | string | The Guid of the operator group to add. |
Other parameters are passed through a pointer to a apiAlertDefinitionAddOperatorGroupToEscalationLevelRequest 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]
AlertDefinitionOperator AlertDefinitionAddOperatorToEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId, operatorGuid).Execute()
Adds an operator to the specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
operatorGuid := "operatorGuid_example" // string | The Guid of the operator to add.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionAddOperatorToEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId, operatorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionAddOperatorToEscalationLevel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionAddOperatorToEscalationLevel`: AlertDefinitionOperator
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionAddOperatorToEscalationLevel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
operatorGuid | string | The Guid of the operator to add. |
Other parameters are passed through a pointer to a apiAlertDefinitionAddOperatorToEscalationLevelRequest 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]
AlertDefinition AlertDefinitionCreateAlertDefinition(ctx).AlertDefinition(alertDefinition).Execute()
Creates a new alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinition := *openapiclient.NewAlertDefinition() // AlertDefinition | The details of the alert definition to create. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionCreateAlertDefinition(context.Background()).AlertDefinition(alertDefinition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionCreateAlertDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionCreateAlertDefinition`: AlertDefinition
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionCreateAlertDefinition`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAlertDefinitionCreateAlertDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
alertDefinition | AlertDefinition | The details of the alert definition to create. |
- 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]
[]AlertDefinitionAuthorization AlertDefinitionCreateAuthorizationForAlertDefinition(ctx, alertDefinitionGuid).AlertDefinitionAuthorization(alertDefinitionAuthorization).Execute()
Create authorizations for alert definition If the wanted authorizations requires other authorizations, these will be added as well
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The alert definition GUID
alertDefinitionAuthorization := *openapiclient.NewAlertDefinitionAuthorization(map[string][]openapiclient.AlertDefinitionAuthorizationType{ ... }) // AlertDefinitionAuthorization | Authorization to add (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionCreateAuthorizationForAlertDefinition(context.Background(), alertDefinitionGuid).AlertDefinitionAuthorization(alertDefinitionAuthorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionCreateAuthorizationForAlertDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionCreateAuthorizationForAlertDefinition`: []AlertDefinitionAuthorization
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionCreateAuthorizationForAlertDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The alert definition GUID |
Other parameters are passed through a pointer to a apiAlertDefinitionCreateAuthorizationForAlertDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
alertDefinitionAuthorization | AlertDefinitionAuthorization | Authorization to add |
[]AlertDefinitionAuthorization
- 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]
AlertDefinitionDeleteAlertDefinition(ctx, alertDefinitionGuid).Execute()
Deletes an existing alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionDeleteAlertDefinition(context.Background(), alertDefinitionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionDeleteAlertDefinition``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionDeleteAlertDefinitionRequest 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]
AlertDefinitionDeleteAuthorizationForAlertDefinition(ctx, alertDefinitionGuid, authorizationGuid).Execute()
Delete alert definition authorization for alert definition
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The alert definition GUID
authorizationGuid := "authorizationGuid_example" // string | The authorization GUID that needs to be deleted
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionDeleteAuthorizationForAlertDefinition(context.Background(), alertDefinitionGuid, authorizationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionDeleteAuthorizationForAlertDefinition``: %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. | |
alertDefinitionGuid | string | The alert definition GUID | |
authorizationGuid | string | The authorization GUID that needs to be deleted |
Other parameters are passed through a pointer to a apiAlertDefinitionDeleteAuthorizationForAlertDefinitionRequest 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]
[]AlertDefinition AlertDefinitionGetAllAlertDefinitions(ctx).Execute()
Gets a list of all alert definitions.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetAllAlertDefinitions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetAllAlertDefinitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetAllAlertDefinitions`: []AlertDefinition
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetAllAlertDefinitions`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiAlertDefinitionGetAllAlertDefinitionsRequest 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]
[]Integration AlertDefinitionGetAllEscalationLevelIntegrations(ctx, alertDefinitionGuid, escalationLevelId).Execute()
Gets all integrations for a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetAllEscalationLevelIntegrations(context.Background(), alertDefinitionGuid, escalationLevelId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetAllEscalationLevelIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetAllEscalationLevelIntegrations`: []Integration
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetAllEscalationLevelIntegrations`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetAllEscalationLevelIntegrationsRequest 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]
[]EscalationLevel AlertDefinitionGetAllEscalationLevels(ctx, alertDefinitionGuid).Execute()
Gets all escalation level information for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition for which to return all escalation levels.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetAllEscalationLevels(context.Background(), alertDefinitionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetAllEscalationLevels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetAllEscalationLevels`: []EscalationLevel
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetAllEscalationLevels`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition for which to return all escalation levels. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetAllEscalationLevelsRequest 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]
[]AlertDefinitionMember AlertDefinitionGetAllMembers(ctx, alertDefinitionGuid).Execute()
Gets a list of all monitor and monitor group guids for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition for which to return the members.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetAllMembers(context.Background(), alertDefinitionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetAllMembers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetAllMembers`: []AlertDefinitionMember
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetAllMembers`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition for which to return the members. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetAllMembersRequest 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]
[]AlertDefinitionAuthorization AlertDefinitionGetAuthorizationsOfAlertDefinition(ctx, alertDefinitionGuid).Execute()
Get authorizations of alert definition
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The alert definition GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetAuthorizationsOfAlertDefinition(context.Background(), alertDefinitionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetAuthorizationsOfAlertDefinition``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetAuthorizationsOfAlertDefinition`: []AlertDefinitionAuthorization
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetAuthorizationsOfAlertDefinition`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The alert definition GUID |
Other parameters are passed through a pointer to a apiAlertDefinitionGetAuthorizationsOfAlertDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
[]AlertDefinitionAuthorization
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EscalationLevel AlertDefinitionGetEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId).Execute()
Gets the escalation level information of the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetEscalationLevel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetEscalationLevel`: EscalationLevel
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetEscalationLevel`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetEscalationLevelRequest 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]
Integration AlertDefinitionGetEscalationLevelIntegration(ctx, alertDefinitionGuid, escalationLevelId, integrationGuid).Execute()
Gets a single integration for a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
integrationGuid := "integrationGuid_example" // string | The Guid of the integration.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetEscalationLevelIntegration(context.Background(), alertDefinitionGuid, escalationLevelId, integrationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetEscalationLevelIntegration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetEscalationLevelIntegration`: Integration
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetEscalationLevelIntegration`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
integrationGuid | string | The Guid of the integration. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetEscalationLevelIntegrationRequest 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]
[]AlertEscalationLevelMember AlertDefinitionGetEscalationLevelOperator(ctx, alertDefinitionGuid, escalationLevelId).Execute()
Gets the operator and operator group guids for the specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetEscalationLevelOperator(context.Background(), alertDefinitionGuid, escalationLevelId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetEscalationLevelOperator``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetEscalationLevelOperator`: []AlertEscalationLevelMember
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetEscalationLevelOperator`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetEscalationLevelOperatorRequest 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]
AlertDefinition AlertDefinitionGetSpecifiedAlertDefinitions(ctx, alertDefinitionGuid).Execute()
Gets the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionGetSpecifiedAlertDefinitions(context.Background(), alertDefinitionGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionGetSpecifiedAlertDefinitions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AlertDefinitionGetSpecifiedAlertDefinitions`: AlertDefinition
fmt.Fprintf(os.Stdout, "Response from `AlertDefinitionApi.AlertDefinitionGetSpecifiedAlertDefinitions`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
alertDefinitionGuid | string | The Guid of the alert definition. |
Other parameters are passed through a pointer to a apiAlertDefinitionGetSpecifiedAlertDefinitionsRequest 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]
AlertDefinitionPatchAlertDefinition(ctx, alertDefinitionGuid).AlertDefinition(alertDefinition).Execute()
Partially updates the definition for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition that should be updated.
alertDefinition := *openapiclient.NewAlertDefinition() // AlertDefinition | The partial definition for the alert definition that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionPatchAlertDefinition(context.Background(), alertDefinitionGuid).AlertDefinition(alertDefinition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionPatchAlertDefinition``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition that should be updated. |
Other parameters are passed through a pointer to a apiAlertDefinitionPatchAlertDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
alertDefinition | AlertDefinition | The partial definition for the alert definition that should 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]
AlertDefinitionPatchAlertDefinitionEscalation(ctx, alertDefinitionGuid, escalationLevelId).EscalationLevel(escalationLevel).Execute()
Partially updates the escalation level for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition that should be updated.
escalationLevelId := int32(56) // int32 | The level number of the escalation that should be updated.
escalationLevel := *openapiclient.NewEscalationLevel() // EscalationLevel | The escalation level for the alert definition that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionPatchAlertDefinitionEscalation(context.Background(), alertDefinitionGuid, escalationLevelId).EscalationLevel(escalationLevel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionPatchAlertDefinitionEscalation``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition that should be updated. | |
escalationLevelId | int32 | The level number of the escalation that should be updated. |
Other parameters are passed through a pointer to a apiAlertDefinitionPatchAlertDefinitionEscalationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
escalationLevel | EscalationLevel | The escalation level for the alert definition that should 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]
AlertDefinitionPutAlertDefinition(ctx, alertDefinitionGuid).AlertDefinition(alertDefinition).Execute()
Updates the definition for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition that should be updated.
alertDefinition := *openapiclient.NewAlertDefinition() // AlertDefinition | The partial definition for the alert definition that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionPutAlertDefinition(context.Background(), alertDefinitionGuid).AlertDefinition(alertDefinition).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionPutAlertDefinition``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition that should be updated. |
Other parameters are passed through a pointer to a apiAlertDefinitionPutAlertDefinitionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
alertDefinition | AlertDefinition | The partial definition for the alert definition that should 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]
AlertDefinitionPutAlertDefinitionEscalation(ctx, alertDefinitionGuid, escalationLevelId).EscalationLevel(escalationLevel).Execute()
Updates the escalation level for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition that should be updated.
escalationLevelId := int32(56) // int32 | The level number of the escalation that should be updated.
escalationLevel := *openapiclient.NewEscalationLevel() // EscalationLevel | The escalation level for the alert definition that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionPutAlertDefinitionEscalation(context.Background(), alertDefinitionGuid, escalationLevelId).EscalationLevel(escalationLevel).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionPutAlertDefinitionEscalation``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition that should be updated. | |
escalationLevelId | int32 | The level number of the escalation that should be updated. |
Other parameters are passed through a pointer to a apiAlertDefinitionPutAlertDefinitionEscalationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
escalationLevel | EscalationLevel | The escalation level for the alert definition that should 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]
AlertDefinitionRemoveIntegrationFromEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId, integrationGuid).Execute()
Removes an integration from a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
integrationGuid := "integrationGuid_example" // string | The Guid of the integration to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionRemoveIntegrationFromEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId, integrationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionRemoveIntegrationFromEscalationLevel``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
integrationGuid | string | The Guid of the integration to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionRemoveIntegrationFromEscalationLevelRequest 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]
AlertDefinitionRemoveMonitorFromAlertDefinition(ctx, alertDefinitionGuid, monitorGuid).Execute()
Removes a monitor for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition to modify.
monitorGuid := "monitorGuid_example" // string | The Guid of the monitor to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionRemoveMonitorFromAlertDefinition(context.Background(), alertDefinitionGuid, monitorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionRemoveMonitorFromAlertDefinition``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition to modify. | |
monitorGuid | string | The Guid of the monitor to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionRemoveMonitorFromAlertDefinitionRequest 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]
AlertDefinitionRemoveMonitorGroupFromAlertDefinition(ctx, alertDefinitionGuid, monitorGroupGuid).Execute()
Removes a monitor group for the specified alert definition.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition to modify.
monitorGroupGuid := "monitorGroupGuid_example" // string | The Guid of the monitor group to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionRemoveMonitorGroupFromAlertDefinition(context.Background(), alertDefinitionGuid, monitorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionRemoveMonitorGroupFromAlertDefinition``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition to modify. | |
monitorGroupGuid | string | The Guid of the monitor group to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionRemoveMonitorGroupFromAlertDefinitionRequest 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]
AlertDefinitionRemoveOperatorFromEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId, operatorGuid).Execute()
Removes an operator for the specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
operatorGuid := "operatorGuid_example" // string | The Guid of the operator to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionRemoveOperatorFromEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId, operatorGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionRemoveOperatorFromEscalationLevel``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
operatorGuid | string | The Guid of the operator to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionRemoveOperatorFromEscalationLevelRequest 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]
AlertDefinitionRemoveOperatorGroupFromEscalationLevel(ctx, alertDefinitionGuid, escalationLevelId, operatorGroupGuid).Execute()
Removes an operator group for the specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
operatorGroupGuid := "operatorGroupGuid_example" // string | The Guid of the operator group to remove.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionRemoveOperatorGroupFromEscalationLevel(context.Background(), alertDefinitionGuid, escalationLevelId, operatorGroupGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionRemoveOperatorGroupFromEscalationLevel``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
operatorGroupGuid | string | The Guid of the operator group to remove. |
Other parameters are passed through a pointer to a apiAlertDefinitionRemoveOperatorGroupFromEscalationLevelRequest 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]
AlertDefinitionUpdateIntegrationForEscalationWithPatch(ctx, alertDefinitionGuid, escalationLevelId, integrationGuid).EscalationLevelIntegration(escalationLevelIntegration).Execute()
Partially updates an integration for a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
integrationGuid := "integrationGuid_example" // string | The Guid of the integration to update.
escalationLevelIntegration := *openapiclient.NewEscalationLevelIntegration() // EscalationLevelIntegration | The partial definition for the integration that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionUpdateIntegrationForEscalationWithPatch(context.Background(), alertDefinitionGuid, escalationLevelId, integrationGuid).EscalationLevelIntegration(escalationLevelIntegration).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionUpdateIntegrationForEscalationWithPatch``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
integrationGuid | string | The Guid of the integration to update. |
Other parameters are passed through a pointer to a apiAlertDefinitionUpdateIntegrationForEscalationWithPatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
escalationLevelIntegration | EscalationLevelIntegration | The partial definition for the integration that should 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]
AlertDefinitionUpdateIntegrationForEscalationWithPut(ctx, alertDefinitionGuid, escalationLevelId, integrationGuid).EscalationLevelIntegration(escalationLevelIntegration).Execute()
Updates an integration for a specified escalation level.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
alertDefinitionGuid := "alertDefinitionGuid_example" // string | The Guid of the alert definition.
escalationLevelId := int32(56) // int32 | The escalation level id.
integrationGuid := "integrationGuid_example" // string | The Guid of the integration to update.
escalationLevelIntegration := *openapiclient.NewEscalationLevelIntegration() // EscalationLevelIntegration | The definition for the integration that should be updated. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AlertDefinitionApi.AlertDefinitionUpdateIntegrationForEscalationWithPut(context.Background(), alertDefinitionGuid, escalationLevelId, integrationGuid).EscalationLevelIntegration(escalationLevelIntegration).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AlertDefinitionApi.AlertDefinitionUpdateIntegrationForEscalationWithPut``: %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. | |
alertDefinitionGuid | string | The Guid of the alert definition. | |
escalationLevelId | int32 | The escalation level id. | |
integrationGuid | string | The Guid of the integration to update. |
Other parameters are passed through a pointer to a apiAlertDefinitionUpdateIntegrationForEscalationWithPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
escalationLevelIntegration | EscalationLevelIntegration | The definition for the integration that should 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]