1.0.0 (2021-07-08)
New Features
DimensionKey
now implements theIEnumerable<KeyValuePair<string, string>>
interface. Dimension columns can now be enumerated.- Added method
Contains
toDimensionKey
to check whether or not a dimension column is present. - Added a property setter to
MetricSeriesGroupDetectionCondition.SeriesGroupKey
and toMetricSingleSeriesDetectionCondition.SeriesKey
. - Added property
DimensionsToSplitAlert
toAnomalyAlertConfiguration
to allow splitting an alert into multiple ones. - Added property
MeasureType
toMetricBoundaryCondition
to control which measure should be used when checking boundaries for alert triggering. Current supported types areValue
andMean
. NotificationHook.Administrators
is now aIList
(not read-only anymore), and can be used to update the list of administrators or set it during creation.- Added property
HookKind
toNotificationHook
. - Added property
CredentialKind
toDataSourceCredentialEntity
. - Added value
None
toFeedbackQueryTimeMode
to indicate that no time mode is set. - Some properties can now be set to their default value if set to null during an Update operation. For example,
DataFeedIngestionSettings.IngestionStartOffset
, orMetricWholeSeriesDetectionCondition.SmartDetectionCondition
. - Added new constructor to
AzureDataLakeStorageDataFeedSource
to be used with authentication types that are notBasic
. - Added new constructor to
SqlServerDataFeedSource
to be used with theSqlConnectionString
authentication type.
Breaking Changes
- Removed methods
AddDimensionColumn
andRemoveDimensionColumn
fromDimensionKey
. In order to access elements, the new methodTryGetValue
must be used. Once the instance has been created, the columns can't be modified anymore. DimensionKey
is not anIEquatable
anymore. Equality will be calculated based on reference only.DimensionKey
constructor now takes the requireddimensions
parameter.- The whole
DatasourceCredential
API has been renamed toDataSourceCredential
. This includes renames in methods, method parameters, and properties.- Renamed type
DatasourceCredential
toDataSourceCredentialEntity
. - Renamed type
DataLakeGen2SharedKeyDatasourceCredential
toDataLakeSharedKeyCredentialEntity
. - Renamed type
ServicePrincipalDatasourceCredential
toServicePrincipalCredentialEntity
. - Renamed type
ServicePrincipalInKeyVaultDatasourceCredential
toServicePrincipalInKeyVaultCredentialEntity
. - Renamed type
SqlConnectionStringDatasourceCredential
toSqlConnectionStringCredentialEntity
.
- Renamed type
- Renamed type
DetectionConditionsOperator
toDetectionConditionOperator
. Also,MetricWholeSeriesDetectionCondition.CrossConditionsOperator
has been renamed toConditionOperator
. - Renamed type
MetricAnomalyAlertConfiguration
toMetricAlertConfiguration
. - Renamed type
MetricAnomalyAlertConfigurationsOperator
toMetricAlertConfigurationsOperator
. - Renamed type
DataSourceType
toDataSourceKind
. Similarly,GetDataFeedsFilter.SourceType
has been renamed toSourceKind
, andDataFeedSource.DataSourceType
has been renamed toDataSourceKind
. - Renamed type
AzureDataLakeStorageGen2DataFeedSource
toAzureDataLakeStorageDataFeedSource
. Similarly,DataSourceType.AzureDataLakeStorageGen2
has been renamed toAzureDataLakeStorage
. - Renamed type
FeedbackType
toMetricFeedbackKind
. Similarly,GetAllFeedbackOptions.FeedbackType
has been renamed toFeedbackKind
, andMetricFeedback.Type
toFeedbackKind
as well. - Renamed type
PeriodType
toMetricPeriodType
. - Renamed type
FeedbackDimensionFilter
toFeedbackFilter
and moved it to the namespaceAzure.AI.MetricsAdvisor
. - Renamed type
GetAnomaliesForDetectionConfigurationFilter
toAnomalyFilter
. - Renamed type
GetDataFeedsFilter
toDataFeedFilter
, and the propertyGetDataFeedsOptions.GetDataFeedsFilter
toFilter
. - Split the method
GetAnomalies
into two different methods:GetAnomaliesForAlert
andGetAnomaliesForDetectionConfiguration
. - Split the method
GetIncidents
into two different methods:GetIncidentsForAlert
andGetIncidentsForDetectionConfiguration
. - Removed the property
DimensionFilter
inMetricFeedback
. It's now a property of typeDimensionKey
(namedDimensionKey
as well). Similarly, feedback constructors now require adimensionKey
parameter to be passed. DataFeedIngestionSettings
constructor now takes the requiredingestionStartsOn
parameter. For this reason, the propertyIngestionStartTime
, now namedIngestionStartsOn
, is not nullable anymore.DataFeedMissingDataPointFillSettings
constructor now takes the requiredfillType
parameter. For this reason, the propertyFillType
is not nullable anymore.EmailNotificationHook
constructor now takes the requiredname
parameter.WebNotificationHook
constructor now takes the requiredname
andendpoint
parameters.MetricSeriesGroupDetectionCondition
constructor now takes the requiredseriesGroupKey
parameter.MetricSingleSeriesDetectionCondition
constructor now takes the requiredseriesKey
parameter.- Renamed all occurrences of
CreatedTime
toCreatedOn
andModifiedTime
toLastModified
. - Renamed
AnomalyIncident.StartTime
toStartedOn
andAnomalyIncident.LastTime
toLastDetectedOn
. - Renamed any other occurrences of
StartTime
toStartsOn
, andEndTime
toEndsOn
, including property and parameter names. - Renamed
AlertQueryTimeMode.AnomalyTime
toAnomalyDetectedOn
, andFeedbackQueryTimeMode.FeedbackCreatedTime
toFeedbackCreatedOn
. - Renamed
DataFeedRollupSettings.AlreadyRollupIdentificationValue
toRollupIdentificationValue
. - In
DataFeedRollupType
, renamedAlreadyRollup
toAlreadyRolledUp
,NeedRollup
toRollupNeeded
, andNoRollup
toNoRollupNeeded
. - In
DataFeed
, renamedAdministratorsEmails
toAdministrators
,ViewersEmails
toViewers
, andCreatorEmail
toCreator
. - In
NotificationHook
, renamedAdministratorsEmails
toAdministrators
, andExternalLink
toExternalUri
. - In
MetricAnomalyFeedback
, renamedAnomalyDetectionConfigurationId
toDetectionConfigurationId
, andAnomalyDetectionConfigurationSnapshot
toDetectionConfigurationSnapshot
. - In
ChangeThresholdCondition
, renamedIsWithinRange
toWithinRange
. Similarly, the constructor parameterisWithinRange
has been renamed towithinRange
. - In
MetricSeriesData
, removed theDefinition
property. Now, propertiesMetricId
andSeriesKey
can be accessed directly fromMetricSeriesData
. - In
DataPointAnomaly
, renamed propertyAnomalyDetectionConfigurationId
toDetectionConfigurationId
. - In
DataFeedMetric
, renamed constructor parametermetricName
toname
only. - In
DataFeedDimension
, renamed constructor parameterdimensionName
toname
only. - In
MetricAnomalyAlertScope
, renamed static methodsGetScopeFor<...>
toCreateScopeFor<...>
. For instance,GetScopeForSeriesGroup
was renamed toCreateScopeForSeriesGroup
. - Changed signature of the
MetricAnomalyAlertScope.GetScopeForTopNGroup
method to take the parameterstop
,period
, andminimumTopCount
directly. For this reason, removed the public constructor ofTopNGroupScope
. - Moved
GetAlertConfigurationsOptions
,GetDatasourceCredentialsOptions
, andGetDetectionConfigurationsOptions
to theAzure.AI.MetricsAdvisor.Administration
namespace. - Moved
DatasourceCredential
,DataFeedSource
,NotificationHook
, and all of their concrete child types to theAzure.AI.MetricsAdvisor.Administration
namespace. - Moved
MetricFeedback
and all of its concrete child types to theAzure.AI.MetricsAdvisor
namespace. - In
GetAllFeedbackOptions
, moved all feedback filter properties to a new nested propertyFilter
of typeFeedbackFilter
. - Changed order of parameters of
MetricsAdvisorClient.GetMetricEnrichedSeriesData
. Now,detectionConfigurationId
appears first. - Optional properties
FeedbackFilter.DimensionKey
andGetAnomalyDimensionValuesOptions.DimensionToFilter
must now be manually added with setters to be used. - Moved property
DataFeed.SourceType
toDataFeedSource.DataSourceType
. - In
GetAnomaliesForDetectionConfigurationFilter
(now namedAnomalyFilter
), renamedSeriesGroupKeys
toDimensionKeys
. - In
GetAnomalyDimensionValuesOptions
, renamedDimensionToFilter
toSeriesGroupKey
. - In
GetIncidentsForAlertOptions
, renamedDimensionsToFilter
toDimensionKeys
. - In
GetMetricDimensionValuesOptions
, renamedDimensionValueToFilter
toDimensionValueFilter
. - In
GetMetricSeriesDataOptions
, renamedSeriesToFilter
toSeriesKeys
. - In
GetMetricSeriesDefinitionsOptions
, renamedDimensionCombinationsToFilter
toDimensionCombinationsFilter
. - In
AnomalyIncident
, renamedRootDimensionKey
toRootSeriesKey
. - In
FeedbackDimensionFilter
(now namedFeedbackFilter
), renamedDimensionFilter
toDimensionKey
. - In
MetricsAdvisorKeyCredential
, mergedUpdateSubscriptionKey
andUpdateApiKey
into a single method,Update
, to make it an atomic operation. - Removed setters from
StartTime
andEndTime
, both inMetricAnomalyFeedback
and inMetricChangePointFeedback
. - The class
NotificationHook
is now abstract. - The class
DatasourceCredential
(now calledDataSourceCredentialEntity
) is now abstract. AlertQueryTimeMode
andFeedbackQueryTimeMode
are now regular enums.- The enum
AuthenticationType
present in someDataFeedSource
subtypes is now an extensible enum. - Removed constructor
(string workspaceId, string query)
from theLogAnalyticsDataFeedSource
.