azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.managem...

334 строки
25 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch"
name: "MetricAlertResourcePatch"
nameWithType: "MetricAlertResourcePatch"
summary: "The metric alert resource for patch operations."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public class **MetricAlertResourcePatch**"
constructors:
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.MetricAlertResourcePatch()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.MetricAlertResourcePatch()"
name: "MetricAlertResourcePatch()"
nameWithType: "MetricAlertResourcePatch.MetricAlertResourcePatch()"
syntax: "public MetricAlertResourcePatch()"
methods:
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.actions()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.actions()"
name: "actions()"
nameWithType: "MetricAlertResourcePatch.actions()"
summary: "Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
syntax: "public List<MetricAlertAction> actions()"
desc: "Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
returns:
description: "the actions value"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.microsoft.azure.management.monitor.MetricAlertAction?alt=com.microsoft.azure.management.monitor.MetricAlertAction&text=MetricAlertAction\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.autoMitigate()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.autoMitigate()"
name: "autoMitigate()"
nameWithType: "MetricAlertResourcePatch.autoMitigate()"
summary: "Get the flag that indicates whether the alert should be auto resolved or not."
syntax: "public Boolean autoMitigate()"
desc: "Get the flag that indicates whether the alert should be auto resolved or not."
returns:
description: "the autoMitigate value"
type: "<xref href=\"java.lang.Boolean?alt=java.lang.Boolean&text=Boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.criteria()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.criteria()"
name: "criteria()"
nameWithType: "MetricAlertResourcePatch.criteria()"
summary: "Get defines the specific alert criteria information."
syntax: "public MetricAlertCriteria criteria()"
desc: "Get defines the specific alert criteria information."
returns:
description: "the criteria value"
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertCriteria?alt=com.microsoft.azure.management.monitor.MetricAlertCriteria&text=MetricAlertCriteria\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.description()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.description()"
name: "description()"
nameWithType: "MetricAlertResourcePatch.description()"
summary: "Get the description of the metric alert that will be included in the alert email."
syntax: "public String description()"
desc: "Get the description of the metric alert that will be included in the alert email."
returns:
description: "the description value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.enabled()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.enabled()"
name: "enabled()"
nameWithType: "MetricAlertResourcePatch.enabled()"
summary: "Get the flag that indicates whether the metric alert is enabled."
syntax: "public boolean enabled()"
desc: "Get the flag that indicates whether the metric alert is enabled."
returns:
description: "the enabled value"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.evaluationFrequency()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.evaluationFrequency()"
name: "evaluationFrequency()"
nameWithType: "MetricAlertResourcePatch.evaluationFrequency()"
summary: "Get how often the metric alert is evaluated represented in ISO 8601 duration format."
syntax: "public Period evaluationFrequency()"
desc: "Get how often the metric alert is evaluated represented in ISO 8601 duration format."
returns:
description: "the evaluationFrequency value"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.lastUpdatedTime()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.lastUpdatedTime()"
name: "lastUpdatedTime()"
nameWithType: "MetricAlertResourcePatch.lastUpdatedTime()"
summary: "Get last time the rule was updated in ISO8601 format."
syntax: "public DateTime lastUpdatedTime()"
desc: "Get last time the rule was updated in ISO8601 format."
returns:
description: "the lastUpdatedTime value"
type: "<xref href=\"org.joda.time.DateTime?alt=org.joda.time.DateTime&text=DateTime\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.scopes()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.scopes()"
name: "scopes()"
nameWithType: "MetricAlertResourcePatch.scopes()"
summary: "Get the list of resource id's that this metric alert is scoped to."
syntax: "public List<String> scopes()"
desc: "Get the list of resource id's that this metric alert is scoped to."
returns:
description: "the scopes value"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.severity()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.severity()"
name: "severity()"
nameWithType: "MetricAlertResourcePatch.severity()"
summary: "Get alert severity \\{0, 1, 2, 3, 4\\}."
syntax: "public int severity()"
desc: "Get alert severity \\{0, 1, 2, 3, 4\\}."
returns:
description: "the severity value"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.tags()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.tags()"
name: "tags()"
nameWithType: "MetricAlertResourcePatch.tags()"
summary: "Get resource tags."
syntax: "public Map<String,String> tags()"
desc: "Get resource tags."
returns:
description: "the tags value"
type: "<xref href=\"java.util.Map?alt=java.util.Map&text=Map\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />,<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.targetResourceRegion()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.targetResourceRegion()"
name: "targetResourceRegion()"
nameWithType: "MetricAlertResourcePatch.targetResourceRegion()"
summary: "Get the region of the target resource(s) on which the alert is created/updated."
syntax: "public String targetResourceRegion()"
desc: "Get the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
returns:
description: "the targetResourceRegion value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.targetResourceType()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.targetResourceType()"
name: "targetResourceType()"
nameWithType: "MetricAlertResourcePatch.targetResourceType()"
summary: "Get the resource type of the target resource(s) on which the alert is created/updated."
syntax: "public String targetResourceType()"
desc: "Get the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
returns:
description: "the targetResourceType value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.windowSize()"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.windowSize()"
name: "windowSize()"
nameWithType: "MetricAlertResourcePatch.windowSize()"
summary: "Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
syntax: "public Period windowSize()"
desc: "Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
returns:
description: "the windowSize value"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withActions(java.util.List<com.microsoft.azure.management.monitor.MetricAlertAction>)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withActions(List<MetricAlertAction> actions)"
name: "withActions(List<MetricAlertAction> actions)"
nameWithType: "MetricAlertResourcePatch.withActions(List<MetricAlertAction> actions)"
summary: "Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
parameters:
- description: "the actions value to set"
name: "actions"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.microsoft.azure.management.monitor.MetricAlertAction?alt=com.microsoft.azure.management.monitor.MetricAlertAction&text=MetricAlertAction\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public MetricAlertResourcePatch withActions(List<MetricAlertAction> actions)"
desc: "Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withAutoMitigate(java.lang.Boolean)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withAutoMitigate(Boolean autoMitigate)"
name: "withAutoMitigate(Boolean autoMitigate)"
nameWithType: "MetricAlertResourcePatch.withAutoMitigate(Boolean autoMitigate)"
summary: "Set the flag that indicates whether the alert should be auto resolved or not."
parameters:
- description: "the autoMitigate value to set"
name: "autoMitigate"
type: "<xref href=\"java.lang.Boolean?alt=java.lang.Boolean&text=Boolean\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withAutoMitigate(Boolean autoMitigate)"
desc: "Set the flag that indicates whether the alert should be auto resolved or not."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withCriteria(com.microsoft.azure.management.monitor.MetricAlertCriteria)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withCriteria(MetricAlertCriteria criteria)"
name: "withCriteria(MetricAlertCriteria criteria)"
nameWithType: "MetricAlertResourcePatch.withCriteria(MetricAlertCriteria criteria)"
summary: "Set defines the specific alert criteria information."
parameters:
- description: "the criteria value to set"
name: "criteria"
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertCriteria?alt=com.microsoft.azure.management.monitor.MetricAlertCriteria&text=MetricAlertCriteria\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withCriteria(MetricAlertCriteria criteria)"
desc: "Set defines the specific alert criteria information."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withDescription(java.lang.String)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withDescription(String description)"
name: "withDescription(String description)"
nameWithType: "MetricAlertResourcePatch.withDescription(String description)"
summary: "Set the description of the metric alert that will be included in the alert email."
parameters:
- description: "the description value to set"
name: "description"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withDescription(String description)"
desc: "Set the description of the metric alert that will be included in the alert email."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withEnabled(boolean)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withEnabled(boolean enabled)"
name: "withEnabled(boolean enabled)"
nameWithType: "MetricAlertResourcePatch.withEnabled(boolean enabled)"
summary: "Set the flag that indicates whether the metric alert is enabled."
parameters:
- description: "the enabled value to set"
name: "enabled"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withEnabled(boolean enabled)"
desc: "Set the flag that indicates whether the metric alert is enabled."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withEvaluationFrequency(org.joda.time.Period)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withEvaluationFrequency(Period evaluationFrequency)"
name: "withEvaluationFrequency(Period evaluationFrequency)"
nameWithType: "MetricAlertResourcePatch.withEvaluationFrequency(Period evaluationFrequency)"
summary: "Set how often the metric alert is evaluated represented in ISO 8601 duration format."
parameters:
- description: "the evaluationFrequency value to set"
name: "evaluationFrequency"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withEvaluationFrequency(Period evaluationFrequency)"
desc: "Set how often the metric alert is evaluated represented in ISO 8601 duration format."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withScopes(java.util.List<java.lang.String>)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withScopes(List<String> scopes)"
name: "withScopes(List<String> scopes)"
nameWithType: "MetricAlertResourcePatch.withScopes(List<String> scopes)"
summary: "Set the list of resource id's that this metric alert is scoped to."
parameters:
- description: "the scopes value to set"
name: "scopes"
type: "<xref href=\"java.util.List?alt=java.util.List&text=List\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public MetricAlertResourcePatch withScopes(List<String> scopes)"
desc: "Set the list of resource id's that this metric alert is scoped to."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withSeverity(int)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withSeverity(int severity)"
name: "withSeverity(int severity)"
nameWithType: "MetricAlertResourcePatch.withSeverity(int severity)"
summary: "Set alert severity \\{0, 1, 2, 3, 4\\}."
parameters:
- description: "the severity value to set"
name: "severity"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withSeverity(int severity)"
desc: "Set alert severity \\{0, 1, 2, 3, 4\\}."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTags(java.util.Map<java.lang.String,java.lang.String>)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTags(Map<String,String> tags)"
name: "withTags(Map<String,String> tags)"
nameWithType: "MetricAlertResourcePatch.withTags(Map<String,String> tags)"
summary: "Set resource tags."
parameters:
- description: "the tags value to set"
name: "tags"
type: "<xref href=\"java.util.Map?alt=java.util.Map&text=Map\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />,<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public MetricAlertResourcePatch withTags(Map<String,String> tags)"
desc: "Set resource tags."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTargetResourceRegion(java.lang.String)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTargetResourceRegion(String targetResourceRegion)"
name: "withTargetResourceRegion(String targetResourceRegion)"
nameWithType: "MetricAlertResourcePatch.withTargetResourceRegion(String targetResourceRegion)"
summary: "Set the region of the target resource(s) on which the alert is created/updated."
parameters:
- description: "the targetResourceRegion value to set"
name: "targetResourceRegion"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withTargetResourceRegion(String targetResourceRegion)"
desc: "Set the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTargetResourceType(java.lang.String)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withTargetResourceType(String targetResourceType)"
name: "withTargetResourceType(String targetResourceType)"
nameWithType: "MetricAlertResourcePatch.withTargetResourceType(String targetResourceType)"
summary: "Set the resource type of the target resource(s) on which the alert is created/updated."
parameters:
- description: "the targetResourceType value to set"
name: "targetResourceType"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withTargetResourceType(String targetResourceType)"
desc: "Set the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withWindowSize(org.joda.time.Period)"
fullName: "com.microsoft.azure.management.monitor.MetricAlertResourcePatch.withWindowSize(Period windowSize)"
name: "withWindowSize(Period windowSize)"
nameWithType: "MetricAlertResourcePatch.withWindowSize(Period windowSize)"
summary: "Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
parameters:
- description: "the windowSize value to set"
name: "windowSize"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
syntax: "public MetricAlertResourcePatch withWindowSize(Period windowSize)"
desc: "Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
returns:
description: "the MetricAlertResourcePatch object itself."
type: "<xref href=\"com.microsoft.azure.management.monitor.MetricAlertResourcePatch?alt=com.microsoft.azure.management.monitor.MetricAlertResourcePatch&text=MetricAlertResourcePatch\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The metric alert resource for patch operations."
metadata: {}
package: "com.microsoft.azure.management.monitor"
artifact: com.microsoft.azure:azure-mgmt-monitor:1.41.4