{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-devops-guru/refs/heads/main/json-schema/amazon-devops-guru-performance-insights-metric-query-schema.json", "title": "PerformanceInsightsMetricQuery", "description": "A single query to be processed. Use these parameters to query the Performance Insights GetResourceMetrics API to retrieve the metrics for an anomaly. For more information, see GetResourceMetrics in the Amazon RDS Performance Insights API Reference. Amazon RDS Performance Insights enables you to mo", "type": "object", "properties": { "Metric": { "allOf": [ { "$ref": "#/components/schemas/PerformanceInsightsMetricName" }, { "description": "

The name of the meteric used used when querying an Performance Insights GetResourceMetrics API for anomaly metrics.

Valid values for Metric are:

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

" } ] }, "GroupBy": { "allOf": [ { "$ref": "#/components/schemas/PerformanceInsightsMetricDimensionGroup" }, { "description": "The specification for how to aggregate the data points from a Performance Insights GetResourceMetrics API query. The Performance Insights query returns all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension." } ] }, "Filter": { "allOf": [ { "$ref": "#/components/schemas/PerformanceInsightsMetricFilterMap" }, { "description": "

One or more filters to apply to a Performance Insights GetResourceMetrics API query. Restrictions:

" } ] } } }