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.89.1 published on Sunday, Mar 2, 2025 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.89.1 published on Sunday, Mar 2, 2025 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)
public static Output<GetPrometheusRuleGroupResult> getPrometheusRuleGroup(GetPrometheusRuleGroupArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:alertsmanagement:getPrometheusRuleGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- RuleGroup stringName 
- The name of the rule group.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- RuleGroup stringName 
- The name of the rule group.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- ruleGroup StringName 
- The name of the rule group.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ruleGroup 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.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- ruleGroup 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.
- SystemData 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"
- ClusterName 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
[]PrometheusRule 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.
- SystemData 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"
- ClusterName 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<PrometheusRule 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.
- systemData 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"
- clusterName 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
PrometheusRule 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.
- systemData 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"
- clusterName 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[PrometheusRule 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.
- systemData 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"
- clusterName 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    
- ActionGroup stringId 
- The resource id of the action group to use.
- ActionProperties Dictionary<string, string>
- The properties of an action group object.
- ActionGroup stringId 
- The resource id of the action group to use.
- ActionProperties map[string]string
- The properties of an action group object.
- actionGroup StringId 
- The resource id of the action group to use.
- actionProperties Map<String,String>
- The properties of an action group object.
- actionGroup stringId 
- The resource id of the action group to use.
- actionProperties {[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.
- actionGroup StringId 
- The resource id of the action group to use.
- actionProperties Map<String>
- The properties of an action group object.
PrometheusRuleResolveConfigurationResponse    
- AutoResolved bool
- Enable alert auto-resolution.
- TimeTo stringResolve 
- Alert auto-resolution timeout.
- AutoResolved bool
- Enable alert auto-resolution.
- TimeTo stringResolve 
- Alert auto-resolution timeout.
- autoResolved Boolean
- Enable alert auto-resolution.
- timeTo StringResolve 
- Alert auto-resolution timeout.
- autoResolved boolean
- Enable alert auto-resolution.
- timeTo stringResolve 
- Alert auto-resolution timeout.
- auto_resolved bool
- Enable alert auto-resolution.
- time_to_ strresolve 
- Alert auto-resolution timeout.
- autoResolved Boolean
- Enable alert auto-resolution.
- timeTo 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.
- ResolveConfiguration 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
[]PrometheusRule 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.
- ResolveConfiguration 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<PrometheusRule 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.
- resolveConfiguration 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
PrometheusRule 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.
- resolveConfiguration 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[PrometheusRule 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.
- resolveConfiguration 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  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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.89.1 published on Sunday, Mar 2, 2025 by Pulumi