Skip to content

Update Query Logging Configuration

prometheusservice_update_query_logging_configuration R Documentation

Updates the query logging configuration for the specified workspace

Description

Updates the query logging configuration for the specified workspace.

Usage

prometheusservice_update_query_logging_configuration(workspaceId,
  destinations, clientToken)

Arguments

workspaceId

[required] The ID of the workspace for which to update 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$update_query_logging_configuration(
  workspaceId = "string",
  destinations = list(
    list(
      cloudWatchLogs = list(
        logGroupArn = "string"
      ),
      filters = list(
        qspThreshold = 123
      )
    )
  ),
  clientToken = "string"
)