From b2371e311be31fe38724f9f657b37a8028dfbcde Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 2 Apr 2019 14:29:46 -0700 Subject: [PATCH] Generated from d33c2e897124c07ae2896600c2215ae3717e74ba (#3194) #5326 Fix the criteria definition --- .../azure/management/monitor/LogToMetricAction.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogToMetricAction.java b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogToMetricAction.java index a1f5e4d94ad35..6ae94d204d9fc 100644 --- a/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogToMetricAction.java +++ b/azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogToMetricAction.java @@ -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; @@ -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; /** - * Get severity of the alert. + * Get criteria of Metric. * * @return the criteria value */ - public Criteria criteria() { + public List 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) { this.criteria = criteria; return this; }