-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR monitor/resource-manager] Add Multi Resource Alert changes fo…
…r Metric Alert API (#2432) * Generated from 09c5415be341f2a6816dafb7a504818a3c536b7e Multi Resource Alert changes * Generated from a88d7f44fc48e9ea0c1203b6bf10bac1b65111e4 Merge remote-tracking branch 'upstream/master'
- Loading branch information
1 parent
dd2ef30
commit 7866629
Showing
7 changed files
with
219 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...microsoft/azure/management/monitor/MetricAlertMultipleResourceMultipleMetricCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.monitor; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
||
/** | ||
* Speficies the metric alert criteria for multiple resource that has multiple | ||
* metric criteria. | ||
*/ | ||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type") | ||
@JsonTypeName("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria") | ||
public class MetricAlertMultipleResourceMultipleMetricCriteria extends MetricAlertCriteria { | ||
/** | ||
* the list of multiple metric criteria for this 'all of' operation. | ||
*/ | ||
@JsonProperty(value = "allOf") | ||
private List<MultiMetricCriteria> allOf; | ||
|
||
/** | ||
* Get the list of multiple metric criteria for this 'all of' operation. | ||
* | ||
* @return the allOf value | ||
*/ | ||
public List<MultiMetricCriteria> allOf() { | ||
return this.allOf; | ||
} | ||
|
||
/** | ||
* Set the list of multiple metric criteria for this 'all of' operation. | ||
* | ||
* @param allOf the allOf value to set | ||
* @return the MetricAlertMultipleResourceMultipleMetricCriteria object itself. | ||
*/ | ||
public MetricAlertMultipleResourceMultipleMetricCriteria withAllOf(List<MultiMetricCriteria> allOf) { | ||
this.allOf = allOf; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...gmt-monitor/src/main/java/com/microsoft/azure/management/monitor/MultiMetricCriteria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.monitor; | ||
|
||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
|
||
/** | ||
* The types of conditions for a multi resource alert. | ||
*/ | ||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "criterionType") | ||
@JsonTypeName("MultiMetricCriteria") | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(name = "StaticThresholdCriterion", value = MetricCriteria.class) | ||
}) | ||
public class MultiMetricCriteria { | ||
/** | ||
* Unmatched properties from the message are deserialized this collection. | ||
*/ | ||
@JsonProperty(value = "") | ||
private Map<String, Object> additionalProperties; | ||
|
||
/** | ||
* Get unmatched properties from the message are deserialized this collection. | ||
* | ||
* @return the additionalProperties value | ||
*/ | ||
public Map<String, Object> additionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
/** | ||
* Set unmatched properties from the message are deserialized this collection. | ||
* | ||
* @param additionalProperties the additionalProperties value to set | ||
* @return the MultiMetricCriteria object itself. | ||
*/ | ||
public MultiMetricCriteria withAdditionalProperties(Map<String, Object> additionalProperties) { | ||
this.additionalProperties = additionalProperties; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters