Skip to content

Create Rule Groups Namespace

prometheusservice_create_rule_groups_namespace R Documentation

The CreateRuleGroupsNamespace operation creates a rule groups namespace within a workspace

Description

The create_rule_groups_namespace operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.

Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use put_rule_groups_namespace.

Usage

prometheusservice_create_rule_groups_namespace(clientToken, data, name,
  tags, workspaceId)

Arguments

clientToken

A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.

data

[required] The rules file to use in the new namespace.

Contains the base64-encoded version of the YAML rules file.

For details about the rule groups namespace structure, see RuleGroupsNamespaceData.

name

[required] The name for the new rule groups namespace.

tags

The list of tag keys and values to associate with the rule groups namespace.

workspaceId

[required] The ID of the workspace to add the rule groups namespace.

Value

A list with the following syntax:

list(
  arn = "string",
  name = "string",
  status = list(
    statusCode = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATION_FAILED"|"UPDATE_FAILED",
    statusReason = "string"
  ),
  tags = list(
    "string"
  )
)

Request syntax

svc$create_rule_groups_namespace(
  clientToken = "string",
  data = raw,
  name = "string",
  tags = list(
    "string"
  ),
  workspaceId = "string"
)