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

184 строки
13 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.monitor.models.RuleDataSource"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource"
name: "RuleDataSource"
nameWithType: "RuleDataSource"
summary: "The resource from which the rule collects its data."
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 class **RuleDataSource**</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.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.RuleDataSource()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.RuleDataSource()"
name: "RuleDataSource()"
nameWithType: "RuleDataSource.RuleDataSource()"
summary: "Creates an instance of Rule<wbr>Data<wbr>Source class."
syntax: "public RuleDataSource()"
desc: "Creates an instance of RuleDataSource class."
methods:
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "RuleDataSource.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Rule<wbr>Data<wbr>Source 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 RuleDataSource fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the RuleDataSource."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of RuleDataSource from the JsonReader."
returns:
description: "An instance of RuleDataSource 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.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.legacyResourceId()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.legacyResourceId()"
name: "legacyResourceId()"
nameWithType: "RuleDataSource.legacyResourceId()"
summary: "Get the legacy<wbr>Resource<wbr>Id property: the legacy resource identifier of the resource the rule monitors."
syntax: "public String legacyResourceId()"
desc: "Get the legacyResourceId property: the legacy resource identifier of the resource the rule monitors. \\*\\*NOTE\\*\\*: this property cannot be updated for an existing rule."
returns:
description: "the legacyResourceId value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.metricNamespace()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.metricNamespace()"
name: "metricNamespace()"
nameWithType: "RuleDataSource.metricNamespace()"
summary: "Get the metric<wbr>Namespace property: the namespace of the metric."
syntax: "public String metricNamespace()"
desc: "Get the metricNamespace property: the namespace of the metric."
returns:
description: "the metricNamespace value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.odataType()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.odataType()"
name: "odataType()"
nameWithType: "RuleDataSource.odataType()"
summary: "Get the odata<wbr>Type property: specifies the type of data source."
syntax: "public String odataType()"
desc: "Get the odataType property: specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource."
returns:
description: "the odataType value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.resourceLocation()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.resourceLocation()"
name: "resourceLocation()"
nameWithType: "RuleDataSource.resourceLocation()"
summary: "Get the resource<wbr>Location property: the location of the resource."
syntax: "public String resourceLocation()"
desc: "Get the resourceLocation property: the location of the resource."
returns:
description: "the resourceLocation value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.resourceUri()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.resourceUri()"
name: "resourceUri()"
nameWithType: "RuleDataSource.resourceUri()"
summary: "Get the resource<wbr>Uri property: the resource identifier of the resource the rule monitors."
syntax: "public String resourceUri()"
desc: "Get the resourceUri property: the resource identifier of the resource the rule monitors. \\*\\*NOTE\\*\\*: this property cannot be updated for an existing rule."
returns:
description: "the resourceUri value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "RuleDataSource.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.RuleDataSource.validate()"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.validate()"
name: "validate()"
nameWithType: "RuleDataSource.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.withLegacyResourceId(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.withLegacyResourceId(String legacyResourceId)"
name: "withLegacyResourceId(String legacyResourceId)"
nameWithType: "RuleDataSource.withLegacyResourceId(String legacyResourceId)"
summary: "Set the legacy<wbr>Resource<wbr>Id property: the legacy resource identifier of the resource the rule monitors."
parameters:
- description: "the legacyResourceId value to set."
name: "legacyResourceId"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RuleDataSource withLegacyResourceId(String legacyResourceId)"
desc: "Set the legacyResourceId property: the legacy resource identifier of the resource the rule monitors. \\*\\*NOTE\\*\\*: this property cannot be updated for an existing rule."
returns:
description: "the RuleDataSource object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.withMetricNamespace(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.withMetricNamespace(String metricNamespace)"
name: "withMetricNamespace(String metricNamespace)"
nameWithType: "RuleDataSource.withMetricNamespace(String metricNamespace)"
summary: "Set the metric<wbr>Namespace property: the namespace of the metric."
parameters:
- description: "the metricNamespace value to set."
name: "metricNamespace"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RuleDataSource withMetricNamespace(String metricNamespace)"
desc: "Set the metricNamespace property: the namespace of the metric."
returns:
description: "the RuleDataSource object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.withResourceLocation(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.withResourceLocation(String resourceLocation)"
name: "withResourceLocation(String resourceLocation)"
nameWithType: "RuleDataSource.withResourceLocation(String resourceLocation)"
summary: "Set the resource<wbr>Location property: the location of the resource."
parameters:
- description: "the resourceLocation value to set."
name: "resourceLocation"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RuleDataSource withResourceLocation(String resourceLocation)"
desc: "Set the resourceLocation property: the location of the resource."
returns:
description: "the RuleDataSource object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.monitor.models.RuleDataSource.withResourceUri(java.lang.String)"
fullName: "com.azure.resourcemanager.monitor.models.RuleDataSource.withResourceUri(String resourceUri)"
name: "withResourceUri(String resourceUri)"
nameWithType: "RuleDataSource.withResourceUri(String resourceUri)"
summary: "Set the resource<wbr>Uri property: the resource identifier of the resource the rule monitors."
parameters:
- description: "the resourceUri value to set."
name: "resourceUri"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public RuleDataSource withResourceUri(String resourceUri)"
desc: "Set the resourceUri property: the resource identifier of the resource the rule monitors. \\*\\*NOTE\\*\\*: this property cannot be updated for an existing rule."
returns:
description: "the RuleDataSource object itself."
type: "<xref href=\"com.azure.resourcemanager.monitor.models.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The resource from which the rule collects its data."
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.RuleDataSource?alt=com.azure.resourcemanager.monitor.models.RuleDataSource&text=RuleDataSource\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.monitor.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-monitor:2.44.0