activitylogalertsapis

package
v0.20230518.1152641 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis Documentation

The activitylogalertsapis SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2020-10-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis"

Client Initialization

client := activitylogalertsapis.NewActivityLogAlertsAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsCreateOrUpdate

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

payload := activitylogalertsapis.ActivityLogAlertResource{
	// ...
}


read, err := client.ActivityLogAlertsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsDelete

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

read, err := client.ActivityLogAlertsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsGet

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

read, err := client.ActivityLogAlertsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsListByResourceGroup

ctx := context.TODO()
id := activitylogalertsapis.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ActivityLogAlertsListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ActivityLogAlertsListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsListBySubscriptionId

ctx := context.TODO()
id := activitylogalertsapis.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ActivityLogAlertsListBySubscriptionId(ctx, id)` can be used to do batched pagination
items, err := client.ActivityLogAlertsListBySubscriptionIdComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ActivityLogAlertsAPIsClient.ActivityLogAlertsUpdate

ctx := context.TODO()
id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue")

payload := activitylogalertsapis.AlertRulePatchObject{
	// ...
}


read, err := client.ActivityLogAlertsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateActivityLogAlertID

func ValidateActivityLogAlertID(input interface{}, key string) (warnings []string, errors []error)

ValidateActivityLogAlertID checks that 'input' can be parsed as a Activity Log Alert ID

Types

type ActionGroup

type ActionGroup struct {
	ActionGroupId     string             `json:"actionGroupId"`
	WebhookProperties *map[string]string `json:"webhookProperties,omitempty"`
}

type ActionList

type ActionList struct {
	ActionGroups *[]ActionGroup `json:"actionGroups,omitempty"`
}

type ActivityLogAlertId

type ActivityLogAlertId struct {
	SubscriptionId       string
	ResourceGroupName    string
	ActivityLogAlertName string
}

ActivityLogAlertId is a struct representing the Resource ID for a Activity Log Alert

func NewActivityLogAlertID

func NewActivityLogAlertID(subscriptionId string, resourceGroupName string, activityLogAlertName string) ActivityLogAlertId

NewActivityLogAlertID returns a new ActivityLogAlertId struct

func ParseActivityLogAlertID

func ParseActivityLogAlertID(input string) (*ActivityLogAlertId, error)

ParseActivityLogAlertID parses 'input' into a ActivityLogAlertId

func ParseActivityLogAlertIDInsensitively

func ParseActivityLogAlertIDInsensitively(input string) (*ActivityLogAlertId, error)

ParseActivityLogAlertIDInsensitively parses 'input' case-insensitively into a ActivityLogAlertId note: this method should only be used for API response data and not user input

func (ActivityLogAlertId) ID

func (id ActivityLogAlertId) ID() string

ID returns the formatted Activity Log Alert ID

func (ActivityLogAlertId) Segments

func (id ActivityLogAlertId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Activity Log Alert ID

func (ActivityLogAlertId) String

func (id ActivityLogAlertId) String() string

String returns a human-readable description of this Activity Log Alert ID

type ActivityLogAlertResource

type ActivityLogAlertResource struct {
	Id         *string              `json:"id,omitempty"`
	Location   *string              `json:"location,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties *AlertRuleProperties `json:"properties,omitempty"`
	Tags       *map[string]string   `json:"tags,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type ActivityLogAlertResourceOperationPredicate

type ActivityLogAlertResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ActivityLogAlertResourceOperationPredicate) Matches

type ActivityLogAlertsAPIsClient

type ActivityLogAlertsAPIsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewActivityLogAlertsAPIsClientWithBaseURI

func NewActivityLogAlertsAPIsClientWithBaseURI(endpoint string) ActivityLogAlertsAPIsClient

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsCreateOrUpdate

ActivityLogAlertsCreateOrUpdate ...

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsDelete

ActivityLogAlertsDelete ...

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsGet

ActivityLogAlertsGet ...

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroup

ActivityLogAlertsListByResourceGroup ...

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroupComplete

ActivityLogAlertsListByResourceGroupComplete retrieves all of the results into a single object

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroupCompleteMatchingPredicate

func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ActivityLogAlertResourceOperationPredicate) (resp ActivityLogAlertsListByResourceGroupCompleteResult, err error)

ActivityLogAlertsListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionId

ActivityLogAlertsListBySubscriptionId ...

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionIdComplete

ActivityLogAlertsListBySubscriptionIdComplete retrieves all of the results into a single object

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionIdCompleteMatchingPredicate

func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionIdCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ActivityLogAlertResourceOperationPredicate) (resp ActivityLogAlertsListBySubscriptionIdCompleteResult, err error)

ActivityLogAlertsListBySubscriptionIdCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ActivityLogAlertsAPIsClient) ActivityLogAlertsUpdate

ActivityLogAlertsUpdate ...

type ActivityLogAlertsCreateOrUpdateOperationResponse

type ActivityLogAlertsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActivityLogAlertResource
}

type ActivityLogAlertsDeleteOperationResponse

type ActivityLogAlertsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ActivityLogAlertsGetOperationResponse

type ActivityLogAlertsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActivityLogAlertResource
}

type ActivityLogAlertsListByResourceGroupCompleteResult

type ActivityLogAlertsListByResourceGroupCompleteResult struct {
	Items []ActivityLogAlertResource
}

type ActivityLogAlertsListByResourceGroupOperationResponse

type ActivityLogAlertsListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ActivityLogAlertResource
	// contains filtered or unexported fields
}

func (ActivityLogAlertsListByResourceGroupOperationResponse) HasMore

func (ActivityLogAlertsListByResourceGroupOperationResponse) LoadMore

type ActivityLogAlertsListBySubscriptionIdCompleteResult

type ActivityLogAlertsListBySubscriptionIdCompleteResult struct {
	Items []ActivityLogAlertResource
}

type ActivityLogAlertsListBySubscriptionIdOperationResponse

type ActivityLogAlertsListBySubscriptionIdOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ActivityLogAlertResource
	// contains filtered or unexported fields
}

func (ActivityLogAlertsListBySubscriptionIdOperationResponse) HasMore

func (ActivityLogAlertsListBySubscriptionIdOperationResponse) LoadMore

type ActivityLogAlertsUpdateOperationResponse

type ActivityLogAlertsUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ActivityLogAlertResource
}

type AlertRuleAllOfCondition

type AlertRuleAllOfCondition struct {
	AllOf []AlertRuleAnyOfOrLeafCondition `json:"allOf"`
}

type AlertRuleAnyOfOrLeafCondition

type AlertRuleAnyOfOrLeafCondition struct {
	AnyOf       *[]AlertRuleLeafCondition `json:"anyOf,omitempty"`
	ContainsAny *[]string                 `json:"containsAny,omitempty"`
	Equals      *string                   `json:"equals,omitempty"`
	Field       *string                   `json:"field,omitempty"`
}

type AlertRuleLeafCondition

type AlertRuleLeafCondition struct {
	ContainsAny *[]string `json:"containsAny,omitempty"`
	Equals      *string   `json:"equals,omitempty"`
	Field       *string   `json:"field,omitempty"`
}

type AlertRulePatchObject

type AlertRulePatchObject struct {
	Properties *AlertRulePatchProperties `json:"properties,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
}

type AlertRulePatchProperties

type AlertRulePatchProperties struct {
	Enabled *bool `json:"enabled,omitempty"`
}

type AlertRuleProperties

type AlertRuleProperties struct {
	Actions     ActionList              `json:"actions"`
	Condition   AlertRuleAllOfCondition `json:"condition"`
	Description *string                 `json:"description,omitempty"`
	Enabled     *bool                   `json:"enabled,omitempty"`
	Scopes      []string                `json:"scopes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL