![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.azure.management.monitor.Criteria 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;
/**
* Specifies the criteria for converting log to metric.
*/
public class Criteria {
/**
* Name of the metric.
*/
@JsonProperty(value = "metricName", required = true)
private String metricName;
/**
* List of Dimensions for creating metric.
*/
@JsonProperty(value = "dimensions")
private List dimensions;
/**
* Get name of the metric.
*
* @return the metricName value
*/
public String metricName() {
return this.metricName;
}
/**
* Set name of the metric.
*
* @param metricName the metricName value to set
* @return the Criteria object itself.
*/
public Criteria withMetricName(String metricName) {
this.metricName = metricName;
return this;
}
/**
* Get list of Dimensions for creating metric.
*
* @return the dimensions value
*/
public List dimensions() {
return this.dimensions;
}
/**
* Set list of Dimensions for creating metric.
*
* @param dimensions the dimensions value to set
* @return the Criteria object itself.
*/
public Criteria withDimensions(List dimensions) {
this.dimensions = dimensions;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy