com.microsoft.azure.management.cosmosdb.implementation.PercentileMetricInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.cosmosdb.implementation;
import org.joda.time.DateTime;
import com.microsoft.azure.management.cosmosdb.UnitType;
import com.microsoft.azure.management.cosmosdb.MetricName;
import java.util.List;
import com.microsoft.azure.management.cosmosdb.PercentileMetricValue;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Percentile Metric data.
*/
public class PercentileMetricInner {
/**
* The start time for the metric (ISO-8601 format).
*/
@JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime startTime;
/**
* The end time for the metric (ISO-8601 format).
*/
@JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime endTime;
/**
* The time grain to be used to summarize the metric values.
*/
@JsonProperty(value = "timeGrain", access = JsonProperty.Access.WRITE_ONLY)
private String timeGrain;
/**
* The unit of the metric. Possible values include: 'Count', 'Bytes',
* 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond',
* 'Milliseconds'.
*/
@JsonProperty(value = "unit")
private UnitType unit;
/**
* The name information for the metric.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private MetricName name;
/**
* The percentile metric values for the specified time window and timestep.
*/
@JsonProperty(value = "metricValues", access = JsonProperty.Access.WRITE_ONLY)
private List metricValues;
/**
* Get the start time for the metric (ISO-8601 format).
*
* @return the startTime value
*/
public DateTime startTime() {
return this.startTime;
}
/**
* Get the end time for the metric (ISO-8601 format).
*
* @return the endTime value
*/
public DateTime endTime() {
return this.endTime;
}
/**
* Get the time grain to be used to summarize the metric values.
*
* @return the timeGrain value
*/
public String timeGrain() {
return this.timeGrain;
}
/**
* Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'.
*
* @return the unit value
*/
public UnitType unit() {
return this.unit;
}
/**
* Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'.
*
* @param unit the unit value to set
* @return the PercentileMetricInner object itself.
*/
public PercentileMetricInner withUnit(UnitType unit) {
this.unit = unit;
return this;
}
/**
* Get the name information for the metric.
*
* @return the name value
*/
public MetricName name() {
return this.name;
}
/**
* Get the percentile metric values for the specified time window and timestep.
*
* @return the metricValues value
*/
public List metricValues() {
return this.metricValues;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy