![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.azure.management.monitor.LogToMetricAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK.
/**
* 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;
import com.fasterxml.jackson.databind.annotation.JsonTypeResolver;
/**
* Specify action need to be taken when rule type is converting log to metric.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type")
@JsonTypeName("Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction")
@JsonTypeResolver(OdataTypeDiscriminatorTypeResolver.class)
public class LogToMetricAction extends Action {
/**
* Criteria of Metric.
*/
@JsonProperty(value = "criteria", required = true)
private List criteria;
/**
* Get criteria of Metric.
*
* @return the criteria value
*/
public List criteria() {
return this.criteria;
}
/**
* Set criteria of Metric.
*
* @param criteria the criteria value to set
* @return the LogToMetricAction object itself.
*/
public LogToMetricAction withCriteria(List criteria) {
this.criteria = criteria;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy