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 ActionGroupsInformation struct + CustomEmailSubject *string + CustomWebhookPayload *string + GroupIds *[]string + type Alert struct + ID *string + Name *string + Properties *AlertProperties + Type *string + 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 + Context interface{} + EgressConfig interface{} + Essentials *Essentials + type AlertRule struct + ID *string + Name *string + Type *string + func (ar *AlertRule) UnmarshalJSON(body []byte) error + func (ar AlertRule) MarshalJSON() ([]byte, error) + type AlertRuleProperties struct + ActionGroups *ActionGroupsInformation + Description *string + Detector *Detector + Frequency *string + Scope *[]string + Severity Severity + State AlertRuleState + Throttling *ThrottlingInformation + type AlertRuleState string + const Disabled + const Enabled + func PossibleAlertRuleStateValues() []AlertRuleState + type AlertRulesList struct + NextLink *string + Value *[]AlertRule + func (arl AlertRulesList) IsEmpty() bool + type AlertRulesListIterator struct + func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator + func (iter *AlertRulesListIterator) Next() error + func (iter *AlertRulesListIterator) NextWithContext(ctx context.Context) (err error) + func (iter AlertRulesListIterator) NotDone() bool + func (iter AlertRulesListIterator) Response() AlertRulesList + func (iter AlertRulesListIterator) Value() AlertRule + type AlertRulesListPage struct + func NewAlertRulesListPage(cur AlertRulesList, ...) AlertRulesListPage + func (page *AlertRulesListPage) Next() error + func (page *AlertRulesListPage) NextWithContext(ctx context.Context) (err error) + func (page AlertRulesListPage) NotDone() bool + func (page AlertRulesListPage) Response() AlertRulesList + func (page AlertRulesListPage) Values() []AlertRule + type AlertState string + const AlertStateAcknowledged + const AlertStateClosed + const AlertStateNew + func PossibleAlertStateValues() []AlertState + type AlertsClient struct + func NewAlertsClient(scope string, subscriptionID string, subscriptionID1 string) AlertsClient + func NewAlertsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) 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, targetResourceType string, ...) (result AlertsListPage, err error) + func (client AlertsClient) GetAllComplete(ctx context.Context, targetResource string, targetResourceType string, ...) (result AlertsListIterator, err error) + func (client AlertsClient) GetAllPreparer(ctx context.Context, targetResource string, targetResourceType 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, groupby AlertsSummaryGroupByFields, ...) (result AlertsSummary, err error) + func (client AlertsClient) GetSummaryPreparer(ctx context.Context, groupby AlertsSummaryGroupByFields, ...) (*http.Request, error) + func (client AlertsClient) GetSummaryResponder(resp *http.Response) (result AlertsSummary, err error) + func (client AlertsClient) GetSummarySender(req *http.Request) (*http.Response, error) + func (client AlertsClient) MetaData(ctx context.Context) (result AlertsMetaData, err error) + func (client AlertsClient) MetaDataPreparer(ctx context.Context) (*http.Request, error) + func (client AlertsClient) MetaDataResponder(resp *http.Response) (result AlertsMetaData, err error) + func (client AlertsClient) MetaDataSender(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 AlertsMetaData struct + Properties BasicAlertsMetaDataProperties + func (amd *AlertsMetaData) UnmarshalJSON(body []byte) error + type AlertsMetaDataProperties struct + MetadataIdentifier MetadataIdentifier + func (amdp AlertsMetaDataProperties) AsAlertsMetaDataProperties() (*AlertsMetaDataProperties, bool) + func (amdp AlertsMetaDataProperties) AsBasicAlertsMetaDataProperties() (BasicAlertsMetaDataProperties, bool) + func (amdp AlertsMetaDataProperties) AsMonitorServiceList() (*MonitorServiceList, bool) + func (amdp AlertsMetaDataProperties) MarshalJSON() ([]byte, error) + 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 + Properties *AlertsSummaryGroup + Type *string + func (as AlertsSummary) MarshalJSON() ([]byte, error) + type AlertsSummaryGroup struct + Groupedby *string + SmartGroupsCount *int32 + Total *int32 + Values *[]AlertsSummaryGroupItem + type AlertsSummaryGroupByFields string + const AlertsSummaryGroupByFieldsAlertRule + const AlertsSummaryGroupByFieldsAlertState + const AlertsSummaryGroupByFieldsMonitorCondition + const AlertsSummaryGroupByFieldsMonitorService + const AlertsSummaryGroupByFieldsSeverity + const AlertsSummaryGroupByFieldsSignalType + func PossibleAlertsSummaryGroupByFieldsValues() []AlertsSummaryGroupByFields + type AlertsSummaryGroupItem struct + Count *int32 + Groupedby *string + Name *string + Values *[]AlertsSummaryGroupItem + type AzureResource struct + ID *string + Name *string + Type *string + type BaseClient struct + BaseURI string + Scope string + SubscriptionID string + SubscriptionID1 string + func New(scope string, subscriptionID string, subscriptionID1 string) BaseClient + func NewWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) BaseClient + type BasicAlertsMetaDataProperties interface + AsAlertsMetaDataProperties func() (*AlertsMetaDataProperties, bool) + AsMonitorServiceList func() (*MonitorServiceList, bool) + type Detector struct + Description *string + ID *string + ImagePaths *[]string + Name *string + Parameters map[string]interface{} + SupportedResourceTypes *[]string + func (d Detector) MarshalJSON() ([]byte, error) + type ErrorResponse struct + Error *ErrorResponseBody + type ErrorResponseBody struct + Code *string + Details *[]ErrorResponseBody + Message *string + Target *string + type Essentials struct + AlertRule *string + AlertState AlertState + LastModifiedDateTime *date.Time + LastModifiedUserName *string + MonitorCondition MonitorCondition + MonitorConditionResolvedDateTime *date.Time + MonitorService MonitorService + Severity Severity + SignalType SignalType + SmartGroupID *string + SmartGroupingReason *string + SourceCreatedID *string + StartDateTime *date.Time + TargetResource *string + TargetResourceGroup *string + TargetResourceName *string + TargetResourceType *string + func (e Essentials) MarshalJSON() ([]byte, error) + type MetadataIdentifier string + const MetadataIdentifierAlertsMetaDataProperties + const MetadataIdentifierMonitorServiceList + func PossibleMetadataIdentifierValues() []MetadataIdentifier + 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 LogAnalytics + const Nagios + const Platform + const ResourceHealth + const SCOM + const ServiceHealth + const SmartDetector + const VMInsights + const Zabbix + func PossibleMonitorServiceValues() []MonitorService + type MonitorServiceDetails struct + DisplayName *string + Name *string + type MonitorServiceList struct + Data *[]MonitorServiceDetails + MetadataIdentifier MetadataIdentifier + func (msl MonitorServiceList) AsAlertsMetaDataProperties() (*AlertsMetaDataProperties, bool) + func (msl MonitorServiceList) AsBasicAlertsMetaDataProperties() (BasicAlertsMetaDataProperties, bool) + func (msl MonitorServiceList) AsMonitorServiceList() (*MonitorServiceList, bool) + func (msl MonitorServiceList) MarshalJSON() ([]byte, error) + type Operation struct + Display *OperationDisplay + Name *string + type OperationDisplay struct + Description *string + Operation *string + Provider *string + Resource *string + type OperationsClient struct + func NewOperationsClient(scope string, subscriptionID string, subscriptionID1 string) OperationsClient + func NewOperationsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) 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 ProxyResource 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 SmartDetectorAlertRulesClient struct + func NewSmartDetectorAlertRulesClient(scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient + func NewSmartDetectorAlertRulesClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient + func (client SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, alertRuleName string, ...) (result AlertRule, err error) + func (client SmartDetectorAlertRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, alertRuleName string, ...) (*http.Request, error) + func (client SmartDetectorAlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (result AlertRule, err error) + func (client SmartDetectorAlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) + func (client SmartDetectorAlertRulesClient) Delete(ctx context.Context, resourceGroupName string, alertRuleName string) (result autorest.Response, err error) + func (client SmartDetectorAlertRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, alertRuleName string) (*http.Request, error) + func (client SmartDetectorAlertRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) + func (client SmartDetectorAlertRulesClient) DeleteSender(req *http.Request) (*http.Response, error) + func (client SmartDetectorAlertRulesClient) Get(ctx context.Context, resourceGroupName string, alertRuleName string, ...) (result AlertRule, err error) + func (client SmartDetectorAlertRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, alertRuleName string, ...) (*http.Request, error) + func (client SmartDetectorAlertRulesClient) GetResponder(resp *http.Response) (result AlertRule, err error) + func (client SmartDetectorAlertRulesClient) GetSender(req *http.Request) (*http.Response, error) + func (client SmartDetectorAlertRulesClient) List(ctx context.Context) (result AlertRulesListPage, err error) + func (client SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AlertRulesListPage, err error) + func (client SmartDetectorAlertRulesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AlertRulesListIterator, err error) + func (client SmartDetectorAlertRulesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) + func (client SmartDetectorAlertRulesClient) ListByResourceGroupResponder(resp *http.Response) (result AlertRulesList, err error) + func (client SmartDetectorAlertRulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) + func (client SmartDetectorAlertRulesClient) ListComplete(ctx context.Context) (result AlertRulesListIterator, err error) + func (client SmartDetectorAlertRulesClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client SmartDetectorAlertRulesClient) ListResponder(resp *http.Response) (result AlertRulesList, err error) + func (client SmartDetectorAlertRulesClient) ListSender(req *http.Request) (*http.Response, error) + type SmartDetectorErrorResponse struct + Code *string + Message *string + 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 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 ThrottlingInformation struct + Duration *string + 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