pi.d.ts 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class PI extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: PI.Types.ClientConfiguration)
  13. config: Config & PI.Types.ClientConfiguration;
  14. /**
  15. * Creates a new performance analysis report for a specific time period for the DB instance.
  16. */
  17. createPerformanceAnalysisReport(params: PI.Types.CreatePerformanceAnalysisReportRequest, callback?: (err: AWSError, data: PI.Types.CreatePerformanceAnalysisReportResponse) => void): Request<PI.Types.CreatePerformanceAnalysisReportResponse, AWSError>;
  18. /**
  19. * Creates a new performance analysis report for a specific time period for the DB instance.
  20. */
  21. createPerformanceAnalysisReport(callback?: (err: AWSError, data: PI.Types.CreatePerformanceAnalysisReportResponse) => void): Request<PI.Types.CreatePerformanceAnalysisReportResponse, AWSError>;
  22. /**
  23. * Deletes a performance analysis report.
  24. */
  25. deletePerformanceAnalysisReport(params: PI.Types.DeletePerformanceAnalysisReportRequest, callback?: (err: AWSError, data: PI.Types.DeletePerformanceAnalysisReportResponse) => void): Request<PI.Types.DeletePerformanceAnalysisReportResponse, AWSError>;
  26. /**
  27. * Deletes a performance analysis report.
  28. */
  29. deletePerformanceAnalysisReport(callback?: (err: AWSError, data: PI.Types.DeletePerformanceAnalysisReportResponse) => void): Request<PI.Types.DeletePerformanceAnalysisReportResponse, AWSError>;
  30. /**
  31. * For a specific time period, retrieve the top N dimension keys for a metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.
  32. */
  33. describeDimensionKeys(params: PI.Types.DescribeDimensionKeysRequest, callback?: (err: AWSError, data: PI.Types.DescribeDimensionKeysResponse) => void): Request<PI.Types.DescribeDimensionKeysResponse, AWSError>;
  34. /**
  35. * For a specific time period, retrieve the top N dimension keys for a metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.
  36. */
  37. describeDimensionKeys(callback?: (err: AWSError, data: PI.Types.DescribeDimensionKeysResponse) => void): Request<PI.Types.DescribeDimensionKeysResponse, AWSError>;
  38. /**
  39. * Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text.
  40. */
  41. getDimensionKeyDetails(params: PI.Types.GetDimensionKeyDetailsRequest, callback?: (err: AWSError, data: PI.Types.GetDimensionKeyDetailsResponse) => void): Request<PI.Types.GetDimensionKeyDetailsResponse, AWSError>;
  42. /**
  43. * Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text.
  44. */
  45. getDimensionKeyDetails(callback?: (err: AWSError, data: PI.Types.GetDimensionKeyDetailsResponse) => void): Request<PI.Types.GetDimensionKeyDetailsResponse, AWSError>;
  46. /**
  47. * Retrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields.
  48. */
  49. getPerformanceAnalysisReport(params: PI.Types.GetPerformanceAnalysisReportRequest, callback?: (err: AWSError, data: PI.Types.GetPerformanceAnalysisReportResponse) => void): Request<PI.Types.GetPerformanceAnalysisReportResponse, AWSError>;
  50. /**
  51. * Retrieves the report including the report ID, status, time details, and the insights with recommendations. The report status can be RUNNING, SUCCEEDED, or FAILED. The insights include the description and recommendation fields.
  52. */
  53. getPerformanceAnalysisReport(callback?: (err: AWSError, data: PI.Types.GetPerformanceAnalysisReportResponse) => void): Request<PI.Types.GetPerformanceAnalysisReportResponse, AWSError>;
  54. /**
  55. * Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
  56. */
  57. getResourceMetadata(params: PI.Types.GetResourceMetadataRequest, callback?: (err: AWSError, data: PI.Types.GetResourceMetadataResponse) => void): Request<PI.Types.GetResourceMetadataResponse, AWSError>;
  58. /**
  59. * Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
  60. */
  61. getResourceMetadata(callback?: (err: AWSError, data: PI.Types.GetResourceMetadataResponse) => void): Request<PI.Types.GetResourceMetadataResponse, AWSError>;
  62. /**
  63. * Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide specific dimension groups and dimensions, and provide filtering criteria for each group. You must specify an aggregate function for each metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.
  64. */
  65. getResourceMetrics(params: PI.Types.GetResourceMetricsRequest, callback?: (err: AWSError, data: PI.Types.GetResourceMetricsResponse) => void): Request<PI.Types.GetResourceMetricsResponse, AWSError>;
  66. /**
  67. * Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide specific dimension groups and dimensions, and provide filtering criteria for each group. You must specify an aggregate function for each metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.
  68. */
  69. getResourceMetrics(callback?: (err: AWSError, data: PI.Types.GetResourceMetricsResponse) => void): Request<PI.Types.GetResourceMetricsResponse, AWSError>;
  70. /**
  71. * Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.
  72. */
  73. listAvailableResourceDimensions(params: PI.Types.ListAvailableResourceDimensionsRequest, callback?: (err: AWSError, data: PI.Types.ListAvailableResourceDimensionsResponse) => void): Request<PI.Types.ListAvailableResourceDimensionsResponse, AWSError>;
  74. /**
  75. * Retrieve the dimensions that can be queried for each specified metric type on a specified DB instance.
  76. */
  77. listAvailableResourceDimensions(callback?: (err: AWSError, data: PI.Types.ListAvailableResourceDimensionsResponse) => void): Request<PI.Types.ListAvailableResourceDimensionsResponse, AWSError>;
  78. /**
  79. * Retrieve metrics of the specified types that can be queried for a specified DB instance.
  80. */
  81. listAvailableResourceMetrics(params: PI.Types.ListAvailableResourceMetricsRequest, callback?: (err: AWSError, data: PI.Types.ListAvailableResourceMetricsResponse) => void): Request<PI.Types.ListAvailableResourceMetricsResponse, AWSError>;
  82. /**
  83. * Retrieve metrics of the specified types that can be queried for a specified DB instance.
  84. */
  85. listAvailableResourceMetrics(callback?: (err: AWSError, data: PI.Types.ListAvailableResourceMetricsResponse) => void): Request<PI.Types.ListAvailableResourceMetricsResponse, AWSError>;
  86. /**
  87. * Lists all the analysis reports created for the DB instance. The reports are sorted based on the start time of each report.
  88. */
  89. listPerformanceAnalysisReports(params: PI.Types.ListPerformanceAnalysisReportsRequest, callback?: (err: AWSError, data: PI.Types.ListPerformanceAnalysisReportsResponse) => void): Request<PI.Types.ListPerformanceAnalysisReportsResponse, AWSError>;
  90. /**
  91. * Lists all the analysis reports created for the DB instance. The reports are sorted based on the start time of each report.
  92. */
  93. listPerformanceAnalysisReports(callback?: (err: AWSError, data: PI.Types.ListPerformanceAnalysisReportsResponse) => void): Request<PI.Types.ListPerformanceAnalysisReportsResponse, AWSError>;
  94. /**
  95. * Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource.
  96. */
  97. listTagsForResource(params: PI.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: PI.Types.ListTagsForResourceResponse) => void): Request<PI.Types.ListTagsForResourceResponse, AWSError>;
  98. /**
  99. * Retrieves all the metadata tags associated with Amazon RDS Performance Insights resource.
  100. */
  101. listTagsForResource(callback?: (err: AWSError, data: PI.Types.ListTagsForResourceResponse) => void): Request<PI.Types.ListTagsForResourceResponse, AWSError>;
  102. /**
  103. * Adds metadata tags to the Amazon RDS Performance Insights resource.
  104. */
  105. tagResource(params: PI.Types.TagResourceRequest, callback?: (err: AWSError, data: PI.Types.TagResourceResponse) => void): Request<PI.Types.TagResourceResponse, AWSError>;
  106. /**
  107. * Adds metadata tags to the Amazon RDS Performance Insights resource.
  108. */
  109. tagResource(callback?: (err: AWSError, data: PI.Types.TagResourceResponse) => void): Request<PI.Types.TagResourceResponse, AWSError>;
  110. /**
  111. * Deletes the metadata tags from the Amazon RDS Performance Insights resource.
  112. */
  113. untagResource(params: PI.Types.UntagResourceRequest, callback?: (err: AWSError, data: PI.Types.UntagResourceResponse) => void): Request<PI.Types.UntagResourceResponse, AWSError>;
  114. /**
  115. * Deletes the metadata tags from the Amazon RDS Performance Insights resource.
  116. */
  117. untagResource(callback?: (err: AWSError, data: PI.Types.UntagResourceResponse) => void): Request<PI.Types.UntagResourceResponse, AWSError>;
  118. }
  119. declare namespace PI {
  120. export type AcceptLanguage = "EN_US"|string;
  121. export type AdditionalMetricsList = RequestString[];
  122. export type AdditionalMetricsMap = {[key: string]: Double};
  123. export type AmazonResourceName = string;
  124. export interface AnalysisReport {
  125. /**
  126. * The name of the analysis report.
  127. */
  128. AnalysisReportId: AnalysisReportId;
  129. /**
  130. * The unique identifier of the analysis report.
  131. */
  132. Identifier?: IdentifierString;
  133. /**
  134. * List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows: RDS DOCDB
  135. */
  136. ServiceType?: ServiceType;
  137. /**
  138. * The time you created the analysis report.
  139. */
  140. CreateTime?: ISOTimestamp;
  141. /**
  142. * The analysis start time in the report.
  143. */
  144. StartTime?: ISOTimestamp;
  145. /**
  146. * The analysis end time in the report.
  147. */
  148. EndTime?: ISOTimestamp;
  149. /**
  150. * The status of the created analysis report.
  151. */
  152. Status?: AnalysisStatus;
  153. /**
  154. * The list of identified insights in the analysis report.
  155. */
  156. Insights?: InsightList;
  157. }
  158. export type AnalysisReportId = string;
  159. export interface AnalysisReportSummary {
  160. /**
  161. * The name of the analysis report.
  162. */
  163. AnalysisReportId?: String;
  164. /**
  165. * The time you created the analysis report.
  166. */
  167. CreateTime?: ISOTimestamp;
  168. /**
  169. * The start time of the analysis in the report.
  170. */
  171. StartTime?: ISOTimestamp;
  172. /**
  173. * The end time of the analysis in the report.
  174. */
  175. EndTime?: ISOTimestamp;
  176. /**
  177. * The status of the analysis report.
  178. */
  179. Status?: AnalysisStatus;
  180. /**
  181. * List of all the tags added to the analysis report.
  182. */
  183. Tags?: TagList;
  184. }
  185. export type AnalysisReportSummaryList = AnalysisReportSummary[];
  186. export type AnalysisStatus = "RUNNING"|"SUCCEEDED"|"FAILED"|string;
  187. export type Boolean = boolean;
  188. export type ContextType = "CAUSAL"|"CONTEXTUAL"|string;
  189. export interface CreatePerformanceAnalysisReportRequest {
  190. /**
  191. * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS.
  192. */
  193. ServiceType: ServiceType;
  194. /**
  195. * An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source. To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-ADECBTYHKTSAUMUZQYPDS2GW4A.
  196. */
  197. Identifier: IdentifierString;
  198. /**
  199. * The start time defined for the analysis report.
  200. */
  201. StartTime: ISOTimestamp;
  202. /**
  203. * The end time defined for the analysis report.
  204. */
  205. EndTime: ISOTimestamp;
  206. /**
  207. * The metadata assigned to the analysis report consisting of a key-value pair.
  208. */
  209. Tags?: TagList;
  210. }
  211. export interface CreatePerformanceAnalysisReportResponse {
  212. /**
  213. * A unique identifier for the created analysis report.
  214. */
  215. AnalysisReportId?: AnalysisReportId;
  216. }
  217. export interface Data {
  218. /**
  219. * This field determines the Performance Insights metric to render for the insight. The name field refers to a Performance Insights metric.
  220. */
  221. PerformanceInsightsMetric?: PerformanceInsightsMetric;
  222. }
  223. export type DataList = Data[];
  224. export interface DataPoint {
  225. /**
  226. * The time, in epoch format, associated with a particular Value.
  227. */
  228. Timestamp: ISOTimestamp;
  229. /**
  230. * The actual value associated with a particular Timestamp.
  231. */
  232. Value: Double;
  233. }
  234. export type DataPointsList = DataPoint[];
  235. export interface DeletePerformanceAnalysisReportRequest {
  236. /**
  237. * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS.
  238. */
  239. ServiceType: ServiceType;
  240. /**
  241. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  242. */
  243. Identifier: IdentifierString;
  244. /**
  245. * The unique identifier of the analysis report for deletion.
  246. */
  247. AnalysisReportId: AnalysisReportId;
  248. }
  249. export interface DeletePerformanceAnalysisReportResponse {
  250. }
  251. export interface DescribeDimensionKeysRequest {
  252. /**
  253. * The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows: RDS DOCDB
  254. */
  255. ServiceType: ServiceType;
  256. /**
  257. * An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from this data source. To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A.
  258. */
  259. Identifier: IdentifierString;
  260. /**
  261. * The date and time specifying the beginning of the requested time series data. You must specify a StartTime within the past 7 days. The value specified is inclusive, which means that data points equal to or greater than StartTime are returned. The value for StartTime must be earlier than the value for EndTime.
  262. */
  263. StartTime: ISOTimestamp;
  264. /**
  265. * The date and time specifying the end of the requested time series data. The value specified is exclusive, which means that data points less than (but not equal to) EndTime are returned. The value for EndTime must be later than the value for StartTime.
  266. */
  267. EndTime: ISOTimestamp;
  268. /**
  269. * The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. 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.
  270. */
  271. Metric: RequestString;
  272. /**
  273. * 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: 1 (one second) 60 (one minute) 300 (five minutes) 3600 (one hour) 86400 (twenty-four hours) If you don't specify PeriodInSeconds, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.
  274. */
  275. PeriodInSeconds?: Integer;
  276. /**
  277. * A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.
  278. */
  279. GroupBy: DimensionGroup;
  280. /**
  281. * Additional metrics for the top N dimension keys. If the specified dimension group in the GroupBy parameter is db.sql_tokenized, you can specify per-SQL metrics to get the values for the top N SQL digests. The response syntax is as follows: "AdditionalMetrics" : { "string" : "string" }.
  282. */
  283. AdditionalMetrics?: AdditionalMetricsList;
  284. /**
  285. * For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response.
  286. */
  287. PartitionBy?: DimensionGroup;
  288. /**
  289. * One or more filters to apply in the request. Restrictions: Any number of filters by the same dimension, as specified in the GroupBy or Partition parameters. A single filter for any other dimension in this dimension group.
  290. */
  291. Filter?: MetricQueryFilterMap;
  292. /**
  293. * The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.
  294. */
  295. MaxResults?: MaxResults;
  296. /**
  297. * 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 MaxRecords.
  298. */
  299. NextToken?: NextToken;
  300. }
  301. export interface DescribeDimensionKeysResponse {
  302. /**
  303. * The start time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.
  304. */
  305. AlignedStartTime?: ISOTimestamp;
  306. /**
  307. * The end time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.
  308. */
  309. AlignedEndTime?: ISOTimestamp;
  310. /**
  311. * If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions.
  312. */
  313. PartitionKeys?: ResponsePartitionKeyList;
  314. /**
  315. * The dimension keys that were requested.
  316. */
  317. Keys?: DimensionKeyDescriptionList;
  318. /**
  319. * A pagination token that indicates the response didn’t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value.
  320. */
  321. NextToken?: NextToken;
  322. }
  323. export type Description = string;
  324. export type DescriptiveMap = {[key: string]: DescriptiveString};
  325. export type DescriptiveString = string;
  326. export type DetailStatus = "AVAILABLE"|"PROCESSING"|"UNAVAILABLE"|string;
  327. export interface DimensionDetail {
  328. /**
  329. * The identifier of a dimension.
  330. */
  331. Identifier?: String;
  332. }
  333. export type DimensionDetailList = DimensionDetail[];
  334. export interface DimensionGroup {
  335. /**
  336. * The name of the dimension group. Valid values are as follows: db - The name of the database to which the client is connected. The following values are permitted: Aurora PostgreSQL Amazon RDS PostgreSQL Aurora MySQL Amazon RDS MySQL Amazon RDS MariaDB Amazon DocumentDB db.application - The name of the application that is connected to the database. The following values are permitted: Aurora PostgreSQL Amazon RDS PostgreSQL Amazon DocumentDB db.host - The host name of the connected client (all engines). db.query - The query that is currently running (only Amazon DocumentDB). db.query_tokenized - The digest query (only Amazon DocumentDB). db.session_type - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL). db.sql - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB). db.sql_tokenized - The SQL digest (all engines except Amazon DocumentDB). db.user - The user logged in to the database (all engines except Amazon DocumentDB). db.wait_event - The event for which the database backend is waiting (all engines except Amazon DocumentDB). db.wait_event_type - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB). db.wait_state - The event for which the database backend is waiting (only Amazon DocumentDB).
  337. */
  338. Group: RequestString;
  339. /**
  340. * 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. Valid values for elements in the Dimensions array are: db.application.name - The name of the application that is connected to the database. Valid values are as follows: Aurora PostgreSQL Amazon RDS PostgreSQL Amazon DocumentDB db.host.id - The host ID of the connected client (all engines). db.host.name - The host name of the connected client (all engines). db.name - The name of the database to which the client is connected. Valid values are as follows: Aurora PostgreSQL Amazon RDS PostgreSQL Aurora MySQL Amazon RDS MySQL Amazon RDS MariaDB Amazon DocumentDB db.query.id - The query ID generated by Performance Insights (only Amazon DocumentDB). db.query.db_id - The query ID generated by the database (only Amazon DocumentDB). db.query.statement - The text of the query that is being run (only Amazon DocumentDB). db.query.tokenized_id db.query.tokenized.id - The query digest ID generated by Performance Insights (only Amazon DocumentDB). db.query.tokenized.db_id - The query digest ID generated by Performance Insights (only Amazon DocumentDB). db.query.tokenized.statement - The text of the query digest (only Amazon DocumentDB). db.session_type.name - The type of the current session (only Amazon DocumentDB). db.sql.id - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB). db.sql.db_id - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with pi- (all engines except Amazon DocumentDB). db.sql.statement - The full text of the SQL statement that is running, as in SELECT * FROM employees (all engines except Amazon DocumentDB) db.sql.tokenized_id db.sql_tokenized.id - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console, db.sql_tokenized.id is called the Support ID because Amazon Web Services Support can look at this data to help you troubleshoot database issues. db.sql_tokenized.db_id - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as pi-2372568224 that Performance Insights generates if the native database ID isn't available (all engines except Amazon DocumentDB). db.sql_tokenized.statement - The text of the SQL digest, as in SELECT * FROM employees WHERE employee_id = ? (all engines except Amazon DocumentDB) db.user.id - The ID of the user logged in to the database (all engines except Amazon DocumentDB). db.user.name - The name of the user logged in to the database (all engines except Amazon DocumentDB). db.wait_event.name - The event for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_event.type - The type of event for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_event_type.name - The name of the event type for which the backend is waiting (all engines except Amazon DocumentDB). db.wait_state.name - The event for which the backend is waiting (only Amazon DocumentDB).
  341. */
  342. Dimensions?: RequestStringList;
  343. /**
  344. * The maximum number of items to fetch for this dimension group.
  345. */
  346. Limit?: Limit;
  347. }
  348. export interface DimensionGroupDetail {
  349. /**
  350. * The name of the dimension group.
  351. */
  352. Group?: String;
  353. /**
  354. * The dimensions within a dimension group.
  355. */
  356. Dimensions?: DimensionDetailList;
  357. }
  358. export type DimensionGroupDetailList = DimensionGroupDetail[];
  359. export interface DimensionKeyDescription {
  360. /**
  361. * A map of name-value pairs for the dimensions in the group.
  362. */
  363. Dimensions?: DimensionMap;
  364. /**
  365. * The aggregated metric value for the dimensions, over the requested time range.
  366. */
  367. Total?: Double;
  368. /**
  369. * A map that contains the value for each additional metric.
  370. */
  371. AdditionalMetrics?: AdditionalMetricsMap;
  372. /**
  373. * If PartitionBy was specified, PartitionKeys contains the dimensions that were.
  374. */
  375. Partitions?: MetricValuesList;
  376. }
  377. export type DimensionKeyDescriptionList = DimensionKeyDescription[];
  378. export interface DimensionKeyDetail {
  379. /**
  380. * The value of the dimension detail data. Depending on the return status, this value is either the full or truncated SQL query for the following dimensions: db.query.statement (Amazon DocumentDB) db.sql.statement (Amazon RDS and Aurora)
  381. */
  382. Value?: String;
  383. /**
  384. * The full name of the dimension. The full name includes the group name and key name. The following values are valid: db.query.statement (Amazon DocumentDB) db.sql.statement (Amazon RDS and Aurora)
  385. */
  386. Dimension?: String;
  387. /**
  388. * The status of the dimension detail data. Possible values include the following: AVAILABLE - The dimension detail data is ready to be retrieved. PROCESSING - The dimension detail data isn't ready to be retrieved because more processing time is required. If the requested detail data has the status PROCESSING, Performance Insights returns the truncated query. UNAVAILABLE - The dimension detail data could not be collected successfully.
  389. */
  390. Status?: DetailStatus;
  391. }
  392. export type DimensionKeyDetailList = DimensionKeyDetail[];
  393. export type DimensionMap = {[key: string]: RequestString};
  394. export type DimensionsMetricList = RequestString[];
  395. export type Double = number;
  396. export interface FeatureMetadata {
  397. /**
  398. * The status of the feature on the DB instance. Possible values include the following: ENABLED - The feature is enabled on the instance. DISABLED - The feature is disabled on the instance. UNSUPPORTED - The feature isn't supported on the instance. ENABLED_PENDING_REBOOT - The feature is enabled on the instance but requires a reboot to take effect. DISABLED_PENDING_REBOOT - The feature is disabled on the instance but requires a reboot to take effect. UNKNOWN - The feature status couldn't be determined.
  399. */
  400. Status?: FeatureStatus;
  401. }
  402. export type FeatureMetadataMap = {[key: string]: FeatureMetadata};
  403. export type FeatureStatus = "ENABLED"|"DISABLED"|"UNSUPPORTED"|"ENABLED_PENDING_REBOOT"|"DISABLED_PENDING_REBOOT"|"UNKNOWN"|string;
  404. export interface GetDimensionKeyDetailsRequest {
  405. /**
  406. * The Amazon Web Services service for which Performance Insights returns data. The only valid value is RDS.
  407. */
  408. ServiceType: ServiceType;
  409. /**
  410. * The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an Amazon Web Services Region. When a DB instance is the data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  411. */
  412. Identifier: IdentifierString;
  413. /**
  414. * The name of the dimension group. Performance Insights searches the specified group for the dimension group ID. The following group name values are valid: db.query (Amazon DocumentDB only) db.sql (Amazon RDS and Aurora only)
  415. */
  416. Group: RequestString;
  417. /**
  418. * The ID of the dimension group from which to retrieve dimension details. For dimension group db.sql, the group ID is db.sql.id. The following group ID values are valid: db.sql.id for dimension group db.sql (Aurora and RDS only) db.query.id for dimension group db.query (DocumentDB only)
  419. */
  420. GroupIdentifier: RequestString;
  421. /**
  422. * A list of dimensions to retrieve the detail data for within the given dimension group. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group. Specify dimension names for the following dimension groups: db.sql - Specify either the full dimension name db.sql.statement or the short dimension name statement (Aurora and RDS only). db.query - Specify either the full dimension name db.query.statement or the short dimension name statement (DocumentDB only).
  423. */
  424. RequestedDimensions?: RequestedDimensionList;
  425. }
  426. export interface GetDimensionKeyDetailsResponse {
  427. /**
  428. * The details for the requested dimensions.
  429. */
  430. Dimensions?: DimensionKeyDetailList;
  431. }
  432. export interface GetPerformanceAnalysisReportRequest {
  433. /**
  434. * The Amazon Web Services service for which Performance Insights will return metrics. Valid value is RDS.
  435. */
  436. ServiceType: ServiceType;
  437. /**
  438. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  439. */
  440. Identifier: IdentifierString;
  441. /**
  442. * A unique identifier of the created analysis report. For example, report-12345678901234567
  443. */
  444. AnalysisReportId: AnalysisReportId;
  445. /**
  446. * Indicates the text format in the report. The options are PLAIN_TEXT or MARKDOWN. The default value is plain text.
  447. */
  448. TextFormat?: TextFormat;
  449. /**
  450. * The text language in the report. The default language is EN_US (English).
  451. */
  452. AcceptLanguage?: AcceptLanguage;
  453. }
  454. export interface GetPerformanceAnalysisReportResponse {
  455. /**
  456. * The summary of the performance analysis report created for a time period.
  457. */
  458. AnalysisReport?: AnalysisReport;
  459. }
  460. export interface GetResourceMetadataRequest {
  461. /**
  462. * The Amazon Web Services service for which Performance Insights returns metrics.
  463. */
  464. ServiceType: ServiceType;
  465. /**
  466. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  467. */
  468. Identifier: IdentifierString;
  469. }
  470. export interface GetResourceMetadataResponse {
  471. /**
  472. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  473. */
  474. Identifier?: String;
  475. /**
  476. * The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
  477. */
  478. Features?: FeatureMetadataMap;
  479. }
  480. export interface GetResourceMetricsRequest {
  481. /**
  482. * The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows: RDS DOCDB
  483. */
  484. ServiceType: ServiceType;
  485. /**
  486. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  487. */
  488. Identifier: IdentifierString;
  489. /**
  490. * An array of one or more queries to perform. Each query must specify a Performance Insights metric and specify an aggregate function, and you can provide filtering criteria. You must append the aggregate function to the metric. For example, to find the average for the metric db.load you must use db.load.avg. Valid values for aggregate functions include .avg, .min, .max, and .sum.
  491. */
  492. MetricQueries: MetricQueryList;
  493. /**
  494. * The date and time specifying the beginning of the requested time series query range. You can't specify a StartTime that is earlier than 7 days ago. By default, Performance Insights has 7 days of retention, but you can extend this range up to 2 years. The value specified is inclusive. Thus, the command returns data points equal to or greater than StartTime. The value for StartTime must be earlier than the value for EndTime.
  495. */
  496. StartTime: ISOTimestamp;
  497. /**
  498. * The date and time specifying the end of the requested time series query range. The value specified is exclusive. Thus, the command returns data points less than (but not equal to) EndTime. The value for EndTime must be later than the value for StartTime.
  499. */
  500. EndTime: ISOTimestamp;
  501. /**
  502. * 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: 1 (one second) 60 (one minute) 300 (five minutes) 3600 (one hour) 86400 (twenty-four hours) If you don't specify PeriodInSeconds, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response.
  503. */
  504. PeriodInSeconds?: Integer;
  505. /**
  506. * The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.
  507. */
  508. MaxResults?: MaxResults;
  509. /**
  510. * 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 MaxRecords.
  511. */
  512. NextToken?: NextToken;
  513. /**
  514. * The returned timestamp which is the start or end time of the time periods. The default value is END_TIME.
  515. */
  516. PeriodAlignment?: PeriodAlignment;
  517. }
  518. export interface GetResourceMetricsResponse {
  519. /**
  520. * The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.
  521. */
  522. AlignedStartTime?: ISOTimestamp;
  523. /**
  524. * The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.
  525. */
  526. AlignedEndTime?: ISOTimestamp;
  527. /**
  528. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId.
  529. */
  530. Identifier?: String;
  531. /**
  532. * An array of metric results, where each array element contains all of the data points for a particular dimension.
  533. */
  534. MetricList?: MetricKeyDataPointsList;
  535. /**
  536. * 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 MaxRecords.
  537. */
  538. NextToken?: NextToken;
  539. }
  540. export type ISOTimestamp = Date;
  541. export type IdentifierString = string;
  542. export interface Insight {
  543. /**
  544. * The unique identifier for the insight. For example, insight-12345678901234567.
  545. */
  546. InsightId: String;
  547. /**
  548. * The type of insight. For example, HighDBLoad, HighCPU, or DominatingSQLs.
  549. */
  550. InsightType?: String;
  551. /**
  552. * Indicates if the insight is causal or correlated insight.
  553. */
  554. Context?: ContextType;
  555. /**
  556. * The start time of the insight. For example, 2018-10-30T00:00:00Z.
  557. */
  558. StartTime?: ISOTimestamp;
  559. /**
  560. * The end time of the insight. For example, 2018-10-30T00:00:00Z.
  561. */
  562. EndTime?: ISOTimestamp;
  563. /**
  564. * The severity of the insight. The values are: Low, Medium, or High.
  565. */
  566. Severity?: Severity;
  567. /**
  568. * List of supporting insights that provide additional factors for the insight.
  569. */
  570. SupportingInsights?: InsightList;
  571. /**
  572. * Description of the insight. For example: A high severity Insight found between 02:00 to 02:30, where there was an unusually high DB load 600x above baseline. Likely performance impact.
  573. */
  574. Description?: MarkdownString;
  575. /**
  576. * List of recommendations for the insight. For example, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id.
  577. */
  578. Recommendations?: RecommendationList;
  579. /**
  580. * List of data objects containing metrics and references from the time range while generating the insight.
  581. */
  582. InsightData?: DataList;
  583. /**
  584. * Metric names and values from the timeframe used as baseline to generate the insight.
  585. */
  586. BaselineData?: DataList;
  587. }
  588. export type InsightList = Insight[];
  589. export type Integer = number;
  590. export type Limit = number;
  591. export interface ListAvailableResourceDimensionsRequest {
  592. /**
  593. * The Amazon Web Services service for which Performance Insights returns metrics.
  594. */
  595. ServiceType: ServiceType;
  596. /**
  597. * An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ.
  598. */
  599. Identifier: IdentifierString;
  600. /**
  601. * The types of metrics for which to retrieve dimensions. Valid values include db.load.
  602. */
  603. Metrics: DimensionsMetricList;
  604. /**
  605. * The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.
  606. */
  607. MaxResults?: MaxResults;
  608. /**
  609. * 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 MaxRecords.
  610. */
  611. NextToken?: NextToken;
  612. }
  613. export interface ListAvailableResourceDimensionsResponse {
  614. /**
  615. * The dimension information returned for requested metric types.
  616. */
  617. MetricDimensions?: MetricDimensionsList;
  618. /**
  619. * 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 MaxRecords.
  620. */
  621. NextToken?: NextToken;
  622. }
  623. export interface ListAvailableResourceMetricsRequest {
  624. /**
  625. * The Amazon Web Services service for which Performance Insights returns metrics.
  626. */
  627. ServiceType: ServiceType;
  628. /**
  629. * An immutable identifier for a data source that is unique within an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use an Amazon RDS DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VWZ.
  630. */
  631. Identifier: IdentifierString;
  632. /**
  633. * The types of metrics to return in the response. Valid values in the array include the following: os (OS counter metrics) - All engines db (DB load metrics) - All engines except for Amazon DocumentDB db.sql.stats (per-SQL metrics) - All engines except for Amazon DocumentDB db.sql_tokenized.stats (per-SQL digest metrics) - All engines except for Amazon DocumentDB
  634. */
  635. MetricTypes: MetricTypeList;
  636. /**
  637. * 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 MaxRecords.
  638. */
  639. NextToken?: NextToken;
  640. /**
  641. * The maximum number of items to return. If the MaxRecords value is less than the number of existing items, the response includes a pagination token.
  642. */
  643. MaxResults?: MaxResults;
  644. }
  645. export interface ListAvailableResourceMetricsResponse {
  646. /**
  647. * An array of metrics available to query. Each array element contains the full name, description, and unit of the metric.
  648. */
  649. Metrics?: ResponseResourceMetricList;
  650. /**
  651. * A pagination token that indicates the response didn’t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value.
  652. */
  653. NextToken?: NextToken;
  654. }
  655. export interface ListPerformanceAnalysisReportsRequest {
  656. /**
  657. * The Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS.
  658. */
  659. ServiceType: ServiceType;
  660. /**
  661. * An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId. To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.
  662. */
  663. Identifier: IdentifierString;
  664. /**
  665. * 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 MaxResults.
  666. */
  667. NextToken?: NextToken;
  668. /**
  669. * The maximum number of items to return in the response. If more items exist than the specified MaxResults value, a pagination token is included in the response so that the remaining results can be retrieved.
  670. */
  671. MaxResults?: MaxResults;
  672. /**
  673. * Specifies whether or not to include the list of tags in the response.
  674. */
  675. ListTags?: Boolean;
  676. }
  677. export interface ListPerformanceAnalysisReportsResponse {
  678. /**
  679. * List of reports including the report identifier, start and end time, creation time, and status.
  680. */
  681. AnalysisReports?: AnalysisReportSummaryList;
  682. /**
  683. * 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 MaxResults.
  684. */
  685. NextToken?: NextToken;
  686. }
  687. export interface ListTagsForResourceRequest {
  688. /**
  689. * List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS.
  690. */
  691. ServiceType: ServiceType;
  692. /**
  693. * Lists all the tags for the Amazon RDS Performance Insights resource. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
  694. */
  695. ResourceARN: AmazonResourceName;
  696. }
  697. export interface ListTagsForResourceResponse {
  698. /**
  699. * The metadata assigned to an Amazon RDS resource consisting of a key-value pair.
  700. */
  701. Tags?: TagList;
  702. }
  703. export type MarkdownString = string;
  704. export type MaxResults = number;
  705. export interface MetricDimensionGroups {
  706. /**
  707. * The metric type to which the dimension information belongs.
  708. */
  709. Metric?: String;
  710. /**
  711. * The available dimension groups for a metric type.
  712. */
  713. Groups?: DimensionGroupDetailList;
  714. }
  715. export type MetricDimensionsList = MetricDimensionGroups[];
  716. export interface MetricKeyDataPoints {
  717. /**
  718. * The dimensions to which the data points apply.
  719. */
  720. Key?: ResponseResourceMetricKey;
  721. /**
  722. * An array of timestamp-value pairs, representing measurements over a period of time.
  723. */
  724. DataPoints?: DataPointsList;
  725. }
  726. export type MetricKeyDataPointsList = MetricKeyDataPoints[];
  727. export interface MetricQuery {
  728. /**
  729. * The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide. The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide. 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.
  730. */
  731. Metric: RequestString;
  732. /**
  733. * 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.
  734. */
  735. GroupBy?: DimensionGroup;
  736. /**
  737. * One or more filters to apply in the request. Restrictions: Any number of filters by the same dimension, as specified in the GroupBy parameter. A single filter for any other dimension in this dimension group.
  738. */
  739. Filter?: MetricQueryFilterMap;
  740. }
  741. export type MetricQueryFilterMap = {[key: string]: RequestString};
  742. export type MetricQueryList = MetricQuery[];
  743. export type MetricTypeList = RequestString[];
  744. export type MetricValuesList = Double[];
  745. export type NextToken = string;
  746. export interface PerformanceInsightsMetric {
  747. /**
  748. * The Performance Insights metric.
  749. */
  750. Metric?: DescriptiveString;
  751. /**
  752. * The Performance Insights metric name.
  753. */
  754. DisplayName?: DescriptiveString;
  755. /**
  756. * A dimension map that contains the dimensions for this partition.
  757. */
  758. Dimensions?: DescriptiveMap;
  759. /**
  760. * The value of the metric. For example, 9 for db.load.avg.
  761. */
  762. Value?: Double;
  763. }
  764. export type PeriodAlignment = "END_TIME"|"START_TIME"|string;
  765. export interface Recommendation {
  766. /**
  767. * The unique identifier for the recommendation.
  768. */
  769. RecommendationId?: String;
  770. /**
  771. * The recommendation details to help resolve the performance issue. For example, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id
  772. */
  773. RecommendationDescription?: MarkdownString;
  774. }
  775. export type RecommendationList = Recommendation[];
  776. export type RequestString = string;
  777. export type RequestStringList = RequestString[];
  778. export type RequestedDimensionList = RequestString[];
  779. export interface ResponsePartitionKey {
  780. /**
  781. * A dimension map that contains the dimensions for this partition.
  782. */
  783. Dimensions: DimensionMap;
  784. }
  785. export type ResponsePartitionKeyList = ResponsePartitionKey[];
  786. export interface ResponseResourceMetric {
  787. /**
  788. * The full name of the metric.
  789. */
  790. Metric?: String;
  791. /**
  792. * The description of the metric.
  793. */
  794. Description?: Description;
  795. /**
  796. * The unit of the metric.
  797. */
  798. Unit?: String;
  799. }
  800. export interface ResponseResourceMetricKey {
  801. /**
  802. * The name of a Performance Insights metric to be measured. Valid values for Metric are: db.load.avg - A scaled representation of the number of active sessions for the database engine. db.sampledload.avg - The raw number of active sessions for the database engine. The counter metrics listed in Performance Insights operating system counters in the Amazon Aurora User Guide. The counter metrics listed in Performance Insights operating system counters in the Amazon RDS User Guide. 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.
  803. */
  804. Metric: String;
  805. /**
  806. * The valid dimensions for the metric.
  807. */
  808. Dimensions?: DimensionMap;
  809. }
  810. export type ResponseResourceMetricList = ResponseResourceMetric[];
  811. export type ServiceType = "RDS"|"DOCDB"|string;
  812. export type Severity = "LOW"|"MEDIUM"|"HIGH"|string;
  813. export type String = string;
  814. export interface Tag {
  815. /**
  816. * A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$").
  817. */
  818. Key: TagKey;
  819. /**
  820. * A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$").
  821. */
  822. Value: TagValue;
  823. }
  824. export type TagKey = string;
  825. export type TagKeyList = TagKey[];
  826. export type TagList = Tag[];
  827. export interface TagResourceRequest {
  828. /**
  829. * The Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS.
  830. */
  831. ServiceType: ServiceType;
  832. /**
  833. * The Amazon RDS Performance Insights resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
  834. */
  835. ResourceARN: AmazonResourceName;
  836. /**
  837. * The metadata assigned to an Amazon RDS resource consisting of a key-value pair.
  838. */
  839. Tags: TagList;
  840. }
  841. export interface TagResourceResponse {
  842. }
  843. export type TagValue = string;
  844. export type TextFormat = "PLAIN_TEXT"|"MARKDOWN"|string;
  845. export interface UntagResourceRequest {
  846. /**
  847. * List the tags for the Amazon Web Services service for which Performance Insights returns metrics. Valid value is RDS.
  848. */
  849. ServiceType: ServiceType;
  850. /**
  851. * The Amazon RDS Performance Insights resource that the tags are added to. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN).
  852. */
  853. ResourceARN: AmazonResourceName;
  854. /**
  855. * The metadata assigned to an Amazon RDS Performance Insights resource consisting of a key-value pair.
  856. */
  857. TagKeys: TagKeyList;
  858. }
  859. export interface UntagResourceResponse {
  860. }
  861. /**
  862. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  863. */
  864. export type apiVersion = "2018-02-27"|"latest"|string;
  865. export interface ClientApiVersions {
  866. /**
  867. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  868. */
  869. apiVersion?: apiVersion;
  870. }
  871. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  872. /**
  873. * Contains interfaces for use with the PI client.
  874. */
  875. export import Types = PI;
  876. }
  877. export = PI;