PrometheusRuleGroupResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. alertsmanagement. fluent. models. PrometheusRuleGroupResourceInner
- com.
- com.
- com.
public final class PrometheusRuleGroupResourceInner
extends Resource
The Prometheus rule group resource.
Constructor Summary
| Constructor | Description |
|---|---|
| PrometheusRuleGroupResourceInner() |
Creates an instance of Prometheus |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
clusterName()
Get the cluster |
| String |
description()
Get the description property: the description of the Prometheus rule group that will be included in the alert email. |
| Boolean |
enabled()
Get the enabled property: the flag that indicates whether the Prometheus rule group is enabled. |
|
static
Prometheus |
fromJson(JsonReader jsonReader)
Reads an instance of Prometheus |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
interval()
Get the interval property: the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. |
| String |
name()
Get the name property: The name of the resource. |
|
List<Prometheus |
rules()
Get the rules property: defines the rules in the Prometheus rule group. |
| List<String> |
scopes()
Get the scopes property: the list of resource id's that this rule group is scoped to. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Prometheus |
withClusterName(String clusterName)
Set the cluster |
|
Prometheus |
withDescription(String description)
Set the description property: the description of the Prometheus rule group that will be included in the alert email. |
|
Prometheus |
withEnabled(Boolean enabled)
Set the enabled property: the flag that indicates whether the Prometheus rule group is enabled. |
|
Prometheus |
withInterval(String interval)
Set the interval property: the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. |
|
Prometheus |
withLocation(String location) |
|
Prometheus |
withRules(List<PrometheusRule> rules)
Set the rules property: defines the rules in the Prometheus rule group. |
|
Prometheus |
withScopes(List<String> scopes)
Set the scopes property: the list of resource id's that this rule group is scoped to. |
|
Prometheus |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
PrometheusRuleGroupResourceInner
public PrometheusRuleGroupResourceInner()
Creates an instance of PrometheusRuleGroupResourceInner class.
Method Details
clusterName
public String clusterName()
Get the clusterName property: the cluster name of the rule group evaluation.
Returns:
description
public String description()
Get the description property: the description of the Prometheus rule group that will be included in the alert email.
Returns:
enabled
public Boolean enabled()
Get the enabled property: the flag that indicates whether the Prometheus rule group is enabled.
Returns:
fromJson
public static PrometheusRuleGroupResourceInner fromJson(JsonReader jsonReader)
Reads an instance of PrometheusRuleGroupResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PrometheusRuleGroupResourceInner.id()Returns:
interval
public String interval()
Get the interval property: the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PrometheusRuleGroupResourceInner.name()Returns:
rules
public List<PrometheusRule> rules()
Get the rules property: defines the rules in the Prometheus rule group.
Returns:
scopes
public List<String> scopes()
Get the scopes property: the list of resource id's that this rule group is scoped to.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PrometheusRuleGroupResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PrometheusRuleGroupResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withClusterName
public PrometheusRuleGroupResourceInner withClusterName(String clusterName)
Set the clusterName property: the cluster name of the rule group evaluation.
Parameters:
Returns:
withDescription
public PrometheusRuleGroupResourceInner withDescription(String description)
Set the description property: the description of the Prometheus rule group that will be included in the alert email.
Parameters:
Returns:
withEnabled
public PrometheusRuleGroupResourceInner withEnabled(Boolean enabled)
Set the enabled property: the flag that indicates whether the Prometheus rule group is enabled.
Parameters:
Returns:
withInterval
public PrometheusRuleGroupResourceInner withInterval(String interval)
Set the interval property: the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes.
Parameters:
Returns:
withLocation
public PrometheusRuleGroupResourceInner withLocation(String location)
Overrides:
PrometheusRuleGroupResourceInner.withLocation(String location)Parameters:
withRules
public PrometheusRuleGroupResourceInner withRules(List<PrometheusRule> rules)
Set the rules property: defines the rules in the Prometheus rule group.
Parameters:
Returns:
withScopes
public PrometheusRuleGroupResourceInner withScopes(List<String> scopes)
Set the scopes property: the list of resource id's that this rule group is scoped to.
Parameters:
Returns:
withTags
public PrometheusRuleGroupResourceInner withTags(Map<String,String> tags)
Overrides:
PrometheusRuleGroupResourceInner.withTags(Map<String,String> tags)Parameters: