Amazon Managed Service for Prometheus Managed Prometheus Logging API
The Managed Prometheus Logging API from Amazon Managed Service for Prometheus — 1 operation(s) for managed prometheus logging.
The Managed Prometheus Logging API from Amazon Managed Service for Prometheus — 1 operation(s) for managed prometheus logging.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-managed-prometheus:amazon-managed-prometheus-logging-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Amazon Prometheus Service Logging API
version: '2020-08-01'
description: Generated from AWS's published Smithy model for Amazon Prometheus Service. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://aps.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
tags:
- name: Logging
paths:
/workspaces/{workspaceId}/logging/query:
post:
operationId: CreateQueryLoggingConfiguration
summary: Create Query Logging Configuration
description: Creates a query logging configuration for the specified workspace. This operation enables logging of queries that exceed the specified QSP threshold.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateQueryLoggingConfigurationResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateQueryLoggingConfigurationRequest'
tags:
- Logging
get:
operationId: DescribeQueryLoggingConfiguration
summary: Describe Query Logging Configuration
description: Retrieves the details of the query logging configuration for the specified workspace.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeQueryLoggingConfigurationResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DescribeQueryLoggingConfigurationRequest'
tags:
- Logging
put:
operationId: UpdateQueryLoggingConfiguration
summary: Update Query Logging Configuration
description: Updates the query logging configuration for the specified workspace.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateQueryLoggingConfigurationResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateQueryLoggingConfigurationRequest'
tags:
- Logging
delete:
operationId: DeleteQueryLoggingConfiguration
summary: Delete Query Logging Configuration
description: Deletes the query logging configuration for the specified workspace.
responses:
'200':
description: Success
content:
application/json:
schema:
type: string
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteQueryLoggingConfigurationRequest'
tags:
- Logging
components:
schemas:
ValidationException:
type: object
properties:
message:
type: string
description: Description of the error.
reason:
type: string
description: Reason the request failed validation.
fieldList:
type: array
items:
$ref: '#/components/schemas/ValidationExceptionField'
description: The field that caused the error, if applicable.
required:
- message
- reason
CreateQueryLoggingConfigurationResponse:
type: object
properties:
status:
$ref: '#/components/schemas/QueryLoggingConfigurationStatus'
required:
- status
InternalServerException:
type: object
properties:
message:
type: string
description: Description of the error.
retryAfterSeconds:
type: integer
description: Advice to clients on when the call can be safely retried.
required:
- message
ValidationExceptionField:
type: object
properties:
name:
type: string
description: The name of the field that caused an exception.
message:
type: string
description: A message describing why the field caused an exception.
required:
- name
- message
CreateQueryLoggingConfigurationRequest:
type: object
properties:
workspaceId:
type: string
description: The ID of the workspace for which to create the query logging configuration.
destinations:
type: array
items:
$ref: '#/components/schemas/LoggingDestination'
description: The destinations where query logs will be sent. Only CloudWatch Logs destination is supported. The list must contain exactly one element.
clientToken:
type: string
description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
required:
- workspaceId
- destinations
ConflictException:
type: object
properties:
message:
type: string
description: Description of the error.
resourceId:
type: string
description: Identifier of the resource affected.
resourceType:
type: string
description: Type of the resource affected.
required:
- message
- resourceId
- resourceType
QueryLoggingConfigurationStatus:
type: object
properties:
statusCode:
type: string
description: The current status of the query logging configuration.
statusReason:
type: string
description: If there is a failure, the reason for the failure.
required:
- statusCode
CloudWatchLogDestination:
type: object
properties:
logGroupArn:
type: string
description: The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this operation.
required:
- logGroupArn
AccessDeniedException:
type: object
properties:
message:
type: string
description: Description of the error.
required:
- message
DescribeQueryLoggingConfigurationRequest:
type: object
properties:
workspaceId:
type: string
description: The ID of the workspace for which to retrieve the query logging configuration.
required:
- workspaceId
UpdateQueryLoggingConfigurationResponse:
type: object
properties:
status:
$ref: '#/components/schemas/QueryLoggingConfigurationStatus'
required:
- status
ResourceNotFoundException:
type: object
properties:
message:
type: string
description: Description of the error.
resourceId:
type: string
description: Identifier of the resource affected.
resourceType:
type: string
description: Type of the resource affected.
required:
- message
- resourceId
- resourceType
QueryLoggingConfigurationMetadata:
type: object
properties:
status:
$ref: '#/components/schemas/QueryLoggingConfigurationStatus'
workspace:
type: string
description: The ID of the workspace associated with this query logging configuration.
destinations:
type: array
items:
$ref: '#/components/schemas/LoggingDestination'
description: The configured destinations for the query logging configuration.
createdAt:
type: string
description: The date and time when the query logging configuration was created.
modifiedAt:
type: string
description: The date and time when the query logging configuration was last modified.
required:
- status
- workspace
- destinations
- createdAt
- modifiedAt
DescribeQueryLoggingConfigurationResponse:
type: object
properties:
queryLoggingConfiguration:
$ref: '#/components/schemas/QueryLoggingConfigurationMetadata'
required:
- queryLoggingConfiguration
DeleteQueryLoggingConfigurationRequest:
type: object
properties:
workspaceId:
type: string
description: The ID of the workspace from which to delete the query logging configuration.
clientToken:
type: string
description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
required:
- workspaceId
LoggingFilter:
type: object
properties:
qspThreshold:
type: integer
description: The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.
required:
- qspThreshold
LoggingDestination:
type: object
properties:
cloudWatchLogs:
$ref: '#/components/schemas/CloudWatchLogDestination'
filters:
$ref: '#/components/schemas/LoggingFilter'
required:
- cloudWatchLogs
- filters
UpdateQueryLoggingConfigurationRequest:
type: object
properties:
workspaceId:
type: string
description: The ID of the workspace for which to update the query logging configuration.
destinations:
type: array
items:
$ref: '#/components/schemas/LoggingDestination'
description: The destinations where query logs will be sent. Only CloudWatch Logs destination is supported. The list must contain exactly one element.
clientToken:
type: string
description: (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.
required:
- workspaceId
- destinations
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: aps
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/amp/service/2020-08-01/amp-2020-08-01.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)