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.appservice; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty;
Class representing Diagnostic Metric.
/** * Class representing Diagnostic Metric. */
public class DiagnosticMetricSample {
Time at which metric is measured.
/** * Time at which metric is measured. */
@JsonProperty(value = "timestamp") private DateTime timestamp;
Role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis.
/** * Role Instance. Null if this counter is not per instance * This is returned and should be whichever instance name we desire to be * returned * i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) * where RDWORKERNAME is Machine name below and RoleInstance name in * parenthesis. */
@JsonProperty(value = "roleInstance") private String roleInstance;
Total value of the metric. If multiple measurements are made this will have sum of all.
/** * Total value of the metric. If multiple measurements are made this will * have sum of all. */
@JsonProperty(value = "total") private Double total;
Maximum of the metric sampled during the time period.
/** * Maximum of the metric sampled during the time period. */
@JsonProperty(value = "maximum") private Double maximum;
Minimum of the metric sampled during the time period.
/** * Minimum of the metric sampled during the time period. */
@JsonProperty(value = "minimum") private Double minimum;
Whether the values are aggregates across all workers or not.
/** * Whether the values are aggregates across all workers or not. */
@JsonProperty(value = "isAggregated") private Boolean isAggregated;
Get time at which metric is measured.
Returns:the timestamp value
/** * Get time at which metric is measured. * * @return the timestamp value */
public DateTime timestamp() { return this.timestamp; }
Set time at which metric is measured.
Params:
  • timestamp – the timestamp value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set time at which metric is measured. * * @param timestamp the timestamp value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withTimestamp(DateTime timestamp) { this.timestamp = timestamp; return this; }
Get role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis.
Returns:the roleInstance value
/** * Get role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis. * * @return the roleInstance value */
public String roleInstance() { return this.roleInstance; }
Set role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis.
Params:
  • roleInstance – the roleInstance value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis. * * @param roleInstance the roleInstance value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withRoleInstance(String roleInstance) { this.roleInstance = roleInstance; return this; }
Get total value of the metric. If multiple measurements are made this will have sum of all.
Returns:the total value
/** * Get total value of the metric. If multiple measurements are made this will have sum of all. * * @return the total value */
public Double total() { return this.total; }
Set total value of the metric. If multiple measurements are made this will have sum of all.
Params:
  • total – the total value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set total value of the metric. If multiple measurements are made this will have sum of all. * * @param total the total value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withTotal(Double total) { this.total = total; return this; }
Get maximum of the metric sampled during the time period.
Returns:the maximum value
/** * Get maximum of the metric sampled during the time period. * * @return the maximum value */
public Double maximum() { return this.maximum; }
Set maximum of the metric sampled during the time period.
Params:
  • maximum – the maximum value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set maximum of the metric sampled during the time period. * * @param maximum the maximum value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withMaximum(Double maximum) { this.maximum = maximum; return this; }
Get minimum of the metric sampled during the time period.
Returns:the minimum value
/** * Get minimum of the metric sampled during the time period. * * @return the minimum value */
public Double minimum() { return this.minimum; }
Set minimum of the metric sampled during the time period.
Params:
  • minimum – the minimum value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set minimum of the metric sampled during the time period. * * @param minimum the minimum value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withMinimum(Double minimum) { this.minimum = minimum; return this; }
Get whether the values are aggregates across all workers or not.
Returns:the isAggregated value
/** * Get whether the values are aggregates across all workers or not. * * @return the isAggregated value */
public Boolean isAggregated() { return this.isAggregated; }
Set whether the values are aggregates across all workers or not.
Params:
  • isAggregated – the isAggregated value to set
Returns:the DiagnosticMetricSample object itself.
/** * Set whether the values are aggregates across all workers or not. * * @param isAggregated the isAggregated value to set * @return the DiagnosticMetricSample object itself. */
public DiagnosticMetricSample withIsAggregated(Boolean isAggregated) { this.isAggregated = isAggregated; return this; } }