azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.m...

126 строки
9.3 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.monitor.models.MetricAvailability"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability"
name: "MetricAvailability"
nameWithType: "MetricAvailability"
summary: "Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **MetricAvailability**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.monitor.models.MetricAvailability?alt=com.azure.resourcemanager.monitor.models.MetricAvailability&text=MetricAvailability\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.MetricAvailability()"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.MetricAvailability()"
name: "MetricAvailability()"
nameWithType: "MetricAvailability.MetricAvailability()"
summary: "Creates an instance of Metric<wbr>Availability class."
syntax: "public MetricAvailability()"
desc: "Creates an instance of MetricAvailability class."
methods:
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "MetricAvailability.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Metric<wbr>Availability from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static MetricAvailability fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the MetricAvailability."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of MetricAvailability from the JsonReader."
returns:
description: "An instance of MetricAvailability if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.MetricAvailability?alt=com.azure.resourcemanager.monitor.models.MetricAvailability&text=MetricAvailability\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.retention()"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.retention()"
name: "retention()"
nameWithType: "MetricAvailability.retention()"
summary: "Get the retention property: the retention period for the metric at the specified timegrain."
syntax: "public Duration retention()"
desc: "Get the retention property: the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc."
returns:
description: "the retention value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.timeGrain()"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.timeGrain()"
name: "timeGrain()"
nameWithType: "MetricAvailability.timeGrain()"
summary: "Get the time<wbr>Grain property: the time grain specifies the aggregation interval for the metric."
syntax: "public Duration timeGrain()"
desc: "Get the timeGrain property: the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc."
returns:
description: "the timeGrain value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "MetricAvailability.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.validate()"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.validate()"
name: "validate()"
nameWithType: "MetricAvailability.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.withRetention(java.time.Duration)"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.withRetention(Duration retention)"
name: "withRetention(Duration retention)"
nameWithType: "MetricAvailability.withRetention(Duration retention)"
summary: "Set the retention property: the retention period for the metric at the specified timegrain."
parameters:
- description: "the retention value to set."
name: "retention"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
syntax: "public MetricAvailability withRetention(Duration retention)"
desc: "Set the retention property: the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc."
returns:
description: "the MetricAvailability object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.MetricAvailability?alt=com.azure.resourcemanager.monitor.models.MetricAvailability&text=MetricAvailability\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.MetricAvailability.withTimeGrain(java.time.Duration)"
fullName: "com.azure.resourcemanager.monitor.models.MetricAvailability.withTimeGrain(Duration timeGrain)"
name: "withTimeGrain(Duration timeGrain)"
nameWithType: "MetricAvailability.withTimeGrain(Duration timeGrain)"
summary: "Set the time<wbr>Grain property: the time grain specifies the aggregation interval for the metric."
parameters:
- description: "the timeGrain value to set."
name: "timeGrain"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html\">Duration</a>"
syntax: "public MetricAvailability withTimeGrain(Duration timeGrain)"
desc: "Set the timeGrain property: the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc."
returns:
description: "the MetricAvailability object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.MetricAvailability?alt=com.azure.resourcemanager.monitor.models.MetricAvailability&text=MetricAvailability\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.monitor.models.MetricAvailability?alt=com.azure.resourcemanager.monitor.models.MetricAvailability&text=MetricAvailability\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.monitor.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-monitor:2.44.0