/
models_0.ts
1268 lines (1176 loc) · 48.1 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { PIServiceException as __BaseException } from "./PIServiceException";
/**
* @public
* <p>A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.</p>
*/
export interface DataPoint {
/**
* <p>The time, in epoch format, associated with a particular <code>Value</code>.</p>
*/
Timestamp: Date | undefined;
/**
* <p>The actual value associated with a particular <code>Timestamp</code>.</p>
*/
Value: number | undefined;
}
/**
* @public
* <p>A logical grouping of Performance Insights metrics for a related subject area. For example, the
* <code>db.sql</code> dimension group consists of the following dimensions:</p>
* <ul>
* <li>
* <p>
* <code>db.sql.id</code> - The hash of a running SQL statement, generated by Performance Insights.</p>
* </li>
* <li>
* <p>
* <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
* <code>pi-</code>.</p>
* </li>
* <li>
* <p>
* <code>db.sql.statement</code> - The full text of the SQL statement that is running, for example, <code>SELECT * FROM
* employees</code>.</p>
* </li>
* <li>
* <p>
* <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights.</p>
* </li>
* </ul>
* <note>
* <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL
* statements, only the first 500 bytes are returned.</p>
* </note>
*/
export interface DimensionGroup {
/**
* <p>The name of the dimension group. Valid values are as follows:</p>
* <ul>
* <li>
* <p>
* <code>db</code> - The name of the database to which the client is connected. The following values are permitted:</p>
* <ul>
* <li>
* <p>Aurora PostgreSQL</p>
* </li>
* <li>
* <p>Amazon RDS PostgreSQL</p>
* </li>
* <li>
* <p>Aurora MySQL</p>
* </li>
* <li>
* <p>Amazon RDS MySQL</p>
* </li>
* <li>
* <p>Amazon RDS MariaDB</p>
* </li>
* <li>
* <p>Amazon DocumentDB</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <code>db.application</code> - The name of the application that is connected to the database. The following values are
* permitted:</p>
* <ul>
* <li>
* <p>Aurora PostgreSQL</p>
* </li>
* <li>
* <p>Amazon RDS PostgreSQL</p>
* </li>
* <li>
* <p>Amazon DocumentDB</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <code>db.host</code> - The host name of the connected client (all engines).</p>
* </li>
* <li>
* <p>
* <code>db.query</code> - The query that is currently running (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query_tokenized</code> - The digest query (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.session_type</code> - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL).</p>
* </li>
* <li>
* <p>
* <code>db.sql</code> - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.sql_tokenized</code> - The SQL digest (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.user</code> - The user logged in to the database (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_event</code> - The event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_event_type</code> - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_state</code> - The event for which the database backend is waiting (only Amazon DocumentDB).</p>
* </li>
* </ul>
*/
Group: string | undefined;
/**
* <p>A list of specific dimensions from a dimension group. If this parameter is not present,
* then it signifies that all of the dimensions in the group were requested, or are present in
* the response.</p>
* <p>Valid values for elements in the <code>Dimensions</code> array are:</p>
* <ul>
* <li>
* <p>
* <code>db.application.name</code> - The name of the application that is connected to the database. Valid values are as follows: </p>
* <ul>
* <li>
* <p>Aurora PostgreSQL</p>
* </li>
* <li>
* <p>Amazon RDS PostgreSQL</p>
* </li>
* <li>
* <p>Amazon DocumentDB</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <code>db.host.id</code> - The host ID of the connected client (all engines).</p>
* </li>
* <li>
* <p>
* <code>db.host.name</code> - The host name of the connected client (all engines).</p>
* </li>
* <li>
* <p>
* <code>db.name</code> - The name of the database to which the client is connected. Valid values are as follows:</p>
* <ul>
* <li>
* <p>Aurora PostgreSQL</p>
* </li>
* <li>
* <p>Amazon RDS PostgreSQL</p>
* </li>
* <li>
* <p>Aurora MySQL</p>
* </li>
* <li>
* <p>Amazon RDS MySQL</p>
* </li>
* <li>
* <p>Amazon RDS MariaDB</p>
* </li>
* <li>
* <p>Amazon DocumentDB</p>
* </li>
* </ul>
* </li>
* <li>
* <p>
* <code>db.query.id</code> - The query ID generated by Performance Insights (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query.db_id</code> - The query ID generated by the database (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query.statement</code> - The text of the query that is being run (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query.tokenized_id</code>
* </p>
* </li>
* <li>
* <p>
* <code>db.query.tokenized.id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query.tokenized.db_id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.query.tokenized.statement</code> - The text of the query digest (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.session_type.name</code> - The type of the current session (only Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.sql.id</code> - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
* <code>pi-</code> (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.sql.statement</code> - The full text of the SQL statement that is running, as in <code>SELECT * FROM employees</code>
* (all engines except Amazon DocumentDB)</p>
* </li>
* <li>
* <p>
* <code>db.sql.tokenized_id</code>
* </p>
* </li>
* <li>
* <p>
* <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console,
* <code>db.sql_tokenized.id</code> is called the Support ID because Amazon Web Services Support can look at this data to help you troubleshoot
* database issues.</p>
* </li>
* <li>
* <p>
* <code>db.sql_tokenized.db_id</code> - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as
* <code>pi-2372568224</code> that Performance Insights generates if the native database ID isn't available (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.sql_tokenized.statement</code> - The text of the SQL digest, as in <code>SELECT * FROM employees WHERE employee_id =
* ?</code> (all engines except Amazon DocumentDB)</p>
* </li>
* <li>
* <p>
* <code>db.user.id</code> - The ID of the user logged in to the database (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.user.name</code> - The name of the user logged in to the database (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_event.name</code> - The event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_event.type</code> - The type of event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_event_type.name</code> - The name of the event type for which the backend is waiting (all engines except
* Amazon DocumentDB).</p>
* </li>
* <li>
* <p>
* <code>db.wait_state.name</code> - The event for which the backend is waiting (only Amazon DocumentDB).</p>
* </li>
* </ul>
*/
Dimensions?: string[];
/**
* <p>The maximum number of items to fetch for this dimension group.</p>
*/
Limit?: number;
}
/**
* @public
*/
export enum ServiceType {
DOCDB = "DOCDB",
RDS = "RDS",
}
/**
* @public
*/
export interface DescribeDimensionKeysRequest {
/**
* <p>The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:</p>
* <ul>
* <li>
* <p>
* <code>RDS</code>
* </p>
* </li>
* <li>
* <p>
* <code>DOCDB</code>
* </p>
* </li>
* </ul>
*/
ServiceType: ServiceType | string | undefined;
/**
* <p>An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from
* this data source.</p>
* <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value.
* For example, specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.
* </p>
*/
Identifier: string | undefined;
/**
* <p>The date and time specifying the beginning of the requested time series data. You must specify a
* <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>,
* which means that data points equal to or greater than <code>StartTime</code> are returned.
* </p>
* <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.
* </p>
*/
StartTime: Date | undefined;
/**
* <p>The date and time specifying the end of the requested time series data. The value specified is
* <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are
* returned.</p>
* <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
*/
EndTime: Date | undefined;
/**
* <p>The name of a Performance Insights metric to be measured.</p>
* <p>Valid values for <code>Metric</code> are:</p>
* <ul>
* <li>
* <p>
* <code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine. </p>
* </li>
* <li>
* <p>
* <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine. </p>
* </li>
* </ul>
* <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> 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>
* 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>. For most use cases, you can
* query <code>db.load.avg</code> only.
* </p>
*/
Metric: string | undefined;
/**
* <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as
* one second, or as long as one day (86400 seconds). Valid values are:
* </p>
* <ul>
* <li>
* <p>
* <code>1</code> (one second)</p>
* </li>
* <li>
* <p>
* <code>60</code> (one minute)</p>
* </li>
* <li>
* <p>
* <code>300</code> (five minutes)</p>
* </li>
* <li>
* <p>
* <code>3600</code> (one hour)</p>
* </li>
* <li>
* <p>
* <code>86400</code> (twenty-four hours)</p>
* </li>
* </ul>
* <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a
* goal of returning roughly 100-200 data points in the response.
* </p>
*/
PeriodInSeconds?: number;
/**
* <p>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. </p>
*/
GroupBy: DimensionGroup | undefined;
/**
* <p>Additional metrics for the top <code>N</code> dimension keys. If the specified dimension group in the <code>GroupBy</code> parameter is
* <code>db.sql_tokenized</code>, you can specify per-SQL metrics to get the values for the top <code>N</code> SQL digests. The response
* syntax is as follows: <code>"AdditionalMetrics" : \{ "<i>string</i>" : "<i>string</i>" \}</code>. </p>
*/
AdditionalMetrics?: string[];
/**
* <p>For each dimension specified in <code>GroupBy</code>, specify a secondary dimension
* to further subdivide the partition keys in the response.
* </p>
*/
PartitionBy?: DimensionGroup;
/**
* <p>One or more filters to apply in the request. Restrictions:</p>
* <ul>
* <li>
* <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or
* <code>Partition</code> parameters.</p>
* </li>
* <li>
* <p>A single filter for any other dimension in this dimension group.</p>
* </li>
* </ul>
*/
Filter?: Record<string, string>;
/**
* <p>The maximum number of items to return in the response. If more items exist than the specified <code>MaxRecords</code> value, a
* pagination token is included in the response so that the remaining results can be retrieved. </p>
*/
MaxResults?: number;
/**
* <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond
* the token, up to the value specified by <code>MaxRecords</code>.</p>
*/
NextToken?: string;
}
/**
* @public
* <p>An object that includes the requested dimension key values and aggregated metric values
* within a dimension group.</p>
*/
export interface DimensionKeyDescription {
/**
* <p>A map of name-value pairs for the dimensions in the group.</p>
*/
Dimensions?: Record<string, string>;
/**
* <p>The aggregated metric value for the dimensions, over the requested time range.</p>
*/
Total?: number;
/**
* <p>A map that contains the value for each additional metric.</p>
*/
AdditionalMetrics?: Record<string, number>;
/**
* <p>If <code>PartitionBy</code> was specified, <code>PartitionKeys</code> contains the dimensions that were.</p>
*/
Partitions?: number[];
}
/**
* @public
* <p>If <code>PartitionBy</code> was specified in a <code>DescribeDimensionKeys</code>
* request, the dimensions are returned in an array. Each element in the array specifies one
* dimension. </p>
*/
export interface ResponsePartitionKey {
/**
* <p>A dimension map that contains the dimensions for this partition.</p>
*/
Dimensions: Record<string, string> | undefined;
}
/**
* @public
*/
export interface DescribeDimensionKeysResponse {
/**
* <p>The start time for the returned dimension keys, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>).
* <code>AlignedStartTime</code> will be less than or equal to the value of the user-specified <code>StartTime</code>. </p>
*/
AlignedStartTime?: Date;
/**
* <p>The end time for the returned dimension keys, after alignment to a granular boundary (as specified by <code>PeriodInSeconds</code>).
* <code>AlignedEndTime</code> will be greater than or equal to the value of the user-specified <code>Endtime</code>. </p>
*/
AlignedEndTime?: Date;
/**
* <p>If <code>PartitionBy</code> was present in the request, <code>PartitionKeys</code> contains the breakdown of dimension keys by the
* specified partitions. </p>
*/
PartitionKeys?: ResponsePartitionKey[];
/**
* <p>The dimension keys that were requested.</p>
*/
Keys?: DimensionKeyDescription[];
/**
* <p>A pagination token that indicates the response didn’t return all available records because <code>MaxRecords</code> was specified in the
* previous request. To get the remaining records, specify <code>NextToken</code> in a separate request with this value. </p>
*/
NextToken?: string;
}
/**
* @public
* <p>The request failed due to an unknown error.</p>
*/
export class InternalServiceError extends __BaseException {
readonly name: "InternalServiceError" = "InternalServiceError";
readonly $fault: "server" = "server";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>) {
super({
name: "InternalServiceError",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalServiceError.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>One of the arguments provided is invalid for this request.</p>
*/
export class InvalidArgumentException extends __BaseException {
readonly name: "InvalidArgumentException" = "InvalidArgumentException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidArgumentException, __BaseException>) {
super({
name: "InvalidArgumentException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The user is not authorized to perform this request.</p>
*/
export class NotAuthorizedException extends __BaseException {
readonly name: "NotAuthorizedException" = "NotAuthorizedException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>) {
super({
name: "NotAuthorizedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
*/
export enum DetailStatus {
AVAILABLE = "AVAILABLE",
PROCESSING = "PROCESSING",
UNAVAILABLE = "UNAVAILABLE",
}
/**
* @public
* <p>The information about a dimension.</p>
*/
export interface DimensionDetail {
/**
* <p>The identifier of a dimension.</p>
*/
Identifier?: string;
}
/**
* @public
* <p>Information about dimensions within a dimension group.</p>
*/
export interface DimensionGroupDetail {
/**
* <p>The name of the dimension group.</p>
*/
Group?: string;
/**
* <p>The dimensions within a dimension group.</p>
*/
Dimensions?: DimensionDetail[];
}
/**
* @public
* <p>An object that describes the details for a specified dimension.</p>
*/
export interface DimensionKeyDetail {
/**
* <p>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:</p>
* <ul>
* <li>
* <p>
* <code>db.query.statement</code> (Amazon DocumentDB)</p>
* </li>
* <li>
* <p>
* <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
* </li>
* </ul>
*/
Value?: string;
/**
* <p>The full name of the dimension. The full name includes the group name and key name. The following values are valid:</p>
* <ul>
* <li>
* <p>
* <code>db.query.statement</code> (Amazon DocumentDB)</p>
* </li>
* <li>
* <p>
* <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
* </li>
* </ul>
*/
Dimension?: string;
/**
* <p>The status of the dimension detail data. Possible values include the following:</p>
* <ul>
* <li>
* <p>
* <code>AVAILABLE</code> - The dimension detail data is ready to be retrieved.</p>
* </li>
* <li>
* <p>
* <code>PROCESSING</code> - The dimension detail data isn't ready to be retrieved because more processing time is required. If the
* requested detail data has the status <code>PROCESSING</code>, Performance Insights returns the truncated query.</p>
* </li>
* <li>
* <p>
* <code>UNAVAILABLE</code> - The dimension detail data could not be collected successfully.</p>
* </li>
* </ul>
*/
Status?: DetailStatus | string;
}
/**
* @public
*/
export enum FeatureStatus {
DISABLED = "DISABLED",
DISABLED_PENDING_REBOOT = "DISABLED_PENDING_REBOOT",
ENABLED = "ENABLED",
ENABLED_PENDING_REBOOT = "ENABLED_PENDING_REBOOT",
UNKNOWN = "UNKNOWN",
UNSUPPORTED = "UNSUPPORTED",
}
/**
* @public
* <p>The metadata for a feature. For example, the metadata might indicate that a feature is
* turned on or off on a specific DB instance.</p>
*/
export interface FeatureMetadata {
/**
* <p>The status of the feature on the DB instance. Possible values include the following:</p>
* <ul>
* <li>
* <p>
* <code>ENABLED</code> - The feature is enabled on the instance.</p>
* </li>
* <li>
* <p>
* <code>DISABLED</code> - The feature is disabled on the instance.</p>
* </li>
* <li>
* <p>
* <code>UNSUPPORTED</code> - The feature isn't supported on the instance.</p>
* </li>
* <li>
* <p>
* <code>ENABLED_PENDING_REBOOT</code> - The feature is enabled on the instance but requires a reboot to take effect.</p>
* </li>
* <li>
* <p>
* <code>DISABLED_PENDING_REBOOT</code> - The feature is disabled on the instance but requires a reboot to take effect.</p>
* </li>
* <li>
* <p>
* <code>UNKNOWN</code> - The feature status couldn't be determined.</p>
* </li>
* </ul>
*/
Status?: FeatureStatus | string;
}
/**
* @public
*/
export interface GetDimensionKeyDetailsRequest {
/**
* <p>The Amazon Web Services service for which Performance Insights returns data. The only valid value is <code>RDS</code>.</p>
*/
ServiceType: ServiceType | string | undefined;
/**
* <p>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
* <code>DbiResourceId</code> value. For example, specify <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.
* </p>
*/
Identifier: string | undefined;
/**
* <p>The name of the dimension group. Performance Insights searches the specified group for the dimension group ID. The following group name values are
* valid:</p>
* <ul>
* <li>
* <p>
* <code>db.query</code> (Amazon DocumentDB only)</p>
* </li>
* <li>
* <p>
* <code>db.sql</code> (Amazon RDS and Aurora only)</p>
* </li>
* </ul>
*/
Group: string | undefined;
/**
* <p>The ID of the dimension group from which to retrieve dimension details. For dimension group <code>db.sql</code>, the group ID is
* <code>db.sql.id</code>. The following group ID values are valid:</p>
* <ul>
* <li>
* <p>
* <code>db.sql.id</code> for dimension group <code>db.sql</code> (Aurora and RDS only)</p>
* </li>
* <li>
* <p>
* <code>db.query.id</code> for dimension group <code>db.query</code> (DocumentDB only)</p>
* </li>
* </ul>
*/
GroupIdentifier: string | undefined;
/**
* <p>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:</p>
* <ul>
* <li>
* <p>
* <code>db.sql</code> - Specify either the full dimension name <code>db.sql.statement</code> or the short dimension name
* <code>statement</code> (Aurora and RDS only).</p>
* </li>
* <li>
* <p>
* <code>db.query</code> - Specify either the full dimension name <code>db.query.statement</code> or the short dimension name
* <code>statement</code> (DocumentDB only).</p>
* </li>
* </ul>
*/
RequestedDimensions?: string[];
}
/**
* @public
*/
export interface GetDimensionKeyDetailsResponse {
/**
* <p>The details for the requested dimensions.</p>
*/
Dimensions?: DimensionKeyDetail[];
}
/**
* @public
*/
export interface GetResourceMetadataRequest {
/**
* <p>The Amazon Web Services service for which Performance Insights returns metrics.</p>
*/
ServiceType: ServiceType | string | undefined;
/**
* <p>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 <code>DbiResourceId</code> value. For example, specify <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.
* </p>
*/
Identifier: string | undefined;
}
/**
* @public
*/
export interface GetResourceMetadataResponse {
/**
* <p>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 <code>DbiResourceId</code> value. For example, specify <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.
* </p>
*/
Identifier?: string;
/**
* <p>The metadata for different features. For example, the metadata might indicate that a feature is
* turned on or off on a specific DB instance.</p>
*/
Features?: Record<string, FeatureMetadata>;
}
/**
* @public
* <p>A single query to be processed. You must provide the metric to query. If no other
* parameters are specified, Performance Insights returns all data points for the specified metric. Optionally, you can
* request that the data points be aggregated by dimension group (<code>GroupBy</code>), and return only
* those data points that match your criteria (<code>Filter</code>).</p>
*/
export interface MetricQuery {
/**
* <p>The name of a Performance Insights metric to be measured.</p>
* <p>Valid values for <code>Metric</code> are:</p>
* <ul>
* <li>
* <p>
* <code>db.load.avg</code> - A scaled representation of the number of active sessions for the
* database engine.</p>
* </li>
* <li>
* <p>
* <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p>
* </li>
* <li>
* <p>The counter metrics listed in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS">Performance Insights
* operating system counters</a> in the <i>Amazon Aurora User Guide</i>.</p>
* </li>
* </ul>
* <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> 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> 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>. For most use cases, you can query <code>db.load.avg</code> only.</p>
*/
Metric: string | undefined;
/**
* <p>A specification for how to aggregate the data points from a query result. You must
* specify a valid dimension group. Performance Insights will return all of the dimensions within that group,
* unless you provide the names of specific dimensions within that group. You can also request
* that Performance Insights return a limited number of values for a dimension.</p>
*/
GroupBy?: DimensionGroup;
/**
* <p>One or more filters to apply in the request. Restrictions:</p>
* <ul>
* <li>
* <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> parameter.</p>
* </li>
* <li>
* <p>A single filter for any other dimension in this dimension group.</p>
* </li>
* </ul>
*/
Filter?: Record<string, string>;
}
/**
* @public
*/
export enum PeriodAlignment {
END_TIME = "END_TIME",
START_TIME = "START_TIME",
}
/**
* @public
*/
export interface GetResourceMetricsRequest {
/**
* <p>The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows:</p>
* <ul>
* <li>
* <p>
* <code>RDS</code>
* </p>
* </li>
* <li>
* <p>
* <code>DOCDB</code>
* </p>
* </li>
* </ul>
*/
ServiceType: ServiceType | string | undefined;
/**
* <p>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 <i>ResourceID</i>. When you call <code>DescribeDBInstances</code>, the identifier is
* returned as <code>DbiResourceId</code>.</p>
* <p>To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify
* <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.</p>
*/
Identifier: string | undefined;
/**
* <p>An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering
* criteria.</p>
*/
MetricQueries: MetricQuery[] | undefined;
/**
* <p>The date and time specifying the beginning of the requested time series query range. You can't
* specify a <code>StartTime</code> 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
* <i>inclusive</i>. Thus, the command returns data points equal to or greater
* than <code>StartTime</code>.</p>
* <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
*/
StartTime: Date | undefined;
/**
* <p>The date and time specifying the end of the requested time series query range. The value
* specified is <i>exclusive</i>. Thus, the command returns data points less than
* (but not equal to) <code>EndTime</code>.</p>
* <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
*/
EndTime: Date | undefined;
/**
* <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400
* seconds). Valid values are:</p>
* <ul>
* <li>
* <p>
* <code>1</code> (one second)</p>
* </li>
* <li>
* <p>
* <code>60</code> (one minute)</p>
* </li>
* <li>
* <p>
* <code>300</code> (five minutes)</p>
* </li>
* <li>
* <p>
* <code>3600</code> (one hour)</p>
* </li>
* <li>
* <p>
* <code>86400</code> (twenty-four hours)</p>
* </li>
* </ul>
* <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data
* points in the response.</p>
*/
PeriodInSeconds?: number;
/**