Documentation ¶
Index ¶
- func PossibleValuesForAlertState() []string
- func PossibleValuesForMonitorCondition() []string
- func PossibleValuesForMonitorService() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForSmartGroupModificationEvent() []string
- func PossibleValuesForSmartGroupsSortByFields() []string
- func PossibleValuesForSortOrder() []string
- func PossibleValuesForState() []string
- func PossibleValuesForTimeRange() []string
- func ValidateSmartGroupID(input interface{}, key string) (warnings []string, errors []error)
- type AlertState
- type ChangeStateOperationOptions
- type ChangeStateOperationResponse
- type GetAllCompleteResult
- type GetAllOperationOptions
- type GetAllOperationResponse
- type GetByIdOperationResponse
- type GetHistoryOperationResponse
- type MonitorCondition
- type MonitorService
- type Severity
- type SmartGroup
- type SmartGroupAggregatedProperty
- type SmartGroupId
- type SmartGroupModification
- type SmartGroupModificationEvent
- type SmartGroupModificationItem
- type SmartGroupModificationProperties
- type SmartGroupOperationPredicate
- type SmartGroupProperties
- func (o *SmartGroupProperties) GetLastModifiedDateTimeAsTime() (*time.Time, error)
- func (o *SmartGroupProperties) GetStartDateTimeAsTime() (*time.Time, error)
- func (o *SmartGroupProperties) SetLastModifiedDateTimeAsTime(input time.Time)
- func (o *SmartGroupProperties) SetStartDateTimeAsTime(input time.Time)
- type SmartGroupsClient
- func (c SmartGroupsClient) ChangeState(ctx context.Context, id SmartGroupId, options ChangeStateOperationOptions) (result ChangeStateOperationResponse, err error)
- func (c SmartGroupsClient) GetAll(ctx context.Context, id commonids.SubscriptionId, ...) (result GetAllOperationResponse, err error)
- func (c SmartGroupsClient) GetAllComplete(ctx context.Context, id commonids.SubscriptionId, ...) (GetAllCompleteResult, error)
- func (c SmartGroupsClient) GetAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result GetAllCompleteResult, err error)
- func (c SmartGroupsClient) GetById(ctx context.Context, id SmartGroupId) (result GetByIdOperationResponse, err error)
- func (c SmartGroupsClient) GetHistory(ctx context.Context, id SmartGroupId) (result GetHistoryOperationResponse, err error)
- type SmartGroupsSortByFields
- type SortOrder
- type State
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertState ¶
func PossibleValuesForAlertState() []string
func PossibleValuesForMonitorCondition ¶
func PossibleValuesForMonitorCondition() []string
func PossibleValuesForMonitorService ¶
func PossibleValuesForMonitorService() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func PossibleValuesForSmartGroupModificationEvent ¶
func PossibleValuesForSmartGroupModificationEvent() []string
func PossibleValuesForSmartGroupsSortByFields ¶
func PossibleValuesForSmartGroupsSortByFields() []string
func PossibleValuesForSortOrder ¶
func PossibleValuesForSortOrder() []string
func PossibleValuesForState ¶
func PossibleValuesForState() []string
func PossibleValuesForTimeRange ¶
func PossibleValuesForTimeRange() []string
func ValidateSmartGroupID ¶
ValidateSmartGroupID checks that 'input' can be parsed as a Smart Group ID
Types ¶
type AlertState ¶
type AlertState string
const ( AlertStateAcknowledged AlertState = "Acknowledged" AlertStateClosed AlertState = "Closed" AlertStateNew AlertState = "New" )
func (*AlertState) UnmarshalJSON ¶
func (s *AlertState) UnmarshalJSON(bytes []byte) error
type ChangeStateOperationOptions ¶
type ChangeStateOperationOptions struct {
NewState *AlertState
}
func DefaultChangeStateOperationOptions ¶
func DefaultChangeStateOperationOptions() ChangeStateOperationOptions
func (ChangeStateOperationOptions) ToHeaders ¶
func (o ChangeStateOperationOptions) ToHeaders() *client.Headers
func (ChangeStateOperationOptions) ToOData ¶
func (o ChangeStateOperationOptions) ToOData() *odata.Query
func (ChangeStateOperationOptions) ToQuery ¶
func (o ChangeStateOperationOptions) ToQuery() *client.QueryParams
type ChangeStateOperationResponse ¶
type ChangeStateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SmartGroup }
type GetAllCompleteResult ¶
type GetAllCompleteResult struct {
Items []SmartGroup
}
type GetAllOperationOptions ¶
type GetAllOperationOptions struct { MonitorCondition *MonitorCondition MonitorService *MonitorService PageCount *int64 Severity *Severity SmartGroupState *AlertState SortBy *SmartGroupsSortByFields SortOrder *SortOrder TargetResource *string TargetResourceGroup *string TargetResourceType *string TimeRange *TimeRange }
func DefaultGetAllOperationOptions ¶
func DefaultGetAllOperationOptions() GetAllOperationOptions
func (GetAllOperationOptions) ToHeaders ¶
func (o GetAllOperationOptions) ToHeaders() *client.Headers
func (GetAllOperationOptions) ToOData ¶
func (o GetAllOperationOptions) ToOData() *odata.Query
func (GetAllOperationOptions) ToQuery ¶
func (o GetAllOperationOptions) ToQuery() *client.QueryParams
type GetAllOperationResponse ¶
type GetAllOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SmartGroup }
type GetByIdOperationResponse ¶
type GetByIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SmartGroup }
type GetHistoryOperationResponse ¶
type GetHistoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SmartGroupModification }
type MonitorCondition ¶
type MonitorCondition string
const ( MonitorConditionFired MonitorCondition = "Fired" MonitorConditionResolved MonitorCondition = "Resolved" )
func (*MonitorCondition) UnmarshalJSON ¶
func (s *MonitorCondition) UnmarshalJSON(bytes []byte) error
type MonitorService ¶
type MonitorService string
const ( MonitorServiceActivityLogAdministrative MonitorService = "ActivityLog Administrative" MonitorServiceActivityLogAutoscale MonitorService = "ActivityLog Autoscale" MonitorServiceActivityLogPolicy MonitorService = "ActivityLog Policy" MonitorServiceActivityLogRecommendation MonitorService = "ActivityLog Recommendation" MonitorServiceActivityLogSecurity MonitorService = "ActivityLog Security" MonitorServiceApplicationInsights MonitorService = "Application Insights" MonitorServiceLogAnalytics MonitorService = "Log Analytics" MonitorServiceNagios MonitorService = "Nagios" MonitorServicePlatform MonitorService = "Platform" MonitorServiceSCOM MonitorService = "SCOM" MonitorServiceServiceHealth MonitorService = "ServiceHealth" MonitorServiceSmartDetector MonitorService = "SmartDetector" MonitorServiceVMInsights MonitorService = "VM Insights" MonitorServiceZabbix MonitorService = "Zabbix" )
func (*MonitorService) UnmarshalJSON ¶
func (s *MonitorService) UnmarshalJSON(bytes []byte) error
type SmartGroup ¶
type SmartGroup struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SmartGroupProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SmartGroupId ¶
SmartGroupId is a struct representing the Resource ID for a Smart Group
func NewSmartGroupID ¶
func NewSmartGroupID(subscriptionId string, smartGroupId string) SmartGroupId
NewSmartGroupID returns a new SmartGroupId struct
func ParseSmartGroupID ¶
func ParseSmartGroupID(input string) (*SmartGroupId, error)
ParseSmartGroupID parses 'input' into a SmartGroupId
func ParseSmartGroupIDInsensitively ¶
func ParseSmartGroupIDInsensitively(input string) (*SmartGroupId, error)
ParseSmartGroupIDInsensitively parses 'input' case-insensitively into a SmartGroupId note: this method should only be used for API response data and not user input
func (*SmartGroupId) FromParseResult ¶ added in v0.20231127.1171502
func (id *SmartGroupId) FromParseResult(input resourceids.ParseResult) error
func (SmartGroupId) Segments ¶
func (id SmartGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Smart Group ID
func (SmartGroupId) String ¶
func (id SmartGroupId) String() string
String returns a human-readable description of this Smart Group ID
type SmartGroupModification ¶
type SmartGroupModification struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SmartGroupModificationProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SmartGroupModificationEvent ¶
type SmartGroupModificationEvent string
const ( SmartGroupModificationEventAlertAdded SmartGroupModificationEvent = "AlertAdded" SmartGroupModificationEventAlertRemoved SmartGroupModificationEvent = "AlertRemoved" SmartGroupModificationEventSmartGroupCreated SmartGroupModificationEvent = "SmartGroupCreated" SmartGroupModificationEventStateChange SmartGroupModificationEvent = "StateChange" )
func (*SmartGroupModificationEvent) UnmarshalJSON ¶
func (s *SmartGroupModificationEvent) UnmarshalJSON(bytes []byte) error
type SmartGroupModificationItem ¶
type SmartGroupModificationItem struct { Comments *string `json:"comments,omitempty"` Description *string `json:"description,omitempty"` ModificationEvent *SmartGroupModificationEvent `json:"modificationEvent,omitempty"` ModifiedAt *string `json:"modifiedAt,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` NewValue *string `json:"newValue,omitempty"` OldValue *string `json:"oldValue,omitempty"` }
type SmartGroupModificationProperties ¶
type SmartGroupModificationProperties struct { Modifications *[]SmartGroupModificationItem `json:"modifications,omitempty"` NextLink *string `json:"nextLink,omitempty"` SmartGroupId *string `json:"smartGroupId,omitempty"` }
type SmartGroupOperationPredicate ¶
func (SmartGroupOperationPredicate) Matches ¶
func (p SmartGroupOperationPredicate) Matches(input SmartGroup) bool
type SmartGroupProperties ¶
type SmartGroupProperties struct { AlertSeverities *[]SmartGroupAggregatedProperty `json:"alertSeverities,omitempty"` AlertStates *[]SmartGroupAggregatedProperty `json:"alertStates,omitempty"` AlertsCount *int64 `json:"alertsCount,omitempty"` LastModifiedDateTime *string `json:"lastModifiedDateTime,omitempty"` LastModifiedUserName *string `json:"lastModifiedUserName,omitempty"` MonitorConditions *[]SmartGroupAggregatedProperty `json:"monitorConditions,omitempty"` MonitorServices *[]SmartGroupAggregatedProperty `json:"monitorServices,omitempty"` NextLink *string `json:"nextLink,omitempty"` ResourceGroups *[]SmartGroupAggregatedProperty `json:"resourceGroups,omitempty"` ResourceTypes *[]SmartGroupAggregatedProperty `json:"resourceTypes,omitempty"` Resources *[]SmartGroupAggregatedProperty `json:"resources,omitempty"` Severity *Severity `json:"severity,omitempty"` SmartGroupState *State `json:"smartGroupState,omitempty"` StartDateTime *string `json:"startDateTime,omitempty"` }
func (*SmartGroupProperties) GetLastModifiedDateTimeAsTime ¶
func (o *SmartGroupProperties) GetLastModifiedDateTimeAsTime() (*time.Time, error)
func (*SmartGroupProperties) GetStartDateTimeAsTime ¶
func (o *SmartGroupProperties) GetStartDateTimeAsTime() (*time.Time, error)
func (*SmartGroupProperties) SetLastModifiedDateTimeAsTime ¶
func (o *SmartGroupProperties) SetLastModifiedDateTimeAsTime(input time.Time)
func (*SmartGroupProperties) SetStartDateTimeAsTime ¶
func (o *SmartGroupProperties) SetStartDateTimeAsTime(input time.Time)
type SmartGroupsClient ¶
type SmartGroupsClient struct {
Client *resourcemanager.Client
}
func NewSmartGroupsClientWithBaseURI ¶
func NewSmartGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*SmartGroupsClient, error)
func (SmartGroupsClient) ChangeState ¶
func (c SmartGroupsClient) ChangeState(ctx context.Context, id SmartGroupId, options ChangeStateOperationOptions) (result ChangeStateOperationResponse, err error)
ChangeState ...
func (SmartGroupsClient) GetAll ¶
func (c SmartGroupsClient) GetAll(ctx context.Context, id commonids.SubscriptionId, options GetAllOperationOptions) (result GetAllOperationResponse, err error)
GetAll ...
func (SmartGroupsClient) GetAllComplete ¶
func (c SmartGroupsClient) GetAllComplete(ctx context.Context, id commonids.SubscriptionId, options GetAllOperationOptions) (GetAllCompleteResult, error)
GetAllComplete retrieves all the results into a single object
func (SmartGroupsClient) GetAllCompleteMatchingPredicate ¶
func (c SmartGroupsClient) GetAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options GetAllOperationOptions, predicate SmartGroupOperationPredicate) (result GetAllCompleteResult, err error)
GetAllCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SmartGroupsClient) GetById ¶
func (c SmartGroupsClient) GetById(ctx context.Context, id SmartGroupId) (result GetByIdOperationResponse, err error)
GetById ...
func (SmartGroupsClient) GetHistory ¶
func (c SmartGroupsClient) GetHistory(ctx context.Context, id SmartGroupId) (result GetHistoryOperationResponse, err error)
GetHistory ...
type SmartGroupsSortByFields ¶
type SmartGroupsSortByFields string
const ( SmartGroupsSortByFieldsAlertsCount SmartGroupsSortByFields = "alertsCount" SmartGroupsSortByFieldsLastModifiedDateTime SmartGroupsSortByFields = "lastModifiedDateTime" SmartGroupsSortByFieldsSeverity SmartGroupsSortByFields = "severity" SmartGroupsSortByFieldsStartDateTime SmartGroupsSortByFields = "startDateTime" SmartGroupsSortByFieldsState SmartGroupsSortByFields = "state" )
func (*SmartGroupsSortByFields) UnmarshalJSON ¶
func (s *SmartGroupsSortByFields) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_smartgroup.go
- method_changestate.go
- method_getall.go
- method_getbyid.go
- method_gethistory.go
- model_smartgroup.go
- model_smartgroupaggregatedproperty.go
- model_smartgroupmodification.go
- model_smartgroupmodificationitem.go
- model_smartgroupmodificationproperties.go
- model_smartgroupproperties.go
- predicates.go
- version.go