{
  "version": "2.0",
  "service": "<p>AWS Performance Insights enables you to monitor and explore different dimensions of database load based on data captured from a running RDS instance. The guide provides detailed information about Performance Insights data types, parameters and errors. For more information about Performance Insights capabilities see <a href=\"http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html\">Using Amazon RDS Performance Insights </a> in the <i>Amazon RDS User Guide</i>.</p> <p> The AWS Performance Insights API provides visibility into the performance of your RDS instance, when Performance Insights is enabled for supported engine types. While Amazon CloudWatch provides the authoritative source for AWS service vended monitoring metrics, AWS Performance Insights offers a domain-specific view of database load measured as Average Active Sessions and provided to API consumers as a 2-dimensional time-series dataset. The time dimension of the data provides DB load data for each time point in the queried time range, and each time point decomposes overall load in relation to the requested dimensions, such as SQL, Wait-event, User or Host, measured at that time point.</p>",
  "operations": {
    "DescribeDimensionKeys": "<p>For a specific time period, retrieve the top <code>N</code> dimension keys for a metric.</p>",
    "GetResourceMetrics": "<p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide specific dimension groups and dimensions, and provide aggregation and filtering criteria for each group.</p>"
  },
  "shapes": {
    "DataPoint": {
      "base": "<p>A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.</p>",
      "refs": {
        "DataPointsList$member": null
      }
    },
    "DataPointsList": {
      "base": null,
      "refs": {
        "MetricKeyDataPoints$DataPoints": "<p>An array of timestamp-value pairs, representing measurements over a period of time.</p>"
      }
    },
    "DescribeDimensionKeysRequest": {
      "base": null,
      "refs": {
      }
    },
    "DescribeDimensionKeysResponse": {
      "base": null,
      "refs": {
      }
    },
    "DimensionGroup": {
      "base": "<p>A logical grouping of Performance Insights metrics for a related subject area. For example, the <code>db.sql</code> dimension group consists of the following dimensions: <code>db.sql.id</code>, <code>db.sql.db_id</code>, <code>db.sql.statement</code>, and <code>db.sql.tokenized_id</code>.</p>",
      "refs": {
        "DescribeDimensionKeysRequest$GroupBy": "<p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return 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.</p>",
        "DescribeDimensionKeysRequest$PartitionBy": "<p>For each dimension specified in <code>GroupBy</code>, specify a secondary dimension to further subdivide the partition keys in the response.</p>",
        "MetricQuery$GroupBy": "<p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return 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.</p>"
      }
    },
    "DimensionKeyDescription": {
      "base": "<p>An array of descriptions and aggregated values for each dimension within a dimension group.</p>",
      "refs": {
        "DimensionKeyDescriptionList$member": null
      }
    },
    "DimensionKeyDescriptionList": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysResponse$Keys": "<p>The dimension keys that were requested.</p>"
      }
    },
    "DimensionMap": {
      "base": null,
      "refs": {
        "DimensionKeyDescription$Dimensions": "<p>A map of name-value pairs for the dimensions in the group.</p>",
        "ResponsePartitionKey$Dimensions": "<p>A dimension map that contains the dimension(s) for this partition.</p>",
        "ResponseResourceMetricKey$Dimensions": "<p>The valid dimensions for the metric.</p>"
      }
    },
    "Double": {
      "base": null,
      "refs": {
        "DataPoint$Value": "<p>The actual value associated with a particular <code>Timestamp</code>.</p>",
        "DimensionKeyDescription$Total": "<p>The aggregated metric value for the dimension(s), over the requested time range.</p>",
        "MetricValuesList$member": null
      }
    },
    "GetResourceMetricsRequest": {
      "base": null,
      "refs": {
      }
    },
    "GetResourceMetricsResponse": {
      "base": null,
      "refs": {
      }
    },
    "ISOTimestamp": {
      "base": null,
      "refs": {
        "DataPoint$Timestamp": "<p>The time, in epoch format, associated with a particular <code>Value</code>.</p>",
        "DescribeDimensionKeysRequest$StartTime": "<p>The date and time specifying the beginning of the requested time series data. You can't specify a <code>StartTime</code> that's earlier than 7 days ago. The value specified is <i>inclusive</i> - data points equal to or greater than <code>StartTime</code> will be returned.</p> <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>",
        "DescribeDimensionKeysRequest$EndTime": "<p>The date and time specifying the end of the requested time series data. The value specified is <i>exclusive</i> - data points less than (but not equal to) <code>EndTime</code> will be returned.</p> <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>",
        "DescribeDimensionKeysResponse$AlignedStartTime": "<p>The start time for the returned dimension keys, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>). <code>AlignedStartTime</code> will be less than or equal to the value of the user-specified <code>StartTime</code>.</p>",
        "DescribeDimensionKeysResponse$AlignedEndTime": "<p>The end time for the returned dimension keys, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>). <code>AlignedEndTime</code> will be greater than or equal to the value of the user-specified <code>Endtime</code>.</p>",
        "GetResourceMetricsRequest$StartTime": "<p>The date and time specifying the beginning of the requested time series data. You can't specify a <code>StartTime</code> that's earlier than 7 days ago. The value specified is <i>inclusive</i> - data points equal to or greater than <code>StartTime</code> will be returned.</p> <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>",
        "GetResourceMetricsRequest$EndTime": "<p>The date and time specifiying the end of the requested time series data. The value specified is <i>exclusive</i> - data points less than (but not equal to) <code>EndTime</code> will be returned.</p> <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>",
        "GetResourceMetricsResponse$AlignedStartTime": "<p>The start time for the returned metrics, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>). <code>AlignedStartTime</code> will be less than or equal to the value of the user-specified <code>StartTime</code>.</p>",
        "GetResourceMetricsResponse$AlignedEndTime": "<p>The end time for the returned metrics, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>). <code>AlignedEndTime</code> will be greater than or equal to the value of the user-specified <code>Endtime</code>.</p>"
      }
    },
    "Integer": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysRequest$PeriodInSeconds": "<p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:</p> <ul> <li> <p> <code>1</code> (one second)</p> </li> <li> <p> <code>60</code> (one minute)</p> </li> <li> <p> <code>300</code> (five minutes)</p> </li> <li> <p> <code>3600</code> (one hour)</p> </li> <li> <p> <code>86400</code> (twenty-four hours)</p> </li> </ul> <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response.</p>",
        "GetResourceMetricsRequest$PeriodInSeconds": "<p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:</p> <ul> <li> <p> <code>1</code> (one second)</p> </li> <li> <p> <code>60</code> (one minute)</p> </li> <li> <p> <code>300</code> (five minutes)</p> </li> <li> <p> <code>3600</code> (one hour)</p> </li> <li> <p> <code>86400</code> (twenty-four hours)</p> </li> </ul> <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response.</p>"
      }
    },
    "InternalServiceError": {
      "base": "<p>The request failed due to an unknown error.</p>",
      "refs": {
      }
    },
    "InvalidArgumentException": {
      "base": "<p>One of the arguments provided is invalid for this request.</p>",
      "refs": {
      }
    },
    "Limit": {
      "base": null,
      "refs": {
        "DimensionGroup$Limit": "<p>The maximum number of items to fetch for this dimension group.</p>"
      }
    },
    "MaxResults": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysRequest$MaxResults": "<p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can be retrieved. </p>",
        "GetResourceMetricsRequest$MaxResults": "<p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a pagination token is included in the response so that the remaining results can be retrieved. </p>"
      }
    },
    "MetricKeyDataPoints": {
      "base": "<p>A time-ordered series of data points, correpsonding to a dimension of a Performance Insights metric.</p>",
      "refs": {
        "MetricKeyDataPointsList$member": null
      }
    },
    "MetricKeyDataPointsList": {
      "base": null,
      "refs": {
        "GetResourceMetricsResponse$MetricList": "<p>An array of metric results,, where each array element contains all of the data points for a particular dimension.</p>"
      }
    },
    "MetricQuery": {
      "base": "<p>A single query to be processed. You must provide the metric to query. If no other parameters are specified, Performance Insights returns all of the data points for that metric. You can optionally request that the data points be aggregated by dimension group ( <code>GroupBy</code>), and return only those data points that match your criteria (<code>Filter</code>).</p>",
      "refs": {
        "MetricQueryList$member": null
      }
    },
    "MetricQueryFilterMap": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysRequest$Filter": "<p>One or more filters to apply in the request. Restrictions:</p> <ul> <li> <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or <code>Partition</code> parameters.</p> </li> <li> <p>A single filter for any other dimension in this dimension group.</p> </li> </ul>",
        "MetricQuery$Filter": "<p>One or more filters to apply in the request. Restrictions:</p> <ul> <li> <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> parameter.</p> </li> <li> <p>A single filter for any other dimension in this dimension group.</p> </li> </ul>"
      }
    },
    "MetricQueryList": {
      "base": null,
      "refs": {
        "GetResourceMetricsRequest$MetricQueries": "<p>An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.</p>"
      }
    },
    "MetricValuesList": {
      "base": null,
      "refs": {
        "DimensionKeyDescription$Partitions": "<p>If <code>PartitionBy</code> was specified, <code>PartitionKeys</code> contains the dimensions that were.</p>"
      }
    },
    "NotAuthorizedException": {
      "base": "<p>The user is not authorized to perform this request.</p>",
      "refs": {
      }
    },
    "ResponsePartitionKey": {
      "base": "<p>If <code>PartitionBy</code> was specified in a <code>DescribeDimensionKeys</code> request, the dimensions are returned in an array. Each element in the array specifies one dimension. </p>",
      "refs": {
        "ResponsePartitionKeyList$member": null
      }
    },
    "ResponsePartitionKeyList": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysResponse$PartitionKeys": "<p>If <code>PartitionBy</code> was present in the request, <code>PartitionKeys</code> contains the breakdown of dimension keys by the specified partitions.</p>"
      }
    },
    "ResponseResourceMetricKey": {
      "base": "<p>An object describing a Performance Insights metric and one or more dimensions for that metric.</p>",
      "refs": {
        "MetricKeyDataPoints$Key": "<p>The dimension(s) to which the data points apply.</p>"
      }
    },
    "ServiceType": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysRequest$ServiceType": "<p>The AWS service for which Performance Insights will return metrics. The only valid value for <i>ServiceType</i> is: <code>RDS</code> </p>",
        "GetResourceMetricsRequest$ServiceType": "<p>The AWS service for which Performance Insights will return metrics. The only valid value for <i>ServiceType</i> is: <code>RDS</code> </p>"
      }
    },
    "String": {
      "base": null,
      "refs": {
        "DescribeDimensionKeysRequest$Identifier": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p> <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value - for example: <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code> </p>",
        "DescribeDimensionKeysRequest$Metric": "<p>The name of a Performance Insights metric to be measured.</p> <p>Valid values for <code>Metric</code> are:</p> <ul> <li> <p> <code>db.load.avg</code> - a scaled representation of the number of active sessions for the database engine.</p> </li> <li> <p> <code>db.sampledload.avg</code> - the raw number of active sessions for the database engine.</p> </li> </ul>",
        "DescribeDimensionKeysRequest$NextToken": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>",
        "DescribeDimensionKeysResponse$NextToken": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>",
        "DimensionGroup$Group": "<p>The name of the dimension group. Valid values are:</p> <ul> <li> <p> <code>db.user</code> </p> </li> <li> <p> <code>db.host</code> </p> </li> <li> <p> <code>db.sql</code> </p> </li> <li> <p> <code>db.sql_tokenized</code> </p> </li> <li> <p> <code>db.wait_event</code> </p> </li> <li> <p> <code>db.wait_event_type</code> </p> </li> </ul>",
        "DimensionMap$key": null,
        "DimensionMap$value": null,
        "GetResourceMetricsRequest$Identifier": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p> <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value - for example: <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code> </p>",
        "GetResourceMetricsRequest$NextToken": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>",
        "GetResourceMetricsResponse$Identifier": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.</p> <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value - for example: <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code> </p>",
        "GetResourceMetricsResponse$NextToken": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by <code>MaxRecords</code>.</p>",
        "InternalServiceError$Message": null,
        "InvalidArgumentException$Message": null,
        "MetricQuery$Metric": "<p>The name of a Performance Insights metric to be measured.</p> <p>Valid values for <code>Metric</code> are:</p> <ul> <li> <p> <code>db.load.avg</code> - a scaled representation of the number of active sessions for the database engine.</p> </li> <li> <p> <code>db.sampledload.avg</code> - the raw number of active sessions for the database engine.</p> </li> </ul>",
        "MetricQueryFilterMap$key": null,
        "MetricQueryFilterMap$value": null,
        "NotAuthorizedException$Message": null,
        "ResponseResourceMetricKey$Metric": "<p>The name of a Performance Insights metric to be measured.</p> <p>Valid values for <code>Metric</code> are:</p> <ul> <li> <p> <code>db.load.avg</code> - a scaled representation of the number of active sessions for the database engine.</p> </li> <li> <p> <code>db.sampledload.avg</code> - the raw number of active sessions for the database engine.</p> </li> </ul>",
        "StringList$member": null
      }
    },
    "StringList": {
      "base": null,
      "refs": {
        "DimensionGroup$Dimensions": "<p>A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response.</p> <p>Valid values for elements in the <code>Dimensions</code> array are:</p> <ul> <li> <p>db.user.id</p> </li> <li> <p>db.user.name</p> </li> <li> <p>db.host.id</p> </li> <li> <p>db.host.name</p> </li> <li> <p>db.sql.id</p> </li> <li> <p>db.sql.db_id</p> </li> <li> <p>db.sql.statement</p> </li> <li> <p>db.sql.tokenized_id</p> </li> <li> <p>db.sql_tokenized.id</p> </li> <li> <p>db.sql_tokenized.db_id</p> </li> <li> <p>db.sql_tokenized.statement</p> </li> <li> <p>db.wait_event.name</p> </li> <li> <p>db.wait_event.type</p> </li> <li> <p>db.wait_event_type.name</p> </li> </ul>"
      }
    }
  }
}
