Skip to content

Commit

Permalink
Update Changelog (Azure#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Jun 2, 2021
1 parent 8f8c822 commit 2d62afc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
11 changes: 9 additions & 2 deletions sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
## 1.0.0-beta.4 (Unreleased)

### Features added
- Added support for Azure Log Analytics DataFeed source.
- Added support for Azure Log Analytics DataFeed source
- Added data source credential API support to client
- Added authentication type support for data feed
- Added property `splitAlertByDimensions` to AnomalyAlertConfiguration model

### Breaking changes
- Replaced updateSubscriptionKey and updateApiKey into one method updateKey
- Deprecated support for HttpRequestDataFeed and ElasticsearchDataFeed source type
- Renamed `value` and `expectedValue` to `valueOfRootNode` and `expectedValueOfRootNode`
- Renamed `top` parameter to `maxPageSize`

- Removed granularity type DataFeedGranularityType.PerSecond as it's not supported by the service anymore.

## 1.0.0-beta.3 (2021-02-09)
- Support Azure Active Directory (AAD) authentication for Metrics Advisor clients.
- Renamed method `listDimensionValuesWithAnomalies` and `ListDimensionValuesWithAnomaliesOptions`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public final class AnomalyIncident {
private AnomalyIncidentStatus status;
private OffsetDateTime startTime;
private OffsetDateTime lastTime;
private Double value;
private Double expectedValue;
private Double valueOfRootNode;
private Double expectedValueOfRootNode;

static {
IncidentHelper.setAccessor(new IncidentHelper.IncidentAccessor() {
Expand Down Expand Up @@ -53,12 +53,12 @@ public void setRootDimensionKey(AnomalyIncident incident, DimensionKey rootDimen

@Override
public void setValue(AnomalyIncident incident, Double value) {
incident.setValue(value);
incident.setValueOfRootNode(value);
}

@Override
public void setExpectedValue(AnomalyIncident incident, Double value) {
incident.setExpectedValue(value);
incident.setExpectedValueOfRootNode(value);
}

@Override
Expand Down Expand Up @@ -136,17 +136,17 @@ public DimensionKey getRootDimensionKey() {
*
* @return The value.
*/
public Double getValue() {
return this.value;
public Double getValueOfRootNode() {
return this.valueOfRootNode;
}

/**
* Gets the expected aggregated value at root dimension node had there is no incident.
*
* @return The expected value.
*/
public Double getExpectedValue() {
return this.expectedValue;
public Double getExpectedValueOfRootNode() {
return this.expectedValueOfRootNode;
}

/**
Expand Down Expand Up @@ -205,12 +205,12 @@ void setRootDimensionKey(DimensionKey rootDimensionKey) {
this.rootDimensionKey = rootDimensionKey;
}

void setValue(Double value) {
this.value = value;
void setValueOfRootNode(Double valueOfRootNode) {
this.valueOfRootNode = valueOfRootNode;
}

void setExpectedValue(Double value) {
this.expectedValue = value;
void setExpectedValueOfRootNode(Double value) {
this.expectedValueOfRootNode = value;
}

void setSeverity(AnomalySeverity severity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
exports com.azure.ai.metricsadvisor.administration;

opens com.azure.ai.metricsadvisor.implementation to com.fasterxml.jackson.databind;
opens com.azure.ai.metricsadvisor.administration.models to com.fasterxml.jackson.databind;
opens com.azure.ai.metricsadvisor.models to com.fasterxml.jackson.databind;
opens com.azure.ai.metricsadvisor.implementation.models to com.fasterxml.jackson.databind, com.azure.core;
}

0 comments on commit 2d62afc

Please sign in to comment.