1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.pi#DataPoint": {
33            "type": "structure",
34            "members": {
35                "Timestamp": {
36                    "target": "com.amazonaws.pi#ISOTimestamp",
37                    "traits": {
38                        "smithy.api#documentation": "<p>The time, in epoch format, associated with a particular <code>Value</code>.</p>",
39                        "smithy.api#required": {}
40                    }
41                },
42                "Value": {
43                    "target": "com.amazonaws.pi#Double",
44                    "traits": {
45                        "smithy.api#documentation": "<p>The actual value associated with a particular <code>Timestamp</code>.</p>",
46                        "smithy.api#required": {}
47                    }
48                }
49            },
50            "traits": {
51                "smithy.api#documentation": "<p>A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.</p>"
52            }
53        },
54        "com.amazonaws.pi#DataPointsList": {
55            "type": "list",
56            "member": {
57                "target": "com.amazonaws.pi#DataPoint"
58            }
59        },
60        "com.amazonaws.pi#DescribeDimensionKeys": {
61            "type": "operation",
62            "input": {
63                "target": "com.amazonaws.pi#DescribeDimensionKeysRequest"
64            },
65            "output": {
66                "target": "com.amazonaws.pi#DescribeDimensionKeysResponse"
67            },
68            "errors": [
69                {
70                    "target": "com.amazonaws.pi#InternalServiceError"
71                },
72                {
73                    "target": "com.amazonaws.pi#InvalidArgumentException"
74                },
75                {
76                    "target": "com.amazonaws.pi#NotAuthorizedException"
77                }
78            ],
79            "traits": {
80                "smithy.api#documentation": "<p>For a specific time period, retrieve the top <code>N</code> dimension keys for a\n      metric.</p>\n         <note>\n            <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n        only the first 500 bytes are returned.</p>\n         </note>"
81            }
82        },
83        "com.amazonaws.pi#DescribeDimensionKeysRequest": {
84            "type": "structure",
85            "members": {
86                "ServiceType": {
87                    "target": "com.amazonaws.pi#ServiceType",
88                    "traits": {
89                        "smithy.api#documentation": "<p>The AWS service for which Performance Insights will return metrics. The only valid value for <i>ServiceType</i> is\n        <code>RDS</code>.</p>",
90                        "smithy.api#required": {}
91                    }
92                },
93                "Identifier": {
94                    "target": "com.amazonaws.pi#String",
95                    "traits": {
96                        "smithy.api#documentation": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n      this data source.</p>\n         <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value. For example,\n      specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>\n         </p>",
97                        "smithy.api#required": {}
98                    }
99                },
100                "StartTime": {
101                    "target": "com.amazonaws.pi#ISOTimestamp",
102                    "traits": {
103                        "smithy.api#documentation": "<p>The date and time specifying the beginning of the requested time series data. You must specify a\n        <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>, which means\n      that data points equal to or greater than <code>StartTime</code> are returned.</p>\n         <p>The value for <code>StartTime</code> must be earlier than the value for\n        <code>EndTime</code>.</p>",
104                        "smithy.api#required": {}
105                    }
106                },
107                "EndTime": {
108                    "target": "com.amazonaws.pi#ISOTimestamp",
109                    "traits": {
110                        "smithy.api#documentation": "<p>The date and time specifying the end of the requested time series data. The value specified is\n        <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are\n      returned.</p>\n         <p>The value for <code>EndTime</code> must be later than the value for\n        <code>StartTime</code>.</p>",
111                        "smithy.api#required": {}
112                    }
113                },
114                "Metric": {
115                    "target": "com.amazonaws.pi#String",
116                    "traits": {
117                        "smithy.api#documentation": "<p>The name of a Performance Insights metric to be measured.</p>\n         <p>Valid values for <code>Metric</code> are:</p>\n     \n         <ul>\n            <li>\n               <p>\n                  <code>db.load.avg</code> - a scaled representation of the number of active sessions\n          for the database engine.</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sampledload.avg</code> - the raw number of active sessions for the\n          database engine.</p>\n            </li>\n         </ul>\n         <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> \n          are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> \n          showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. \n          For most use cases, you can query <code>db.load.avg</code> only. </p>",
118                        "smithy.api#required": {}
119                    }
120                },
121                "PeriodInSeconds": {
122                    "target": "com.amazonaws.pi#Integer",
123                    "traits": {
124                        "smithy.api#documentation": "<p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as\n      one second, or as long as one day (86400 seconds).  Valid values are:</p>\n    \n        <ul>\n            <li>\n               <p>\n                  <code>1</code> (one second)</p>\n            </li>\n            <li>\n               <p>\n                  <code>60</code> (one minute)</p>\n            </li>\n            <li>\n               <p>\n                  <code>300</code> (five minutes)</p>\n            </li>\n            <li>\n               <p>\n                  <code>3600</code> (one hour)</p>\n            </li>\n            <li>\n               <p>\n                  <code>86400</code> (twenty-four hours)</p>\n            </li>\n         </ul>\n    \n         <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a goal of returning\n      roughly 100-200 data points in the response.</p>"
125                    }
126                },
127                "GroupBy": {
128                    "target": "com.amazonaws.pi#DimensionGroup",
129                    "traits": {
130                        "smithy.api#documentation": "<p>A specification for how to aggregate the data points from a query result. You must specify a valid dimension group.\n      Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group.\n      You can also request that Performance Insights return a limited number of values for a dimension.</p>",
131                        "smithy.api#required": {}
132                    }
133                },
134                "PartitionBy": {
135                    "target": "com.amazonaws.pi#DimensionGroup",
136                    "traits": {
137                        "smithy.api#documentation": "<p>For each dimension specified in \n      <code>GroupBy</code>, specify a secondary dimension to further subdivide the partition keys in the response.</p>"
138                    }
139                },
140                "Filter": {
141                    "target": "com.amazonaws.pi#MetricQueryFilterMap",
142                    "traits": {
143                        "smithy.api#documentation": "<p>One or more filters to apply in the request.  Restrictions:</p>\n         <ul>\n            <li>\n               <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or\n          <code>Partition</code> parameters.</p>\n            </li>\n            <li>\n               <p>A single filter for any other dimension in this dimension group.</p>\n            </li>\n         </ul>"
144                    }
145                },
146                "MaxResults": {
147                    "target": "com.amazonaws.pi#MaxResults",
148                    "traits": {
149                        "smithy.api#documentation": "<p>The maximum number of items to return in the response. \n      If more items exist than the specified <code>MaxRecords</code> value, a pagination \n      token is included in the response so that the remaining \n      results can be retrieved.\n    </p>"
150                    }
151                },
152                "NextToken": {
153                    "target": "com.amazonaws.pi#String",
154                    "traits": {
155                        "smithy.api#documentation": "<p>An optional pagination token provided by a previous request. If\n      this parameter is specified, the response includes only records beyond the token, up to the\n      value specified by <code>MaxRecords</code>.</p>"
156                    }
157                }
158            }
159        },
160        "com.amazonaws.pi#DescribeDimensionKeysResponse": {
161            "type": "structure",
162            "members": {
163                "AlignedStartTime": {
164                    "target": "com.amazonaws.pi#ISOTimestamp",
165                    "traits": {
166                        "smithy.api#documentation": "<p>The start time for the returned dimension keys, after alignment to a granular boundary (as\n      specified by <code>PeriodInSeconds</code>). <code>AlignedStartTime</code> will be less than or\n      equal to the value of the user-specified <code>StartTime</code>.</p>"
167                    }
168                },
169                "AlignedEndTime": {
170                    "target": "com.amazonaws.pi#ISOTimestamp",
171                    "traits": {
172                        "smithy.api#documentation": "<p>The end time for the returned dimension keys, after alignment to a granular boundary (as\n      specified by <code>PeriodInSeconds</code>). <code>AlignedEndTime</code> will be greater than\n      or equal to the value of the user-specified <code>Endtime</code>.</p>"
173                    }
174                },
175                "PartitionKeys": {
176                    "target": "com.amazonaws.pi#ResponsePartitionKeyList",
177                    "traits": {
178                        "smithy.api#documentation": "<p>If <code>PartitionBy</code> was present in the request, <code>PartitionKeys</code> contains the breakdown of dimension keys by the specified partitions.</p>"
179                    }
180                },
181                "Keys": {
182                    "target": "com.amazonaws.pi#DimensionKeyDescriptionList",
183                    "traits": {
184                        "smithy.api#documentation": "<p>The dimension keys that were requested.</p>"
185                    }
186                },
187                "NextToken": {
188                    "target": "com.amazonaws.pi#String",
189                    "traits": {
190                        "smithy.api#documentation": "<p>An optional pagination token provided by a previous request. If\n      this parameter is specified, the response includes only records beyond the token, up to the\n      value specified by <code>MaxRecords</code>.</p>"
191                    }
192                }
193            }
194        },
195        "com.amazonaws.pi#DimensionGroup": {
196            "type": "structure",
197            "members": {
198                "Group": {
199                    "target": "com.amazonaws.pi#String",
200                    "traits": {
201                        "smithy.api#documentation": "<p>The name of the dimension group.  Valid values are:</p>\n    \n         <ul>\n            <li>\n               <p>\n                  <code>db</code> - The name of the database to which the client is connected (only Aurora PostgreSQL, RDS\n        PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.application</code> - The name of the application that is connected to the database (only Aurora\n        PostgreSQL and RDS PostgreSQL)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.host</code> - The host name of the connected client (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.session_type</code> - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql</code> - The SQL that is currently executing (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql_tokenized</code> - The SQL digest (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.wait_event</code> - The event for which the database backend is waiting  (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.wait_event_type</code> - The type of event for which the database backend is waiting (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.user</code> - The user logged in to the database (all engines)</p>\n            </li>\n         </ul>",
202                        "smithy.api#required": {}
203                    }
204                },
205                "Dimensions": {
206                    "target": "com.amazonaws.pi#StringList",
207                    "traits": {
208                        "smithy.api#documentation": "<p>A list of specific dimensions from a dimension group. If this parameter is not present,\n      then it signifies that all of the dimensions in the group were requested, or are present in\n      the response.</p>\n         <p>Valid values for elements in the <code>Dimensions</code> array are:</p>\n    \n         <ul>\n            <li>\n               <p>\n                  <code>db.application.name</code> - The name of the application that is connected to the database (only\n      Aurora PostgreSQL and RDS PostgreSQL)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.host.id</code> - The host ID of the connected client (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.host.name</code> - The host name of the connected client (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.name</code> - The name of the database to which the client is connected (only Aurora\n      PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.session_type.name</code> - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql.id</code> - The SQL ID generated by Performance Insights (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql.db_id</code> - The SQL ID generated by the database (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql.statement</code> - The SQL text that is being executed (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql.tokenized_id</code>\n               </p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql_tokenized.id</code> - The SQL digest ID generated by Performance Insights (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql_tokenized.db_id</code> - SQL digest ID generated by the database (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sql_tokenized.statement</code> - The SQL digest text (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.user.id</code> - The ID of the user logged in to the database (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.user.name</code> - The name of the user logged in to the database (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.wait_event.name</code> - The event for which the backend is waiting (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.wait_event.type</code> - The type of event for which the backend is waiting (all engines)</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.wait_event_type.name</code> - The name of the event type for which the backend is waiting (all\n      engines)</p>\n            </li>\n         </ul>"
209                    }
210                },
211                "Limit": {
212                    "target": "com.amazonaws.pi#Limit",
213                    "traits": {
214                        "smithy.api#documentation": "<p>The maximum number of items to fetch for this dimension group.</p>"
215                    }
216                }
217            },
218            "traits": {
219                "smithy.api#documentation": "<p>A logical grouping of Performance Insights metrics for a related subject area. For example, the\n        <code>db.sql</code> dimension group consists of the following dimensions:\n        <code>db.sql.id</code>, <code>db.sql.db_id</code>, <code>db.sql.statement</code>, and\n        <code>db.sql.tokenized_id</code>.</p>\n         <note>\n            <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n        only the first 500 bytes are returned.</p>\n         </note>"
220            }
221        },
222        "com.amazonaws.pi#DimensionKeyDescription": {
223            "type": "structure",
224            "members": {
225                "Dimensions": {
226                    "target": "com.amazonaws.pi#DimensionMap",
227                    "traits": {
228                        "smithy.api#documentation": "<p>A map of name-value pairs for the dimensions in the group.</p>"
229                    }
230                },
231                "Total": {
232                    "target": "com.amazonaws.pi#Double",
233                    "traits": {
234                        "smithy.api#documentation": "<p>The aggregated metric value for the dimension(s), over the requested time range.</p>"
235                    }
236                },
237                "Partitions": {
238                    "target": "com.amazonaws.pi#MetricValuesList",
239                    "traits": {
240                        "smithy.api#documentation": "<p>If <code>PartitionBy</code> was specified, <code>PartitionKeys</code> contains the dimensions that were.</p>"
241                    }
242                }
243            },
244            "traits": {
245                "smithy.api#documentation": "<p>An array of descriptions and aggregated values for\n      each dimension within a dimension group.</p>"
246            }
247        },
248        "com.amazonaws.pi#DimensionKeyDescriptionList": {
249            "type": "list",
250            "member": {
251                "target": "com.amazonaws.pi#DimensionKeyDescription"
252            }
253        },
254        "com.amazonaws.pi#DimensionMap": {
255            "type": "map",
256            "key": {
257                "target": "com.amazonaws.pi#String"
258            },
259            "value": {
260                "target": "com.amazonaws.pi#String"
261            }
262        },
263        "com.amazonaws.pi#Double": {
264            "type": "double",
265            "traits": {
266                "smithy.api#box": {}
267            }
268        },
269        "com.amazonaws.pi#GetResourceMetrics": {
270            "type": "operation",
271            "input": {
272                "target": "com.amazonaws.pi#GetResourceMetricsRequest"
273            },
274            "output": {
275                "target": "com.amazonaws.pi#GetResourceMetricsResponse"
276            },
277            "errors": [
278                {
279                    "target": "com.amazonaws.pi#InternalServiceError"
280                },
281                {
282                    "target": "com.amazonaws.pi#InvalidArgumentException"
283                },
284                {
285                    "target": "com.amazonaws.pi#NotAuthorizedException"
286                }
287            ],
288            "traits": {
289                "smithy.api#documentation": "<p>Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide\n      specific dimension groups and dimensions, and provide aggregation and filtering criteria for\n      each group.</p>\n         <note>\n            <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n               only the first 500 bytes are returned.</p>\n         </note>"
290            }
291        },
292        "com.amazonaws.pi#GetResourceMetricsRequest": {
293            "type": "structure",
294            "members": {
295                "ServiceType": {
296                    "target": "com.amazonaws.pi#ServiceType",
297                    "traits": {
298                        "smithy.api#documentation": "<p>The AWS service for which Performance Insights returns metrics. The only valid value for <i>ServiceType</i> is\n        <code>RDS</code>.</p>",
299                        "smithy.api#required": {}
300                    }
301                },
302                "Identifier": {
303                    "target": "com.amazonaws.pi#String",
304                    "traits": {
305                        "smithy.api#documentation": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n      this data source.</p>\n         <p>To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify\n        <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.</p>",
306                        "smithy.api#required": {}
307                    }
308                },
309                "MetricQueries": {
310                    "target": "com.amazonaws.pi#MetricQueryList",
311                    "traits": {
312                        "smithy.api#documentation": "<p>An array of one or more queries to perform. Each query must specify a Performance Insights metric, and\n      can optionally specify aggregation and filtering criteria.</p>",
313                        "smithy.api#required": {}
314                    }
315                },
316                "StartTime": {
317                    "target": "com.amazonaws.pi#ISOTimestamp",
318                    "traits": {
319                        "smithy.api#documentation": "<p>The date and time specifying the beginning of the requested time series data. You can't\n      specify a <code>StartTime</code> that's earlier than 7 days ago. The value specified is\n        <i>inclusive</i> - data points equal to or greater than <code>StartTime</code>\n      will be returned.</p>\n         <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>",
320                        "smithy.api#required": {}
321                    }
322                },
323                "EndTime": {
324                    "target": "com.amazonaws.pi#ISOTimestamp",
325                    "traits": {
326                        "smithy.api#documentation": "<p>The date and time specifying the end of the requested time series data.  The value specified is \n      <i>exclusive</i> - data points less than (but not equal to) <code>EndTime</code> will be returned.</p>\n         <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>",
327                        "smithy.api#required": {}
328                    }
329                },
330                "PeriodInSeconds": {
331                    "target": "com.amazonaws.pi#Integer",
332                    "traits": {
333                        "smithy.api#documentation": "<p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as\n      one second, or as long as one day (86400 seconds).  Valid values are:</p>\n    \n        <ul>\n            <li>\n               <p>\n                  <code>1</code> (one second)</p>\n            </li>\n            <li>\n               <p>\n                  <code>60</code> (one minute)</p>\n            </li>\n            <li>\n               <p>\n                  <code>300</code> (five minutes)</p>\n            </li>\n            <li>\n               <p>\n                  <code>3600</code> (one hour)</p>\n            </li>\n            <li>\n               <p>\n                  <code>86400</code> (twenty-four hours)</p>\n            </li>\n         </ul>\n    \n         <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for\n      you, with a goal of returning roughly 100-200 data points in the response.</p>"
334                    }
335                },
336                "MaxResults": {
337                    "target": "com.amazonaws.pi#MaxResults",
338                    "traits": {
339                        "smithy.api#documentation": "<p>The maximum number of items to return in the response. \n      If more items exist than the specified <code>MaxRecords</code> value, a pagination \n      token is included in the response so that the remaining \n      results can be retrieved.\n    </p>"
340                    }
341                },
342                "NextToken": {
343                    "target": "com.amazonaws.pi#String",
344                    "traits": {
345                        "smithy.api#documentation": "<p>An optional pagination token provided by a previous request. If\n      this parameter is specified, the response includes only records beyond the token, up to the\n      value specified by <code>MaxRecords</code>.</p>"
346                    }
347                }
348            }
349        },
350        "com.amazonaws.pi#GetResourceMetricsResponse": {
351            "type": "structure",
352            "members": {
353                "AlignedStartTime": {
354                    "target": "com.amazonaws.pi#ISOTimestamp",
355                    "traits": {
356                        "smithy.api#documentation": "<p>The start time for the returned metrics, after alignment to a granular boundary (as\n      specified by <code>PeriodInSeconds</code>). <code>AlignedStartTime</code> will be less than or\n      equal to the value of the user-specified <code>StartTime</code>.</p>"
357                    }
358                },
359                "AlignedEndTime": {
360                    "target": "com.amazonaws.pi#ISOTimestamp",
361                    "traits": {
362                        "smithy.api#documentation": "<p>The end time for the returned metrics, after alignment to a granular boundary (as\n      specified by <code>PeriodInSeconds</code>). <code>AlignedEndTime</code> will be greater than\n      or equal to the value of the user-specified <code>Endtime</code>.</p>"
363                    }
364                },
365                "Identifier": {
366                    "target": "com.amazonaws.pi#String",
367                    "traits": {
368                        "smithy.api#documentation": "<p>An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n      this data source.</p>\n         <p>To use a DB instance as a data source, you specify its \n      <code>DbiResourceId</code> value - for example:  \n      <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>\n         </p>"
369                    }
370                },
371                "MetricList": {
372                    "target": "com.amazonaws.pi#MetricKeyDataPointsList",
373                    "traits": {
374                        "smithy.api#documentation": "<p>An array of metric results,, where each array element contains all of the data points for a particular dimension.</p>"
375                    }
376                },
377                "NextToken": {
378                    "target": "com.amazonaws.pi#String",
379                    "traits": {
380                        "smithy.api#documentation": "<p>An optional pagination token provided by a previous request. If\n      this parameter is specified, the response includes only records beyond the token, up to the\n      value specified by <code>MaxRecords</code>.</p>"
381                    }
382                }
383            }
384        },
385        "com.amazonaws.pi#ISOTimestamp": {
386            "type": "timestamp"
387        },
388        "com.amazonaws.pi#Integer": {
389            "type": "integer",
390            "traits": {
391                "smithy.api#box": {}
392            }
393        },
394        "com.amazonaws.pi#InternalServiceError": {
395            "type": "structure",
396            "members": {
397                "Message": {
398                    "target": "com.amazonaws.pi#String"
399                }
400            },
401            "traits": {
402                "smithy.api#documentation": "<p>The request failed due to an unknown error.</p>",
403                "smithy.api#error": "server"
404            }
405        },
406        "com.amazonaws.pi#InvalidArgumentException": {
407            "type": "structure",
408            "members": {
409                "Message": {
410                    "target": "com.amazonaws.pi#String"
411                }
412            },
413            "traits": {
414                "smithy.api#documentation": "<p>One of the arguments provided is invalid for this request.</p>",
415                "smithy.api#error": "client"
416            }
417        },
418        "com.amazonaws.pi#Limit": {
419            "type": "integer",
420            "traits": {
421                "smithy.api#box": {},
422                "smithy.api#range": {
423                    "min": 1,
424                    "max": 10
425                }
426            }
427        },
428        "com.amazonaws.pi#MaxResults": {
429            "type": "integer",
430            "traits": {
431                "smithy.api#box": {},
432                "smithy.api#range": {
433                    "min": 0,
434                    "max": 20
435                }
436            }
437        },
438        "com.amazonaws.pi#MetricKeyDataPoints": {
439            "type": "structure",
440            "members": {
441                "Key": {
442                    "target": "com.amazonaws.pi#ResponseResourceMetricKey",
443                    "traits": {
444                        "smithy.api#documentation": "<p>The dimension(s) to which the data points apply.</p>"
445                    }
446                },
447                "DataPoints": {
448                    "target": "com.amazonaws.pi#DataPointsList",
449                    "traits": {
450                        "smithy.api#documentation": "<p>An array of timestamp-value pairs, representing measurements over a period of time.</p>"
451                    }
452                }
453            },
454            "traits": {
455                "smithy.api#documentation": "<p>A time-ordered series of data points, corresponding to a dimension of a Performance Insights\n      metric.</p>"
456            }
457        },
458        "com.amazonaws.pi#MetricKeyDataPointsList": {
459            "type": "list",
460            "member": {
461                "target": "com.amazonaws.pi#MetricKeyDataPoints"
462            }
463        },
464        "com.amazonaws.pi#MetricQuery": {
465            "type": "structure",
466            "members": {
467                "Metric": {
468                    "target": "com.amazonaws.pi#String",
469                    "traits": {
470                        "smithy.api#documentation": "<p>The name of a Performance Insights metric to be measured.</p>\n         <p>Valid values for <code>Metric</code> are:</p>\n    \n         <ul>\n            <li>\n               <p>\n                  <code>db.load.avg</code> - a scaled representation of the number of active sessions\n          for the database engine.</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sampledload.avg</code> - the raw number of active sessions for the\n          database engine.</p>\n            </li>\n         </ul>\n         <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> \n          are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> \n          showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. \n          For most use cases, you can query <code>db.load.avg</code> only. </p>",
471                        "smithy.api#required": {}
472                    }
473                },
474                "GroupBy": {
475                    "target": "com.amazonaws.pi#DimensionGroup",
476                    "traits": {
477                        "smithy.api#documentation": "<p>A specification for how to aggregate the data points from a query result. You must\n      specify a valid dimension group.  Performance Insights will return all of the dimensions within that group,\n      unless you provide the names of specific dimensions within that group. You can also request\n      that Performance Insights return a limited number of values for a dimension.</p>"
478                    }
479                },
480                "Filter": {
481                    "target": "com.amazonaws.pi#MetricQueryFilterMap",
482                    "traits": {
483                        "smithy.api#documentation": "<p>One or more filters to apply in the request.  Restrictions:</p>\n         <ul>\n            <li>\n               <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> parameter.</p>\n            </li>\n            <li>\n               <p>A single filter for any other dimension in this dimension group.</p>\n            </li>\n         </ul>"
484                    }
485                }
486            },
487            "traits": {
488                "smithy.api#documentation": "<p>A single query to be processed. You must provide the metric to query. If no other\n      parameters are specified, Performance Insights returns all of the data points for that metric. You can\n      optionally request that the data points be aggregated by dimension group (\n      <code>GroupBy</code>), and return only those data points that match your criteria (<code>Filter</code>).</p>"
489            }
490        },
491        "com.amazonaws.pi#MetricQueryFilterMap": {
492            "type": "map",
493            "key": {
494                "target": "com.amazonaws.pi#String"
495            },
496            "value": {
497                "target": "com.amazonaws.pi#String"
498            }
499        },
500        "com.amazonaws.pi#MetricQueryList": {
501            "type": "list",
502            "member": {
503                "target": "com.amazonaws.pi#MetricQuery"
504            },
505            "traits": {
506                "smithy.api#length": {
507                    "min": 1,
508                    "max": 15
509                }
510            }
511        },
512        "com.amazonaws.pi#MetricValuesList": {
513            "type": "list",
514            "member": {
515                "target": "com.amazonaws.pi#Double"
516            }
517        },
518        "com.amazonaws.pi#NotAuthorizedException": {
519            "type": "structure",
520            "members": {
521                "Message": {
522                    "target": "com.amazonaws.pi#String"
523                }
524            },
525            "traits": {
526                "smithy.api#documentation": "<p>The user is not authorized to perform this request.</p>",
527                "smithy.api#error": "client"
528            }
529        },
530        "com.amazonaws.pi#PerformanceInsightsv20180227": {
531            "type": "service",
532            "version": "2018-02-27",
533            "operations": [
534                {
535                    "target": "com.amazonaws.pi#DescribeDimensionKeys"
536                },
537                {
538                    "target": "com.amazonaws.pi#GetResourceMetrics"
539                }
540            ],
541            "traits": {
542                "aws.api#service": {
543                    "sdkId": "PI",
544                    "arnNamespace": "pi",
545                    "cloudFormationName": "PI",
546                    "cloudTrailEventSource": "pi.amazonaws.com",
547                    "endpointPrefix": "pi"
548                },
549                "aws.auth#sigv4": {
550                    "name": "pi"
551                },
552                "aws.protocols#awsJson1_1": {},
553                "smithy.api#documentation": "<fullname>Amazon RDS Performance Insights</fullname>\n    \n         <p>Amazon RDS Performance Insights enables you to monitor and explore different dimensions of\n      database load based on data captured from a running DB instance. The guide provides detailed\n      information about Performance Insights data types, parameters and errors.</p>\n    \n         <p>When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon\n      CloudWatch provides the authoritative source for AWS service-vended monitoring metrics.  Performance Insights offers a domain-specific\n      view of DB load. </p>\n         <p>DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional\n      time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time\n      point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include\n      SQL, Wait event, User, and Host.</p>\n\n         <ul>\n            <li>\n               <p>To learn more about Performance Insights and Amazon Aurora DB instances, go to the <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html\">Amazon Aurora User Guide</a>.</p>\n            </li>\n            <li>\n               <p>To learn more about Performance Insights and Amazon RDS DB instances, go to the <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html\">Amazon RDS User Guide</a>.</p>\n            </li>\n         </ul>",
554                "smithy.api#title": "AWS Performance Insights",
555                "smithy.api#xmlNamespace": {
556                    "uri": "http://pi.amazonaws.com/doc/2018-02-27/"
557                }
558            }
559        },
560        "com.amazonaws.pi#ResponsePartitionKey": {
561            "type": "structure",
562            "members": {
563                "Dimensions": {
564                    "target": "com.amazonaws.pi#DimensionMap",
565                    "traits": {
566                        "smithy.api#documentation": "<p>A dimension map that contains the dimension(s) for this partition.</p>",
567                        "smithy.api#required": {}
568                    }
569                }
570            },
571            "traits": {
572                "smithy.api#documentation": "<p>If <code>PartitionBy</code> was specified in a <code>DescribeDimensionKeys</code>\n      request, the dimensions are returned in an array. Each element in the array specifies one\n      dimension. </p>"
573            }
574        },
575        "com.amazonaws.pi#ResponsePartitionKeyList": {
576            "type": "list",
577            "member": {
578                "target": "com.amazonaws.pi#ResponsePartitionKey"
579            }
580        },
581        "com.amazonaws.pi#ResponseResourceMetricKey": {
582            "type": "structure",
583            "members": {
584                "Metric": {
585                    "target": "com.amazonaws.pi#String",
586                    "traits": {
587                        "smithy.api#documentation": "<p>The name of a Performance Insights metric to be measured.</p>\n         <p>Valid values for <code>Metric</code> are:</p>\n    \n         <ul>\n            <li>\n               <p>\n                  <code>db.load.avg</code> - a scaled representation of the number of active sessions\n          for the database engine.</p>\n            </li>\n            <li>\n               <p>\n                  <code>db.sampledload.avg</code> - the raw number of active sessions for the\n          database engine.</p>\n            </li>\n         </ul>\n         <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> \n          are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> \n          showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than <code>db.load.avg</code>. \n          For most use cases, you can query <code>db.load.avg</code> only. </p>",
588                        "smithy.api#required": {}
589                    }
590                },
591                "Dimensions": {
592                    "target": "com.amazonaws.pi#DimensionMap",
593                    "traits": {
594                        "smithy.api#documentation": "<p>The valid dimensions for the metric.</p>"
595                    }
596                }
597            },
598            "traits": {
599                "smithy.api#documentation": "<p>An object describing a Performance Insights metric and one or more dimensions for that metric.</p>"
600            }
601        },
602        "com.amazonaws.pi#ServiceType": {
603            "type": "string",
604            "traits": {
605                "smithy.api#enum": [
606                    {
607                        "value": "RDS",
608                        "name": "RDS"
609                    }
610                ]
611            }
612        },
613        "com.amazonaws.pi#String": {
614            "type": "string"
615        },
616        "com.amazonaws.pi#StringList": {
617            "type": "list",
618            "member": {
619                "target": "com.amazonaws.pi#String"
620            },
621            "traits": {
622                "smithy.api#length": {
623                    "min": 1,
624                    "max": 10
625                }
626            }
627        }
628    }
629}
630