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 java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Class representing Diagnostic Metric information.
/** * Class representing Diagnostic Metric information. */
public class DiagnosticMetricSet {
Name of the metric.
/** * Name of the metric. */
@JsonProperty(value = "name") private String name;
Metric's unit.
/** * Metric's unit. */
@JsonProperty(value = "unit") private String unit;
Start time of the period.
/** * Start time of the period. */
@JsonProperty(value = "startTime") private DateTime startTime;
End time of the period.
/** * End time of the period. */
@JsonProperty(value = "endTime") private DateTime endTime;
Presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
/** * Presented time grain. Supported grains at the moment are PT1M, PT1H, * P1D. */
@JsonProperty(value = "timeGrain") private String timeGrain;
Collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
/** * Collection of metric values for the selected period based on the * {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}. */
@JsonProperty(value = "values") private List<DiagnosticMetricSample> values;
Get name of the metric.
Returns:the name value
/** * Get name of the metric. * * @return the name value */
public String name() { return this.name; }
Set name of the metric.
Params:
  • name – the name value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set name of the metric. * * @param name the name value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withName(String name) { this.name = name; return this; }
Get metric's unit.
Returns:the unit value
/** * Get metric's unit. * * @return the unit value */
public String unit() { return this.unit; }
Set metric's unit.
Params:
  • unit – the unit value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set metric's unit. * * @param unit the unit value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withUnit(String unit) { this.unit = unit; return this; }
Get start time of the period.
Returns:the startTime value
/** * Get start time of the period. * * @return the startTime value */
public DateTime startTime() { return this.startTime; }
Set start time of the period.
Params:
  • startTime – the startTime value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set start time of the period. * * @param startTime the startTime value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withStartTime(DateTime startTime) { this.startTime = startTime; return this; }
Get end time of the period.
Returns:the endTime value
/** * Get end time of the period. * * @return the endTime value */
public DateTime endTime() { return this.endTime; }
Set end time of the period.
Params:
  • endTime – the endTime value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set end time of the period. * * @param endTime the endTime value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withEndTime(DateTime endTime) { this.endTime = endTime; return this; }
Get presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
Returns:the timeGrain value
/** * Get presented time grain. Supported grains at the moment are PT1M, PT1H, P1D. * * @return the timeGrain value */
public String timeGrain() { return this.timeGrain; }
Set presented time grain. Supported grains at the moment are PT1M, PT1H, P1D.
Params:
  • timeGrain – the timeGrain value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set presented time grain. Supported grains at the moment are PT1M, PT1H, P1D. * * @param timeGrain the timeGrain value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withTimeGrain(String timeGrain) { this.timeGrain = timeGrain; return this; }
Get collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
Returns:the values value
/** * Get collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}. * * @return the values value */
public List<DiagnosticMetricSample> values() { return this.values; }
Set collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}.
Params:
  • values – the values value to set
Returns:the DiagnosticMetricSet object itself.
/** * Set collection of metric values for the selected period based on the {Microsoft.Web.Hosting.Administration.DiagnosticMetricSet.TimeGrain}. * * @param values the values value to set * @return the DiagnosticMetricSet object itself. */
public DiagnosticMetricSet withValues(List<DiagnosticMetricSample> values) { this.values = values; return this; } }