Skip to content

Create Query Logging Configuration

prometheusservice_create_query_logging_configuration R Documentation

Creates a query logging configuration for the specified workspace

Description

Creates a query logging configuration for the specified workspace. This operation enables logging of queries that exceed the specified QSP threshold.

Usage

prometheusservice_create_query_logging_configuration(workspaceId,
  destinations, clientToken)

Arguments

workspaceId

[required] The ID of the workspace for which to create the query logging configuration.

destinations

[required] The destinations where query logs will be sent. Only CloudWatch Logs destination is supported. The list must contain exactly one element.

clientToken

(Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.

Value

A list with the following syntax:

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

Request syntax

svc$create_query_logging_configuration(
  workspaceId = "string",
  destinations = list(
    list(
      cloudWatchLogs = list(
        logGroupArn = "string"
      ),
      filters = list(
        qspThreshold = 123
      )
    )
  ),
  clientToken = "string"
)