Versions in this module Expand all Collapse all v51 v51.0.0 Jan 27, 2021 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type APIVersion string + const TwoZeroOneEightHyphenMinusZeroFiveHyphenMinusZeroFiveHyphenMinuspreview + const TwoZeroOneSevenHyphenMinusOneOneHyphenMinusOneFiveHyphenMinusprivatepreview + func PossibleAPIVersionValues() []APIVersion + type Alert struct + ID *string + Name *string + Type *string + func (a *Alert) UnmarshalJSON(body []byte) error + func (a Alert) MarshalJSON() ([]byte, error) + type AlertModification struct + ID *string + Name *string + Properties *AlertModificationProperties + Type *string + func (am AlertModification) MarshalJSON() ([]byte, error) + type AlertModificationEvent string + const AlertCreated + const MonitorConditionChange + const StateChange + func PossibleAlertModificationEventValues() []AlertModificationEvent + type AlertModificationItem struct + Comments *string + Description *string + ModificationEvent AlertModificationEvent + ModifiedAt *string + ModifiedBy *string + NewValue *string + OldValue *string + type AlertModificationProperties struct + AlertID *string + Modifications *[]AlertModificationItem + func (amp AlertModificationProperties) MarshalJSON() ([]byte, error) + type AlertProperties struct + AlertState AlertState + LastModifiedDateTime *date.Time + LastModifiedUserName *string + MonitorCondition MonitorCondition + MonitorService MonitorService + Payload interface{} + Severity Severity + SignalType SignalType + SmartGroupID *string + SmartGroupingReason *string + SourceCreatedID *string + StartDateTime *date.Time + TargetResource *string + TargetResourceGroup *string + TargetResourceName *string + TargetResourceType *string + func (ap AlertProperties) MarshalJSON() ([]byte, error) + type AlertState string + const AlertStateAcknowledged + const AlertStateClosed + const AlertStateNew + func PossibleAlertStateValues() []AlertState + type AlertsClient struct + func NewAlertsClient(subscriptionID string, monitorService1 MonitorService) AlertsClient + func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string, monitorService1 MonitorService) AlertsClient + func (client AlertsClient) ChangeState(ctx context.Context, alertID string, newState AlertState) (result Alert, err error) + func (client AlertsClient) ChangeStatePreparer(ctx context.Context, alertID string, newState AlertState) (*http.Request, error) + func (client AlertsClient) ChangeStateResponder(resp *http.Response) (result Alert, err error) + func (client AlertsClient) ChangeStateSender(req *http.Request) (*http.Response, error) + func (client AlertsClient) GetAll(ctx context.Context, targetResource string, targetResourceGroup string, ...) (result AlertsListPage, err error) + func (client AlertsClient) GetAllComplete(ctx context.Context, targetResource string, targetResourceGroup string, ...) (result AlertsListIterator, err error) + func (client AlertsClient) GetAllPreparer(ctx context.Context, targetResource string, targetResourceGroup string, ...) (*http.Request, error) + func (client AlertsClient) GetAllResponder(resp *http.Response) (result AlertsList, err error) + func (client AlertsClient) GetAllSender(req *http.Request) (*http.Response, error) + func (client AlertsClient) GetByID(ctx context.Context, alertID string) (result Alert, err error) + func (client AlertsClient) GetByIDPreparer(ctx context.Context, alertID string) (*http.Request, error) + func (client AlertsClient) GetByIDResponder(resp *http.Response) (result Alert, err error) + func (client AlertsClient) GetByIDSender(req *http.Request) (*http.Response, error) + func (client AlertsClient) GetHistory(ctx context.Context, alertID string) (result AlertModification, err error) + func (client AlertsClient) GetHistoryPreparer(ctx context.Context, alertID string) (*http.Request, error) + func (client AlertsClient) GetHistoryResponder(resp *http.Response) (result AlertModification, err error) + func (client AlertsClient) GetHistorySender(req *http.Request) (*http.Response, error) + func (client AlertsClient) GetSummary(ctx context.Context, targetResourceGroup string, timeRange TimeRange) (result AlertsSummary, err error) + func (client AlertsClient) GetSummaryPreparer(ctx context.Context, targetResourceGroup string, timeRange TimeRange) (*http.Request, error) + func (client AlertsClient) GetSummaryResponder(resp *http.Response) (result AlertsSummary, err error) + func (client AlertsClient) GetSummarySender(req *http.Request) (*http.Response, error) + type AlertsList struct + NextLink *string + Value *[]Alert + func (al AlertsList) IsEmpty() bool + type AlertsListIterator struct + func NewAlertsListIterator(page AlertsListPage) AlertsListIterator + func (iter *AlertsListIterator) Next() error + func (iter *AlertsListIterator) NextWithContext(ctx context.Context) (err error) + func (iter AlertsListIterator) NotDone() bool + func (iter AlertsListIterator) Response() AlertsList + func (iter AlertsListIterator) Value() Alert + type AlertsListPage struct + func NewAlertsListPage(cur AlertsList, ...) AlertsListPage + func (page *AlertsListPage) Next() error + func (page *AlertsListPage) NextWithContext(ctx context.Context) (err error) + func (page AlertsListPage) NotDone() bool + func (page AlertsListPage) Response() AlertsList + func (page AlertsListPage) Values() []Alert + type AlertsSortByFields string + const AlertsSortByFieldsAlertState + const AlertsSortByFieldsLastModifiedDateTime + const AlertsSortByFieldsMonitorCondition + const AlertsSortByFieldsName + const AlertsSortByFieldsSeverity + const AlertsSortByFieldsStartDateTime + const AlertsSortByFieldsTargetResource + const AlertsSortByFieldsTargetResourceGroup + const AlertsSortByFieldsTargetResourceName + const AlertsSortByFieldsTargetResourceType + func PossibleAlertsSortByFieldsValues() []AlertsSortByFields + type AlertsSummary struct + ID *string + Name *string + Type *string + func (as *AlertsSummary) UnmarshalJSON(body []byte) error + func (as AlertsSummary) MarshalJSON() ([]byte, error) + type AlertsSummaryByMonitorCondition struct + Fired *int32 + Resolved *int32 + type AlertsSummaryByMonitorService struct + ActivityLogAdministrative *int32 + ActivityLogAutoscale *int32 + ActivityLogPolicy *int32 + ActivityLogRecommendation *int32 + ActivityLogSecurity *int32 + ApplicationInsights *int32 + InfrastructureInsights *int32 + LogAnalytics *int32 + Nagios *int32 + Platform *int32 + Scom *int32 + ServiceHealth *int32 + SmartDetector *int32 + Zabbix *int32 + type AlertsSummaryBySeverityAndMonitorCondition struct + Sev0 *AlertsSummaryBySeverityAndMonitorConditionSev0 + Sev1 *AlertsSummaryBySeverityAndMonitorConditionSev1 + Sev2 *AlertsSummaryBySeverityAndMonitorConditionSev2 + Sev3 *AlertsSummaryBySeverityAndMonitorConditionSev3 + Sev4 *AlertsSummaryBySeverityAndMonitorConditionSev4 + type AlertsSummaryBySeverityAndMonitorConditionSev0 struct + Fired *int32 + Resolved *int32 + type AlertsSummaryBySeverityAndMonitorConditionSev1 struct + Fired *int32 + Resolved *int32 + type AlertsSummaryBySeverityAndMonitorConditionSev2 struct + Fired *int32 + Resolved *int32 + type AlertsSummaryBySeverityAndMonitorConditionSev3 struct + Fired *int32 + Resolved *int32 + type AlertsSummaryBySeverityAndMonitorConditionSev4 struct + Fired *int32 + Resolved *int32 + type AlertsSummaryByState struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryProperties struct + NextLink *string + SmartGroupsCount *int32 + SummaryByMonitorService *AlertsSummaryPropertiesSummaryByMonitorService + SummaryBySeverity *AlertsSummaryPropertiesSummaryBySeverity + SummaryBySeverityAndMonitorCondition *AlertsSummaryPropertiesSummaryBySeverityAndMonitorCondition + SummaryByState *AlertsSummaryPropertiesSummaryByState + Total *int32 + type AlertsSummaryPropertiesSummaryByMonitorService struct + ActivityLogAdministrative *int32 + ActivityLogAutoscale *int32 + ActivityLogPolicy *int32 + ActivityLogRecommendation *int32 + ActivityLogSecurity *int32 + ApplicationInsights *int32 + InfrastructureInsights *int32 + LogAnalytics *int32 + Nagios *int32 + Platform *int32 + Scom *int32 + ServiceHealth *int32 + SmartDetector *int32 + Zabbix *int32 + type AlertsSummaryPropertiesSummaryBySeverity struct + Sev0 *AlertsSummaryPropertiesSummaryBySeveritySev0 + Sev1 *AlertsSummaryPropertiesSummaryBySeveritySev1 + Sev2 *AlertsSummaryPropertiesSummaryBySeveritySev2 + Sev3 *AlertsSummaryPropertiesSummaryBySeveritySev3 + Sev4 *AlertsSummaryPropertiesSummaryBySeveritySev4 + type AlertsSummaryPropertiesSummaryBySeverityAndMonitorCondition struct + Sev0 *AlertsSummaryBySeverityAndMonitorConditionSev0 + Sev1 *AlertsSummaryBySeverityAndMonitorConditionSev1 + Sev2 *AlertsSummaryBySeverityAndMonitorConditionSev2 + Sev3 *AlertsSummaryBySeverityAndMonitorConditionSev3 + Sev4 *AlertsSummaryBySeverityAndMonitorConditionSev4 + type AlertsSummaryPropertiesSummaryBySeveritySev0 struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryPropertiesSummaryBySeveritySev1 struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryPropertiesSummaryBySeveritySev2 struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryPropertiesSummaryBySeveritySev3 struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryPropertiesSummaryBySeveritySev4 struct + Acknowledged *int32 + Closed *int32 + New *int32 + type AlertsSummaryPropertiesSummaryByState struct + Acknowledged *int32 + Closed *int32 + New *int32 + type BaseClient struct + BaseURI string + MonitorService1 MonitorService + SubscriptionID string + func New(subscriptionID string, monitorService1 MonitorService) BaseClient + func NewWithBaseURI(baseURI string, subscriptionID string, monitorService1 MonitorService) BaseClient + type ErrorResponse struct + Error *ErrorResponseBody + type ErrorResponseBody struct + Code *string + Details *[]ErrorResponseBody + Message *string + Target *string + type MonitorCondition string + const Fired + const Resolved + func PossibleMonitorConditionValues() []MonitorCondition + type MonitorService string + const ActivityLogAdministrative + const ActivityLogAutoscale + const ActivityLogPolicy + const ActivityLogRecommendation + const ActivityLogSecurity + const ApplicationInsights + const InfrastructureInsights + const LogAnalytics + const Nagios + const Platform + const SCOM + const ServiceHealth + const SmartDetector + const Zabbix + func PossibleMonitorServiceValues() []MonitorService + type Operation struct + Display *OperationDisplay + Name *string + type OperationDisplay struct + Description *string + Operation *string + Provider *string + Resource *string + type OperationsClient struct + func NewOperationsClient(subscriptionID string, monitorService1 MonitorService) OperationsClient + func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, monitorService1 MonitorService) OperationsClient + func (client OperationsClient) List(ctx context.Context) (result OperationsListPage, err error) + func (client OperationsClient) ListComplete(ctx context.Context) (result OperationsListIterator, err error) + func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsList, err error) + func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) + type OperationsList struct + NextLink *string + Value *[]Operation + func (ol OperationsList) IsEmpty() bool + type OperationsListIterator struct + func NewOperationsListIterator(page OperationsListPage) OperationsListIterator + func (iter *OperationsListIterator) Next() error + func (iter *OperationsListIterator) NextWithContext(ctx context.Context) (err error) + func (iter OperationsListIterator) NotDone() bool + func (iter OperationsListIterator) Response() OperationsList + func (iter OperationsListIterator) Value() Operation + type OperationsListPage struct + func NewOperationsListPage(cur OperationsList, ...) OperationsListPage + func (page *OperationsListPage) Next() error + func (page *OperationsListPage) NextWithContext(ctx context.Context) (err error) + func (page OperationsListPage) NotDone() bool + func (page OperationsListPage) Response() OperationsList + func (page OperationsListPage) Values() []Operation + type Resource struct + ID *string + Name *string + Type *string + type Severity string + const Sev0 + const Sev1 + const Sev2 + const Sev3 + const Sev4 + func PossibleSeverityValues() []Severity + type SignalType string + const Log + const Metric + const Unknown + func PossibleSignalTypeValues() []SignalType + type SmartGroup struct + ID *string + Name *string + Type *string + func (sg *SmartGroup) UnmarshalJSON(body []byte) error + func (sg SmartGroup) MarshalJSON() ([]byte, error) + type SmartGroupAggregatedProperty struct + Count *int32 + Name *string + type SmartGroupModification struct + ID *string + Name *string + Properties *SmartGroupModificationProperties + Type *string + func (sgm SmartGroupModification) MarshalJSON() ([]byte, error) + type SmartGroupModificationEvent string + const SmartGroupModificationEventAlertAdded + const SmartGroupModificationEventAlertRemoved + const SmartGroupModificationEventSmartGroupCreated + const SmartGroupModificationEventStateChange + func PossibleSmartGroupModificationEventValues() []SmartGroupModificationEvent + type SmartGroupModificationItem struct + Comments *string + Description *string + ModificationEvent SmartGroupModificationEvent + ModifiedAt *string + ModifiedBy *string + NewValue *string + OldValue *string + type SmartGroupModificationProperties struct + Modifications *[]SmartGroupModificationItem + NextLink *string + SmartGroupID *string + func (sgmp SmartGroupModificationProperties) MarshalJSON() ([]byte, error) + type SmartGroupProperties struct + AlertSeverities *[]SmartGroupAggregatedProperty + AlertStates *[]SmartGroupAggregatedProperty + AlertsCount *int32 + LastModifiedDateTime *date.Time + LastModifiedUserName *string + MonitorConditions *[]SmartGroupAggregatedProperty + MonitorServices *[]SmartGroupAggregatedProperty + NextLink *string + ResourceGroups *[]SmartGroupAggregatedProperty + ResourceTypes *[]SmartGroupAggregatedProperty + Resources *[]SmartGroupAggregatedProperty + Severity Severity + SmartGroupState State + StartDateTime *date.Time + func (sgp SmartGroupProperties) MarshalJSON() ([]byte, error) + type SmartGroupsClient struct + func NewSmartGroupsClient(subscriptionID string, monitorService1 MonitorService) SmartGroupsClient + func NewSmartGroupsClientWithBaseURI(baseURI string, subscriptionID string, monitorService1 MonitorService) SmartGroupsClient + func (client SmartGroupsClient) ChangeState(ctx context.Context, smartGroupID string, newState AlertState) (result SmartGroup, err error) + func (client SmartGroupsClient) ChangeStatePreparer(ctx context.Context, smartGroupID string, newState AlertState) (*http.Request, error) + func (client SmartGroupsClient) ChangeStateResponder(resp *http.Response) (result SmartGroup, err error) + func (client SmartGroupsClient) ChangeStateSender(req *http.Request) (*http.Response, error) + func (client SmartGroupsClient) GetAll(ctx context.Context, targetResource string, targetResourceGroup string, ...) (result SmartGroupsList, err error) + func (client SmartGroupsClient) GetAllPreparer(ctx context.Context, targetResource string, targetResourceGroup string, ...) (*http.Request, error) + func (client SmartGroupsClient) GetAllResponder(resp *http.Response) (result SmartGroupsList, err error) + func (client SmartGroupsClient) GetAllSender(req *http.Request) (*http.Response, error) + func (client SmartGroupsClient) GetByID(ctx context.Context, smartGroupID string) (result SmartGroup, err error) + func (client SmartGroupsClient) GetByIDPreparer(ctx context.Context, smartGroupID string) (*http.Request, error) + func (client SmartGroupsClient) GetByIDResponder(resp *http.Response) (result SmartGroup, err error) + func (client SmartGroupsClient) GetByIDSender(req *http.Request) (*http.Response, error) + func (client SmartGroupsClient) GetHistory(ctx context.Context, smartGroupID string) (result SmartGroupModification, err error) + func (client SmartGroupsClient) GetHistoryPreparer(ctx context.Context, smartGroupID string) (*http.Request, error) + func (client SmartGroupsClient) GetHistoryResponder(resp *http.Response) (result SmartGroupModification, err error) + func (client SmartGroupsClient) GetHistorySender(req *http.Request) (*http.Response, error) + type SmartGroupsList struct + NextLink *string + Value *[]SmartGroup + type SmartGroupsSortByFields string + const SmartGroupsSortByFieldsAlertsCount + const SmartGroupsSortByFieldsLastModifiedDateTime + const SmartGroupsSortByFieldsSeverity + const SmartGroupsSortByFieldsStartDateTime + const SmartGroupsSortByFieldsState + func PossibleSmartGroupsSortByFieldsValues() []SmartGroupsSortByFields + type State string + const StateAcknowledged + const StateClosed + const StateNew + func PossibleStateValues() []State + type TimeRange string + const Oned + const Oneh + const Sevend + const ThreeZerod + func PossibleTimeRangeValues() []TimeRange Other modules containing this package github.com/pmalek-sumo/azure-sdk-for-go