Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR alertsmanagement/resource-manager] Adding new resource type for alerts meta data #5124

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package alertsmanagementapi

import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alertsmanagementapi"
import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alertsmanagementapi"

type AlertsClientAPI = original.AlertsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type SmartDetectorAlertRulesClientAPI = original.SmartDetectorAlertRulesClientAPI
type SmartGroupsClientAPI = original.SmartGroupsClientAPI
74 changes: 50 additions & 24 deletions profiles/latest/alertsmanagement/mgmt/alertsmanagement/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package alertsmanagement
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement"
original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement"
)

const (
Expand All @@ -37,6 +37,13 @@ const (
StateChange AlertModificationEvent = original.StateChange
)

type AlertRuleState = original.AlertRuleState

const (
Disabled AlertRuleState = original.Disabled
Enabled AlertRuleState = original.Enabled
)

type AlertState = original.AlertState

const (
Expand Down Expand Up @@ -90,6 +97,7 @@ const (
LogAnalytics MonitorService = original.LogAnalytics
Nagios MonitorService = original.Nagios
Platform MonitorService = original.Platform
ResourceHealth MonitorService = original.ResourceHealth
SCOM MonitorService = original.SCOM
ServiceHealth MonitorService = original.ServiceHealth
SmartDetector MonitorService = original.SmartDetector
Expand Down Expand Up @@ -151,20 +159,29 @@ const (
ThreeZerod TimeRange = original.ThreeZerod
)

type ActionGroupsInformation = original.ActionGroupsInformation
type Alert = original.Alert
type AlertModification = original.AlertModification
type AlertModificationItem = original.AlertModificationItem
type AlertModificationProperties = original.AlertModificationProperties
type AlertProperties = original.AlertProperties
type AlertRule = original.AlertRule
type AlertRuleProperties = original.AlertRuleProperties
type AlertRulesList = original.AlertRulesList
type AlertRulesListIterator = original.AlertRulesListIterator
type AlertRulesListPage = original.AlertRulesListPage
type AlertsClient = original.AlertsClient
type AlertsList = original.AlertsList
type AlertsListIterator = original.AlertsListIterator
type AlertsListPage = original.AlertsListPage
type AlertsSummary = original.AlertsSummary
type AlertsSummaryGroup = original.AlertsSummaryGroup
type AlertsSummaryGroupItem = original.AlertsSummaryGroupItem
type AzureResource = original.AzureResource
type BaseClient = original.BaseClient
type Detector = original.Detector
type ErrorResponse = original.ErrorResponse
type ErrorResponse1 = original.ErrorResponse1
type ErrorResponseBody = original.ErrorResponseBody
type Essentials = original.Essentials
type Operation = original.Operation
Expand All @@ -173,7 +190,8 @@ type OperationsClient = original.OperationsClient
type OperationsList = original.OperationsList
type OperationsListIterator = original.OperationsListIterator
type OperationsListPage = original.OperationsListPage
type Resource = original.Resource
type ProxyResource = original.ProxyResource
type SmartDetectorAlertRulesClient = original.SmartDetectorAlertRulesClient
type SmartGroup = original.SmartGroup
type SmartGroupAggregatedProperty = original.SmartGroupAggregatedProperty
type SmartGroupModification = original.SmartGroupModification
Expand All @@ -182,54 +200,62 @@ type SmartGroupModificationProperties = original.SmartGroupModificationPropertie
type SmartGroupProperties = original.SmartGroupProperties
type SmartGroupsClient = original.SmartGroupsClient
type SmartGroupsList = original.SmartGroupsList
type SmartGroupsListIterator = original.SmartGroupsListIterator
type SmartGroupsListPage = original.SmartGroupsListPage
type ThrottlingInformation = original.ThrottlingInformation

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
func New(scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.New(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClient(subscriptionID string) AlertsClient {
return original.NewAlertsClient(subscriptionID)
func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator {
return original.NewAlertRulesListIterator(page)
}
func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID)
func NewAlertRulesListPage(getNextPage func(context.Context, AlertRulesList) (AlertRulesList, error)) AlertRulesListPage {
return original.NewAlertRulesListPage(getNextPage)
}
func NewAlertsClient(scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClient(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewAlertsListIterator(page AlertsListPage) AlertsListIterator {
return original.NewAlertsListIterator(page)
}
func NewAlertsListPage(getNextPage func(context.Context, AlertsList) (AlertsList, error)) AlertsListPage {
return original.NewAlertsListPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
func NewOperationsClient(scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClient(scope, subscriptionID, subscriptionID1)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
func NewOperationsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewOperationsListIterator(page OperationsListPage) OperationsListIterator {
return original.NewOperationsListIterator(page)
}
func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage {
return original.NewOperationsListPage(getNextPage)
}
func NewSmartGroupsClient(subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClient(subscriptionID)
func NewSmartDetectorAlertRulesClient(scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsClientWithBaseURI(baseURI string, subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, subscriptionID)
func NewSmartDetectorAlertRulesClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListIterator(page SmartGroupsListPage) SmartGroupsListIterator {
return original.NewSmartGroupsListIterator(page)
func NewSmartGroupsClient(scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListPage(getNextPage func(context.Context, SmartGroupsList) (SmartGroupsList, error)) SmartGroupsListPage {
return original.NewSmartGroupsListPage(getNextPage)
func NewSmartGroupsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
func NewWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.NewWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func PossibleAlertModificationEventValues() []AlertModificationEvent {
return original.PossibleAlertModificationEventValues()
}
func PossibleAlertRuleStateValues() []AlertRuleState {
return original.PossibleAlertRuleStateValues()
}
func PossibleAlertStateValues() []AlertState {
return original.PossibleAlertStateValues()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

package alertsmanagementapi

import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement/alertsmanagementapi"
import original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement/alertsmanagementapi"

type AlertsClientAPI = original.AlertsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type SmartDetectorAlertRulesClientAPI = original.SmartDetectorAlertRulesClientAPI
type SmartGroupsClientAPI = original.SmartGroupsClientAPI
74 changes: 50 additions & 24 deletions profiles/preview/alertsmanagement/mgmt/alertsmanagement/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package alertsmanagement
import (
"context"

original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2018-05-05/alertsmanagement"
original "github.com/Azure/azure-sdk-for-go/services/alertsmanagement/mgmt/2019-03-01/alertsmanagement"
)

const (
Expand All @@ -37,6 +37,13 @@ const (
StateChange AlertModificationEvent = original.StateChange
)

type AlertRuleState = original.AlertRuleState

const (
Disabled AlertRuleState = original.Disabled
Enabled AlertRuleState = original.Enabled
)

type AlertState = original.AlertState

const (
Expand Down Expand Up @@ -90,6 +97,7 @@ const (
LogAnalytics MonitorService = original.LogAnalytics
Nagios MonitorService = original.Nagios
Platform MonitorService = original.Platform
ResourceHealth MonitorService = original.ResourceHealth
SCOM MonitorService = original.SCOM
ServiceHealth MonitorService = original.ServiceHealth
SmartDetector MonitorService = original.SmartDetector
Expand Down Expand Up @@ -151,20 +159,29 @@ const (
ThreeZerod TimeRange = original.ThreeZerod
)

type ActionGroupsInformation = original.ActionGroupsInformation
type Alert = original.Alert
type AlertModification = original.AlertModification
type AlertModificationItem = original.AlertModificationItem
type AlertModificationProperties = original.AlertModificationProperties
type AlertProperties = original.AlertProperties
type AlertRule = original.AlertRule
type AlertRuleProperties = original.AlertRuleProperties
type AlertRulesList = original.AlertRulesList
type AlertRulesListIterator = original.AlertRulesListIterator
type AlertRulesListPage = original.AlertRulesListPage
type AlertsClient = original.AlertsClient
type AlertsList = original.AlertsList
type AlertsListIterator = original.AlertsListIterator
type AlertsListPage = original.AlertsListPage
type AlertsSummary = original.AlertsSummary
type AlertsSummaryGroup = original.AlertsSummaryGroup
type AlertsSummaryGroupItem = original.AlertsSummaryGroupItem
type AzureResource = original.AzureResource
type BaseClient = original.BaseClient
type Detector = original.Detector
type ErrorResponse = original.ErrorResponse
type ErrorResponse1 = original.ErrorResponse1
type ErrorResponseBody = original.ErrorResponseBody
type Essentials = original.Essentials
type Operation = original.Operation
Expand All @@ -173,7 +190,8 @@ type OperationsClient = original.OperationsClient
type OperationsList = original.OperationsList
type OperationsListIterator = original.OperationsListIterator
type OperationsListPage = original.OperationsListPage
type Resource = original.Resource
type ProxyResource = original.ProxyResource
type SmartDetectorAlertRulesClient = original.SmartDetectorAlertRulesClient
type SmartGroup = original.SmartGroup
type SmartGroupAggregatedProperty = original.SmartGroupAggregatedProperty
type SmartGroupModification = original.SmartGroupModification
Expand All @@ -182,54 +200,62 @@ type SmartGroupModificationProperties = original.SmartGroupModificationPropertie
type SmartGroupProperties = original.SmartGroupProperties
type SmartGroupsClient = original.SmartGroupsClient
type SmartGroupsList = original.SmartGroupsList
type SmartGroupsListIterator = original.SmartGroupsListIterator
type SmartGroupsListPage = original.SmartGroupsListPage
type ThrottlingInformation = original.ThrottlingInformation

func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
func New(scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.New(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClient(subscriptionID string) AlertsClient {
return original.NewAlertsClient(subscriptionID)
func NewAlertRulesListIterator(page AlertRulesListPage) AlertRulesListIterator {
return original.NewAlertRulesListIterator(page)
}
func NewAlertsClientWithBaseURI(baseURI string, subscriptionID string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, subscriptionID)
func NewAlertRulesListPage(getNextPage func(context.Context, AlertRulesList) (AlertRulesList, error)) AlertRulesListPage {
return original.NewAlertRulesListPage(getNextPage)
}
func NewAlertsClient(scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClient(scope, subscriptionID, subscriptionID1)
}
func NewAlertsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) AlertsClient {
return original.NewAlertsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewAlertsListIterator(page AlertsListPage) AlertsListIterator {
return original.NewAlertsListIterator(page)
}
func NewAlertsListPage(getNextPage func(context.Context, AlertsList) (AlertsList, error)) AlertsListPage {
return original.NewAlertsListPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
func NewOperationsClient(scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClient(scope, subscriptionID, subscriptionID1)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
func NewOperationsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewOperationsListIterator(page OperationsListPage) OperationsListIterator {
return original.NewOperationsListIterator(page)
}
func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage {
return original.NewOperationsListPage(getNextPage)
}
func NewSmartGroupsClient(subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClient(subscriptionID)
func NewSmartDetectorAlertRulesClient(scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsClientWithBaseURI(baseURI string, subscriptionID string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, subscriptionID)
func NewSmartDetectorAlertRulesClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartDetectorAlertRulesClient {
return original.NewSmartDetectorAlertRulesClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListIterator(page SmartGroupsListPage) SmartGroupsListIterator {
return original.NewSmartGroupsListIterator(page)
func NewSmartGroupsClient(scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClient(scope, subscriptionID, subscriptionID1)
}
func NewSmartGroupsListPage(getNextPage func(context.Context, SmartGroupsList) (SmartGroupsList, error)) SmartGroupsListPage {
return original.NewSmartGroupsListPage(getNextPage)
func NewSmartGroupsClientWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) SmartGroupsClient {
return original.NewSmartGroupsClientWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
func NewWithBaseURI(baseURI string, scope string, subscriptionID string, subscriptionID1 string) BaseClient {
return original.NewWithBaseURI(baseURI, scope, subscriptionID, subscriptionID1)
}
func PossibleAlertModificationEventValues() []AlertModificationEvent {
return original.PossibleAlertModificationEventValues()
}
func PossibleAlertRuleStateValues() []AlertRuleState {
return original.PossibleAlertRuleStateValues()
}
func PossibleAlertStateValues() []AlertState {
return original.PossibleAlertStateValues()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (
)

const (
DefaultBaseURI = original.DefaultBaseURI
DefaultBaseURI = original.DefaultBaseURI
DefaultIdentifier = original.DefaultIdentifier
)

type ActionRuleStatus = original.ActionRuleStatus
Expand Down Expand Up @@ -78,6 +79,13 @@ const (
AlertsSummaryGroupByFieldsSignalType AlertsSummaryGroupByFields = original.AlertsSummaryGroupByFieldsSignalType
)

type MetadataIdentifier = original.MetadataIdentifier

const (
MetadataIdentifierAlertsMetaDataProperties MetadataIdentifier = original.MetadataIdentifierAlertsMetaDataProperties
MetadataIdentifierMonitorServiceList MetadataIdentifier = original.MetadataIdentifierMonitorServiceList
)

type MonitorCondition = original.MonitorCondition

const (
Expand Down Expand Up @@ -209,11 +217,14 @@ type AlertsClient = original.AlertsClient
type AlertsList = original.AlertsList
type AlertsListIterator = original.AlertsListIterator
type AlertsListPage = original.AlertsListPage
type AlertsMetaData = original.AlertsMetaData
type AlertsMetaDataProperties = original.AlertsMetaDataProperties
type AlertsSummary = original.AlertsSummary
type AlertsSummaryGroup = original.AlertsSummaryGroup
type AlertsSummaryGroupItem = original.AlertsSummaryGroupItem
type BaseClient = original.BaseClient
type BasicActionRuleProperties = original.BasicActionRuleProperties
type BasicAlertsMetaDataProperties = original.BasicAlertsMetaDataProperties
type Bool = original.Bool
type Condition = original.Condition
type Conditions = original.Conditions
Expand All @@ -222,6 +233,8 @@ type ErrorResponse = original.ErrorResponse
type ErrorResponseBody = original.ErrorResponseBody
type Essentials = original.Essentials
type ManagedResource = original.ManagedResource
type MonitorServiceDetails = original.MonitorServiceDetails
type MonitorServiceList = original.MonitorServiceList
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationsClient = original.OperationsClient
Expand Down Expand Up @@ -315,6 +328,9 @@ func PossibleAlertsSortByFieldsValues() []AlertsSortByFields {
func PossibleAlertsSummaryGroupByFieldsValues() []AlertsSummaryGroupByFields {
return original.PossibleAlertsSummaryGroupByFieldsValues()
}
func PossibleMetadataIdentifierValues() []MetadataIdentifier {
return original.PossibleMetadataIdentifierValues()
}
func PossibleMonitorConditionValues() []MonitorCondition {
return original.PossibleMonitorConditionValues()
}
Expand Down
Loading