Skip to content

Commit 8afa5cf

Browse files
[MetricsAdvisor] Generated code and latest swagger (Azure#15748)
1 parent 4ff4cef commit 8afa5cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1054
-1013
lines changed

sdk/metricsadvisor/ai-metrics-advisor/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,33 +113,33 @@ const adminClient = new MetricsAdvisorAdministrationClient("<endpoint>", credent
113113

114114
`MetricsAdvisorAdministrationClient` is the interface responsible for managing entities in the Metrics Advisor resources, such as managing data feeds, anomaly detection configurations, anomaly alerting configurations.
115115

116-
### DataFeed
116+
### Data Feed
117117

118-
A `DataFeed` is what Metrics Advisor ingests from your data source, such as Cosmos DB or a SQL server. A data feed contains rows of:
118+
A data feed is what Metrics Advisor ingests from your data source, such as Cosmos DB or a SQL server. A data feed contains rows of:
119119

120120
- timestamps
121121
- zero or more dimensions
122122
- one or more measures
123123

124124
### Metric
125125

126-
A `Metric` is a quantifiable measure that is used to monitor and assess the status of a specific business process. It can be a combination of multiple time series values divided into dimensions. For example a web health metric might contain dimensions for user count and the en-us market.
126+
A metric is a quantifiable measure that is used to monitor and assess the status of a specific business process. It can be a combination of multiple time series values divided into dimensions. For example a web health metric might contain dimensions for user count and the en-us market.
127127

128128
### AnomalyDetectionConfiguration
129129

130130
`AnomalyDetectionConfiguration` is required for every time series, and determines whether a point in the time series is an anomaly.
131131

132132
### Anomaly & Incident
133133

134-
After a detection configuration is applied to metrics, `Incident`s are generated whenever any series within it has an `Anomaly`.
134+
After a detection configuration is applied to metrics, `AnomalyIncident`s are generated whenever any series within it has an `DataPointAnomaly`.
135135

136136
### Alert
137137

138-
You can configure which anomalies should trigger an `Alert`. You can set multiple alerts with different settings. For example, you could create an alert for anomalies with lower business impact, and another for more important alerts.
138+
You can configure which anomalies should trigger an `AnomalyAlert`. You can set multiple alerts with different settings. For example, you could create an alert for anomalies with lower business impact, and another for more important alerts.
139139

140140
### Hook
141141

142-
Metrics Advisor lets you create and subscribe to real-time alerts. These alerts are sent over the internet, using a `Hook`.
142+
Metrics Advisor lets you create and subscribe to real-time alerts. These alerts are sent over the internet, using a notification hook.
143143

144144
Please refer to [the Metrics Advisory Glossary][metrics_advisor_glossary] documentation page for a comprehensive list of concepts.
145145

@@ -462,10 +462,10 @@ async function queryAnomaliesByAlert(client, alert) {
462462
console.log(
463463
`Listing anomalies for alert configuration '${alert.alertConfigId}' and alert '${alert.id}'`
464464
);
465-
const iterator = client.listAnomalies(alert);
465+
const iterator = client.listAnomaliesForAlert(alert);
466466
for await (const anomaly of iterator) {
467467
console.log(
468-
` Anomaly ${anomaly.severity} ${anomaly.status} ${anomaly.seriesKey.dimension} ${anomaly.timestamp}`
468+
` Anomaly ${anomaly.severity} ${anomaly.status} ${anomaly.seriesKey} ${anomaly.timestamp}`
469469
);
470470
}
471471
}

sdk/metricsadvisor/ai-metrics-advisor/recordings/node/aad_metricsadvisoradministrationclient_datafeed_datafeed/recording_creates_eventhubs_data_feed.js

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/metricsadvisor/ai-metrics-advisor/recordings/node/aad_metricsadvisoradministrationclient_datafeed_datafeed/recording_deletes_eventhubs_data_feed.js

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)