Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSendAadLogsStatus() []string
- func PossibleValuesForSendActivityLogsStatus() []string
- func PossibleValuesForSendMetricsStatus() []string
- func PossibleValuesForSendSubscriptionLogsStatus() []string
- func PossibleValuesForTagAction() []string
- func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTagRuleID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type FilteringTag
- type GetOperationResponse
- type ListByNewRelicMonitorResourceCompleteResult
- type ListByNewRelicMonitorResourceOperationResponse
- type LogRules
- type MetricRules
- type MonitorId
- type MonitoringTagRulesProperties
- type ProvisioningState
- type SendAadLogsStatus
- type SendActivityLogsStatus
- type SendMetricsStatus
- type SendSubscriptionLogsStatus
- type TagAction
- type TagRule
- type TagRuleId
- type TagRuleOperationPredicate
- type TagRuleUpdate
- type TagRuleUpdateProperties
- type TagRulesClient
- func (c TagRulesClient) CreateOrUpdate(ctx context.Context, id TagRuleId, input TagRule) (result CreateOrUpdateOperationResponse, err error)
- func (c TagRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id TagRuleId, input TagRule) error
- func (c TagRulesClient) Delete(ctx context.Context, id TagRuleId) (result DeleteOperationResponse, err error)
- func (c TagRulesClient) DeleteThenPoll(ctx context.Context, id TagRuleId) error
- func (c TagRulesClient) Get(ctx context.Context, id TagRuleId) (result GetOperationResponse, err error)
- func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id MonitorId) (result ListByNewRelicMonitorResourceOperationResponse, err error)
- func (c TagRulesClient) ListByNewRelicMonitorResourceComplete(ctx context.Context, id MonitorId) (ListByNewRelicMonitorResourceCompleteResult, error)
- func (c TagRulesClient) ListByNewRelicMonitorResourceCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate TagRuleOperationPredicate) (result ListByNewRelicMonitorResourceCompleteResult, err error)
- func (c TagRulesClient) Update(ctx context.Context, id TagRuleId, input TagRuleUpdate) (result UpdateOperationResponse, err error)
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSendAadLogsStatus ¶
func PossibleValuesForSendAadLogsStatus() []string
func PossibleValuesForSendActivityLogsStatus ¶
func PossibleValuesForSendActivityLogsStatus() []string
func PossibleValuesForSendMetricsStatus ¶
func PossibleValuesForSendMetricsStatus() []string
func PossibleValuesForSendSubscriptionLogsStatus ¶
func PossibleValuesForSendSubscriptionLogsStatus() []string
func PossibleValuesForTagAction ¶
func PossibleValuesForTagAction() []string
func ValidateMonitorID ¶
ValidateMonitorID checks that 'input' can be parsed as a Monitor ID
func ValidateTagRuleID ¶
ValidateTagRuleID checks that 'input' can be parsed as a Tag Rule ID
Types ¶
type DeleteOperationResponse ¶
type FilteringTag ¶
type GetOperationResponse ¶
type ListByNewRelicMonitorResourceCompleteResult ¶
type ListByNewRelicMonitorResourceCompleteResult struct {
Items []TagRule
}
type LogRules ¶
type LogRules struct { FilteringTags *[]FilteringTag `json:"filteringTags,omitempty"` SendAadLogs *SendAadLogsStatus `json:"sendAadLogs,omitempty"` SendActivityLogs *SendActivityLogsStatus `json:"sendActivityLogs,omitempty"` SendSubscriptionLogs *SendSubscriptionLogsStatus `json:"sendSubscriptionLogs,omitempty"` }
type MetricRules ¶
type MetricRules struct { FilteringTags *[]FilteringTag `json:"filteringTags,omitempty"` SendMetrics *SendMetricsStatus `json:"sendMetrics,omitempty"` UserEmail *string `json:"userEmail,omitempty"` }
type MonitorId ¶
MonitorId is a struct representing the Resource ID for a Monitor
func NewMonitorID ¶
NewMonitorID returns a new MonitorId struct
func ParseMonitorID ¶
ParseMonitorID parses 'input' into a MonitorId
func ParseMonitorIDInsensitively ¶
ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId note: this method should only be used for API response data and not user input
func (MonitorId) Segments ¶
func (id MonitorId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Monitor ID
type MonitoringTagRulesProperties ¶
type MonitoringTagRulesProperties struct { LogRules *LogRules `json:"logRules,omitempty"` MetricRules *MetricRules `json:"metricRules,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type SendAadLogsStatus ¶
type SendAadLogsStatus string
const ( SendAadLogsStatusDisabled SendAadLogsStatus = "Disabled" SendAadLogsStatusEnabled SendAadLogsStatus = "Enabled" )
func (*SendAadLogsStatus) UnmarshalJSON ¶
func (s *SendAadLogsStatus) UnmarshalJSON(bytes []byte) error
type SendActivityLogsStatus ¶
type SendActivityLogsStatus string
const ( SendActivityLogsStatusDisabled SendActivityLogsStatus = "Disabled" SendActivityLogsStatusEnabled SendActivityLogsStatus = "Enabled" )
func (*SendActivityLogsStatus) UnmarshalJSON ¶
func (s *SendActivityLogsStatus) UnmarshalJSON(bytes []byte) error
type SendMetricsStatus ¶
type SendMetricsStatus string
const ( SendMetricsStatusDisabled SendMetricsStatus = "Disabled" SendMetricsStatusEnabled SendMetricsStatus = "Enabled" )
func (*SendMetricsStatus) UnmarshalJSON ¶
func (s *SendMetricsStatus) UnmarshalJSON(bytes []byte) error
type SendSubscriptionLogsStatus ¶
type SendSubscriptionLogsStatus string
const ( SendSubscriptionLogsStatusDisabled SendSubscriptionLogsStatus = "Disabled" SendSubscriptionLogsStatusEnabled SendSubscriptionLogsStatus = "Enabled" )
func (*SendSubscriptionLogsStatus) UnmarshalJSON ¶
func (s *SendSubscriptionLogsStatus) UnmarshalJSON(bytes []byte) error
type TagRule ¶
type TagRule struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties MonitoringTagRulesProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type TagRuleId ¶
type TagRuleId struct { SubscriptionId string ResourceGroupName string MonitorName string TagRuleName string }
TagRuleId is a struct representing the Resource ID for a Tag Rule
func NewTagRuleID ¶
func NewTagRuleID(subscriptionId string, resourceGroupName string, monitorName string, tagRuleName string) TagRuleId
NewTagRuleID returns a new TagRuleId struct
func ParseTagRuleID ¶
ParseTagRuleID parses 'input' into a TagRuleId
func ParseTagRuleIDInsensitively ¶
ParseTagRuleIDInsensitively parses 'input' case-insensitively into a TagRuleId note: this method should only be used for API response data and not user input
func (TagRuleId) Segments ¶
func (id TagRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Tag Rule ID
type TagRuleOperationPredicate ¶
func (TagRuleOperationPredicate) Matches ¶
func (p TagRuleOperationPredicate) Matches(input TagRule) bool
type TagRuleUpdate ¶
type TagRuleUpdate struct {
Properties *TagRuleUpdateProperties `json:"properties,omitempty"`
}
type TagRuleUpdateProperties ¶
type TagRuleUpdateProperties struct { LogRules *LogRules `json:"logRules,omitempty"` MetricRules *MetricRules `json:"metricRules,omitempty"` }
type TagRulesClient ¶
type TagRulesClient struct {
Client *resourcemanager.Client
}
func NewTagRulesClientWithBaseURI ¶
func NewTagRulesClientWithBaseURI(api environments.Api) (*TagRulesClient, error)
func (TagRulesClient) CreateOrUpdate ¶
func (c TagRulesClient) CreateOrUpdate(ctx context.Context, id TagRuleId, input TagRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (TagRulesClient) CreateOrUpdateThenPoll ¶
func (c TagRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id TagRuleId, input TagRule) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (TagRulesClient) Delete ¶
func (c TagRulesClient) Delete(ctx context.Context, id TagRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (TagRulesClient) DeleteThenPoll ¶
func (c TagRulesClient) DeleteThenPoll(ctx context.Context, id TagRuleId) error
DeleteThenPoll performs Delete then polls until it's completed
func (TagRulesClient) Get ¶
func (c TagRulesClient) Get(ctx context.Context, id TagRuleId) (result GetOperationResponse, err error)
Get ...
func (TagRulesClient) ListByNewRelicMonitorResource ¶
func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id MonitorId) (result ListByNewRelicMonitorResourceOperationResponse, err error)
ListByNewRelicMonitorResource ...
func (TagRulesClient) ListByNewRelicMonitorResourceComplete ¶
func (c TagRulesClient) ListByNewRelicMonitorResourceComplete(ctx context.Context, id MonitorId) (ListByNewRelicMonitorResourceCompleteResult, error)
ListByNewRelicMonitorResourceComplete retrieves all the results into a single object
func (TagRulesClient) ListByNewRelicMonitorResourceCompleteMatchingPredicate ¶
func (c TagRulesClient) ListByNewRelicMonitorResourceCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate TagRuleOperationPredicate) (result ListByNewRelicMonitorResourceCompleteResult, err error)
ListByNewRelicMonitorResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (TagRulesClient) Update ¶
func (c TagRulesClient) Update(ctx context.Context, id TagRuleId, input TagRuleUpdate) (result UpdateOperationResponse, err error)
Update ...
Source Files ¶
- client.go
- constants.go
- id_monitor.go
- id_tagrule.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbynewrelicmonitorresource.go
- method_update.go
- model_filteringtag.go
- model_logrules.go
- model_metricrules.go
- model_monitoringtagrulesproperties.go
- model_tagrule.go
- model_tagruleupdate.go
- model_tagruleupdateproperties.go
- predicates.go
- version.go