componentproactivedetectionapis

package
v0.20231023.1123109 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis Documentation

The componentproactivedetectionapis SDK allows for interaction with the Azure Resource Manager Service applicationinsights (API Version 2015-05-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/applicationinsights/2015-05-01/componentproactivedetectionapis"

Client Initialization

client := componentproactivedetectionapis.NewComponentProactiveDetectionAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ComponentProactiveDetectionAPIsClient.ProactiveDetectionConfigurationsGet

ctx := context.TODO()
id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "configurationIdValue")

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

Example Usage: ComponentProactiveDetectionAPIsClient.ProactiveDetectionConfigurationsList

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

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

Example Usage: ComponentProactiveDetectionAPIsClient.ProactiveDetectionConfigurationsUpdate

ctx := context.TODO()
id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "configurationIdValue")

payload := componentproactivedetectionapis.ApplicationInsightsComponentProactiveDetectionConfiguration{
	// ...
}


read, err := client.ProactiveDetectionConfigurationsUpdate(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 ValidateComponentID

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

ValidateComponentID checks that 'input' can be parsed as a Component ID

func ValidateProactiveDetectionConfigID

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

ValidateProactiveDetectionConfigID checks that 'input' can be parsed as a Proactive Detection Config ID

Types

type ApplicationInsightsComponentProactiveDetectionConfiguration

type ApplicationInsightsComponentProactiveDetectionConfiguration struct {
	CustomEmails                   *[]string                                                                   `json:"CustomEmails,omitempty"`
	Enabled                        *bool                                                                       `json:"Enabled,omitempty"`
	LastUpdatedTime                *string                                                                     `json:"LastUpdatedTime,omitempty"`
	Name                           *string                                                                     `json:"Name,omitempty"`
	RuleDefinitions                *ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions `json:"RuleDefinitions,omitempty"`
	SendEmailsToSubscriptionOwners *bool                                                                       `json:"SendEmailsToSubscriptionOwners,omitempty"`
}

type ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions

type ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions struct {
	Description                *string `json:"Description,omitempty"`
	DisplayName                *string `json:"DisplayName,omitempty"`
	HelpUrl                    *string `json:"HelpUrl,omitempty"`
	IsEnabledByDefault         *bool   `json:"IsEnabledByDefault,omitempty"`
	IsHidden                   *bool   `json:"IsHidden,omitempty"`
	IsInPreview                *bool   `json:"IsInPreview,omitempty"`
	Name                       *string `json:"Name,omitempty"`
	SupportsEmailNotifications *bool   `json:"SupportsEmailNotifications,omitempty"`
}

type ComponentId

type ComponentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ComponentName     string
}

ComponentId is a struct representing the Resource ID for a Component

func NewComponentID

func NewComponentID(subscriptionId string, resourceGroupName string, componentName string) ComponentId

NewComponentID returns a new ComponentId struct

func ParseComponentID

func ParseComponentID(input string) (*ComponentId, error)

ParseComponentID parses 'input' into a ComponentId

func ParseComponentIDInsensitively

func ParseComponentIDInsensitively(input string) (*ComponentId, error)

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

func (ComponentId) ID

func (id ComponentId) ID() string

ID returns the formatted Component ID

func (ComponentId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Component ID

func (ComponentId) String

func (id ComponentId) String() string

String returns a human-readable description of this Component ID

type ComponentProactiveDetectionAPIsClient

type ComponentProactiveDetectionAPIsClient struct {
	Client *resourcemanager.Client
}

func NewComponentProactiveDetectionAPIsClientWithBaseURI

func NewComponentProactiveDetectionAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentProactiveDetectionAPIsClient, error)

func (ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsGet

ProactiveDetectionConfigurationsGet ...

func (ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsList

ProactiveDetectionConfigurationsList ...

func (ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsUpdate

ProactiveDetectionConfigurationsUpdate ...

type ProactiveDetectionConfigId

type ProactiveDetectionConfigId struct {
	SubscriptionId    string
	ResourceGroupName string
	ComponentName     string
	ConfigurationId   string
}

ProactiveDetectionConfigId is a struct representing the Resource ID for a Proactive Detection Config

func NewProactiveDetectionConfigID

func NewProactiveDetectionConfigID(subscriptionId string, resourceGroupName string, componentName string, configurationId string) ProactiveDetectionConfigId

NewProactiveDetectionConfigID returns a new ProactiveDetectionConfigId struct

func ParseProactiveDetectionConfigID

func ParseProactiveDetectionConfigID(input string) (*ProactiveDetectionConfigId, error)

ParseProactiveDetectionConfigID parses 'input' into a ProactiveDetectionConfigId

func ParseProactiveDetectionConfigIDInsensitively

func ParseProactiveDetectionConfigIDInsensitively(input string) (*ProactiveDetectionConfigId, error)

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

func (ProactiveDetectionConfigId) ID

ID returns the formatted Proactive Detection Config ID

func (ProactiveDetectionConfigId) Segments

Segments returns a slice of Resource ID Segments which comprise this Proactive Detection Config ID

func (ProactiveDetectionConfigId) String

func (id ProactiveDetectionConfigId) String() string

String returns a human-readable description of this Proactive Detection Config ID

type ProactiveDetectionConfigurationsGetOperationResponse

type ProactiveDetectionConfigurationsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ApplicationInsightsComponentProactiveDetectionConfiguration
}

type ProactiveDetectionConfigurationsListOperationResponse

type ProactiveDetectionConfigurationsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ApplicationInsightsComponentProactiveDetectionConfiguration
}

type ProactiveDetectionConfigurationsUpdateOperationResponse

type ProactiveDetectionConfigurationsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ApplicationInsightsComponentProactiveDetectionConfiguration
}

Jump to

Keyboard shortcuts

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