Skip to content

Commit

Permalink
Generated from d33c2e897124c07ae2896600c2215ae3717e74ba (#3194)
Browse files Browse the repository at this point in the history
#5326 Fix the criteria definition
  • Loading branch information
AutorestCI authored Apr 2, 2019
1 parent 5f9206b commit b2371e3
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

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;
Expand All @@ -19,27 +20,27 @@
@JsonTypeName("Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction")
public class LogToMetricAction extends Action {
/**
* Severity of the alert.
* Criteria of Metric.
*/
@JsonProperty(value = "criteria", required = true)
private Criteria criteria;
private List<Criteria> criteria;

/**
* Get severity of the alert.
* Get criteria of Metric.
*
* @return the criteria value
*/
public Criteria criteria() {
public List<Criteria> criteria() {
return this.criteria;
}

/**
* Set severity of the alert.
* Set criteria of Metric.
*
* @param criteria the criteria value to set
* @return the LogToMetricAction object itself.
*/
public LogToMetricAction withCriteria(Criteria criteria) {
public LogToMetricAction withCriteria(List<Criteria> criteria) {
this.criteria = criteria;
return this;
}
Expand Down

0 comments on commit b2371e3

Please sign in to comment.