This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
azure-native.alertsmanagement.getPrometheusRuleGroup
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
Retrieve a Prometheus rule group definition. Azure REST API version: 2023-03-01.
Using getPrometheusRuleGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPrometheusRuleGroup(args: GetPrometheusRuleGroupArgs, opts?: InvokeOptions): Promise<GetPrometheusRuleGroupResult>
function getPrometheusRuleGroupOutput(args: GetPrometheusRuleGroupOutputArgs, opts?: InvokeOptions): Output<GetPrometheusRuleGroupResult>
def get_prometheus_rule_group(resource_group_name: Optional[str] = None,
rule_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrometheusRuleGroupResult
def get_prometheus_rule_group_output(resource_group_name: Optional[pulumi.Input[str]] = None,
rule_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrometheusRuleGroupResult]
func LookupPrometheusRuleGroup(ctx *Context, args *LookupPrometheusRuleGroupArgs, opts ...InvokeOption) (*LookupPrometheusRuleGroupResult, error)
func LookupPrometheusRuleGroupOutput(ctx *Context, args *LookupPrometheusRuleGroupOutputArgs, opts ...InvokeOption) LookupPrometheusRuleGroupResultOutput
> Note: This function is named LookupPrometheusRuleGroup
in the Go SDK.
public static class GetPrometheusRuleGroup
{
public static Task<GetPrometheusRuleGroupResult> InvokeAsync(GetPrometheusRuleGroupArgs args, InvokeOptions? opts = null)
public static Output<GetPrometheusRuleGroupResult> Invoke(GetPrometheusRuleGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrometheusRuleGroupResult> getPrometheusRuleGroup(GetPrometheusRuleGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:alertsmanagement:getPrometheusRuleGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Group stringName - The name of the rule group.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Group stringName - The name of the rule group.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Group StringName - The name of the rule group.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Group stringName - The name of the rule group.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- rule_
group_ strname - The name of the rule group.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Group StringName - The name of the rule group.
getPrometheusRuleGroup Result
The following output properties are available:
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Rules
List<Pulumi.
Azure Native. Alerts Management. Outputs. Prometheus Rule Response> - Defines the rules in the Prometheus rule group.
- Scopes List<string>
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- System
Data Pulumi.Azure Native. Alerts Management. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cluster
Name string - Apply rule to data from a specific cluster.
- Description string
- Rule group description.
- Enabled bool
- Enable/disable rule group.
- Interval string
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- Dictionary<string, string>
- Resource tags.
- Id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Rules
[]Prometheus
Rule Response - Defines the rules in the Prometheus rule group.
- Scopes []string
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cluster
Name string - Apply rule to data from a specific cluster.
- Description string
- Rule group description.
- Enabled bool
- Enable/disable rule group.
- Interval string
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- map[string]string
- Resource tags.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- rules
List<Prometheus
Rule Response> - Defines the rules in the Prometheus rule group.
- scopes List<String>
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cluster
Name String - Apply rule to data from a specific cluster.
- description String
- Rule group description.
- enabled Boolean
- Enable/disable rule group.
- interval String
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- Map<String,String>
- Resource tags.
- id string
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- rules
Prometheus
Rule Response[] - Defines the rules in the Prometheus rule group.
- scopes string[]
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cluster
Name string - Apply rule to data from a specific cluster.
- description string
- Rule group description.
- enabled boolean
- Enable/disable rule group.
- interval string
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- {[key: string]: string}
- Resource tags.
- id str
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- rules
Sequence[Prometheus
Rule Response] - Defines the rules in the Prometheus rule group.
- scopes Sequence[str]
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cluster_
name str - Apply rule to data from a specific cluster.
- description str
- Rule group description.
- enabled bool
- Enable/disable rule group.
- interval str
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- Mapping[str, str]
- Resource tags.
- id String
- Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- rules List<Property Map>
- Defines the rules in the Prometheus rule group.
- scopes List<String>
- Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cluster
Name String - Apply rule to data from a specific cluster.
- description String
- Rule group description.
- enabled Boolean
- Enable/disable rule group.
- interval String
- The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes
- Map<String>
- Resource tags.
Supporting Types
PrometheusRuleGroupActionResponse
- Action
Group stringId - The resource id of the action group to use.
- Action
Properties Dictionary<string, string> - The properties of an action group object.
- Action
Group stringId - The resource id of the action group to use.
- Action
Properties map[string]string - The properties of an action group object.
- action
Group StringId - The resource id of the action group to use.
- action
Properties Map<String,String> - The properties of an action group object.
- action
Group stringId - The resource id of the action group to use.
- action
Properties {[key: string]: string} - The properties of an action group object.
- action_
group_ strid - The resource id of the action group to use.
- action_
properties Mapping[str, str] - The properties of an action group object.
- action
Group StringId - The resource id of the action group to use.
- action
Properties Map<String> - The properties of an action group object.
PrometheusRuleResolveConfigurationResponse
- Auto
Resolved bool - Enable alert auto-resolution.
- Time
To stringResolve - Alert auto-resolution timeout.
- Auto
Resolved bool - Enable alert auto-resolution.
- Time
To stringResolve - Alert auto-resolution timeout.
- auto
Resolved Boolean - Enable alert auto-resolution.
- time
To StringResolve - Alert auto-resolution timeout.
- auto
Resolved boolean - Enable alert auto-resolution.
- time
To stringResolve - Alert auto-resolution timeout.
- auto_
resolved bool - Enable alert auto-resolution.
- time_
to_ strresolve - Alert auto-resolution timeout.
- auto
Resolved Boolean - Enable alert auto-resolution.
- time
To StringResolve - Alert auto-resolution timeout.
PrometheusRuleResponse
- Expression string
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- Actions
List<Pulumi.
Azure Native. Alerts Management. Inputs. Prometheus Rule Group Action Response> - Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- Alert string
- Alert rule name.
- Annotations Dictionary<string, string>
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- Enabled bool
- Enable/disable rule.
- For string
- The amount of time alert must be active before firing.
- Labels Dictionary<string, string>
- Labels to add or overwrite before storing the result.
- Record string
- Recorded metrics name.
- Resolve
Configuration Pulumi.Azure Native. Alerts Management. Inputs. Prometheus Rule Resolve Configuration Response - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- Severity int
- The severity of the alerts fired by the rule. Must be between 0 and 4.
- Expression string
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- Actions
[]Prometheus
Rule Group Action Response - Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- Alert string
- Alert rule name.
- Annotations map[string]string
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- Enabled bool
- Enable/disable rule.
- For string
- The amount of time alert must be active before firing.
- Labels map[string]string
- Labels to add or overwrite before storing the result.
- Record string
- Recorded metrics name.
- Resolve
Configuration PrometheusRule Resolve Configuration Response - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- Severity int
- The severity of the alerts fired by the rule. Must be between 0 and 4.
- expression String
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- actions
List<Prometheus
Rule Group Action Response> - Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- alert String
- Alert rule name.
- annotations Map<String,String>
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- enabled Boolean
- Enable/disable rule.
- for_ String
- The amount of time alert must be active before firing.
- labels Map<String,String>
- Labels to add or overwrite before storing the result.
- record String
- Recorded metrics name.
- resolve
Configuration PrometheusRule Resolve Configuration Response - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- severity Integer
- The severity of the alerts fired by the rule. Must be between 0 and 4.
- expression string
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- actions
Prometheus
Rule Group Action Response[] - Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- alert string
- Alert rule name.
- annotations {[key: string]: string}
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- enabled boolean
- Enable/disable rule.
- for string
- The amount of time alert must be active before firing.
- labels {[key: string]: string}
- Labels to add or overwrite before storing the result.
- record string
- Recorded metrics name.
- resolve
Configuration PrometheusRule Resolve Configuration Response - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- severity number
- The severity of the alerts fired by the rule. Must be between 0 and 4.
- expression str
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- actions
Sequence[Prometheus
Rule Group Action Response] - Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- alert str
- Alert rule name.
- annotations Mapping[str, str]
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- enabled bool
- Enable/disable rule.
- for_ str
- The amount of time alert must be active before firing.
- labels Mapping[str, str]
- Labels to add or overwrite before storing the result.
- record str
- Recorded metrics name.
- resolve_
configuration PrometheusRule Resolve Configuration Response - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- severity int
- The severity of the alerts fired by the rule. Must be between 0 and 4.
- expression String
- The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.
- actions List<Property Map>
- Actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- alert String
- Alert rule name.
- annotations Map<String>
- The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.
- enabled Boolean
- Enable/disable rule.
- for String
- The amount of time alert must be active before firing.
- labels Map<String>
- Labels to add or overwrite before storing the result.
- record String
- Recorded metrics name.
- resolve
Configuration Property Map - Defines the configuration for resolving fired alerts. Only relevant for alerts.
- severity Number
- The severity of the alerts fired by the rule. Must be between 0 and 4.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi