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.
/** * 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.
/** * Percentile Metric data. */
public class PercentileMetricInner {
The start time for the metric (ISO-8601 format).
/** * 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).
/** * 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.
/** * 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'.
/** * 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.
/** * 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.
/** * The percentile metric values for the specified time window and timestep. */
@JsonProperty(value = "metricValues", access = JsonProperty.Access.WRITE_ONLY) private List<PercentileMetricValue> metricValues;
Get the start time for the metric (ISO-8601 format).
Returns:the startTime value
/** * 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).
Returns:the endTime value
/** * 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.
Returns:the timeGrain value
/** * 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'.
Returns:the unit value
/** * 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'.
Params:
  • unit – the unit value to set
Returns:the PercentileMetricInner object itself.
/** * 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.
Returns:the name value
/** * 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.
Returns:the metricValues value
/** * Get the percentile metric values for the specified time window and timestep. * * @return the metricValues value */
public List<PercentileMetricValue> metricValues() { return this.metricValues; } }