PrometheusRuleGroupResource interface

The Prometheus rule group resource.

Extends

Properties

clusterName

Apply rule to data from a specific cluster.

description

Rule group description.

enabled

Enable/disable rule group.

interval

The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes

rules

Defines the rules in the Prometheus rule group.

scopes

Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.

Inherited Properties

id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

The geo-location where the resource lives

name

The name of the resource

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

Resource tags.

type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Property Details

clusterName

Apply rule to data from a specific cluster.

clusterName?: string

Property Value

string

description

Rule group description.

description?: string

Property Value

string

enabled

Enable/disable rule group.

enabled?: boolean

Property Value

boolean

interval

The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes

interval?: string

Property Value

string

rules

Defines the rules in the Prometheus rule group.

rules: PrometheusRule[]

Property Value

scopes

Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future.

scopes: string[]

Property Value

string[]

Inherited Property Details

id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

Property Value

string

Inherited From TrackedResource.id

location

The geo-location where the resource lives

location: string

Property Value

string

Inherited From TrackedResource.location

name

The name of the resource

name?: string

Property Value

string

Inherited From TrackedResource.name

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

systemData?: SystemData

Property Value

Inherited From TrackedResource.systemData

tags

Resource tags.

tags?: Record<string, string>

Property Value

Record<string, string>

Inherited From TrackedResource.tags

type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

type?: string

Property Value

string

Inherited From TrackedResource.type