/
models_0.ts
2309 lines (2109 loc) · 71.3 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 { CodeGuruProfilerServiceException as __BaseException } from "./CodeGuruProfilerServiceException";
/**
* @public
* @enum
*/
export const ActionGroup = {
/**
* Permission group type for Agent APIs - ConfigureAgent, PostAgentProfile
*/
AGENT_PERMISSIONS: "agentPermissions",
} as const;
/**
* @public
*/
export type ActionGroup = (typeof ActionGroup)[keyof typeof ActionGroup];
/**
* @public
* @enum
*/
export const EventPublisher = {
/**
* Notifications for Anomaly Detection
*/
ANOMALY_DETECTION: "AnomalyDetection",
} as const;
/**
* @public
*/
export type EventPublisher = (typeof EventPublisher)[keyof typeof EventPublisher];
/**
* @public
* <p>Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.</p>
*/
export interface Channel {
/**
* <p>Unique identifier for each <code>Channel</code> in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.</p>
*/
id?: string;
/**
* <p>Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.</p>
*/
uri: string | undefined;
/**
* <p>List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.</p>
*/
eventPublishers: (EventPublisher | string)[] | undefined;
}
/**
* @public
* <p>The structure representing the AddNotificationChannelsRequest.</p>
*/
export interface AddNotificationChannelsRequest {
/**
* <p>The name of the profiling group that we are setting up notifications for.</p>
*/
profilingGroupName: string | undefined;
/**
* <p>One or 2 channels to report to when anomalies are detected.</p>
*/
channels: Channel[] | undefined;
}
/**
* @public
* <p>The configuration for notifications stored for each profiling group. This includes up to
* to two channels and a list of event publishers associated with each channel.</p>
*/
export interface NotificationConfiguration {
/**
* <p>List of up to two channels to be used for sending notifications for events detected from
* the application profile.</p>
*/
channels?: Channel[];
}
/**
* @public
* <p>The structure representing the AddNotificationChannelsResponse.</p>
*/
export interface AddNotificationChannelsResponse {
/**
* <p>The new notification configuration for this profiling group.</p>
*/
notificationConfiguration?: NotificationConfiguration;
}
/**
* @public
* <p>The requested operation would cause a conflict with the current state
* of a service resource associated with the request. Resolve the conflict
* before retrying this request.
* </p>
*/
export class ConflictException extends __BaseException {
readonly name: "ConflictException" = "ConflictException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>) {
super({
name: "ConflictException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConflictException.prototype);
}
}
/**
* @public
* <p>The server encountered an internal error and is unable to complete the request.</p>
*/
export class InternalServerException extends __BaseException {
readonly name: "InternalServerException" = "InternalServerException";
readonly $fault: "server" = "server";
$retryable = {};
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>) {
super({
name: "InternalServerException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalServerException.prototype);
}
}
/**
* @public
* <p>The resource specified in the request does not exist.</p>
*/
export class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
/**
* @public
* <p>You have exceeded your service quota. To perform the requested action,
* remove some of the relevant resources, or use <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a> to request a
* service quota increase.
* </p>
*/
export class ServiceQuotaExceededException extends __BaseException {
readonly name: "ServiceQuotaExceededException" = "ServiceQuotaExceededException";
readonly $fault: "client" = "client";
$retryable = {};
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>) {
super({
name: "ServiceQuotaExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
}
}
/**
* @public
* <p>The request was denied due to request throttling.</p>
*/
export class ThrottlingException extends __BaseException {
readonly name: "ThrottlingException" = "ThrottlingException";
readonly $fault: "client" = "client";
$retryable = {};
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
super({
name: "ThrottlingException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ThrottlingException.prototype);
}
}
/**
* @public
* <p>The parameter is not valid.</p>
*/
export class ValidationException extends __BaseException {
readonly name: "ValidationException" = "ValidationException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>) {
super({
name: "ValidationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ValidationException.prototype);
}
}
/**
* @public
* @enum
*/
export const AgentParameterField = {
/**
* Maximum stack depth to be captured by the CodeGuru Profiler.
*/
MAX_STACK_DEPTH: "MaxStackDepth",
/**
* Percentage of memory to be used by CodeGuru profiler. Minimum of 30MB is required for the agent.
*/
MEMORY_USAGE_LIMIT_PERCENT: "MemoryUsageLimitPercent",
/**
* Minimum time in milliseconds between sending reports.
*/
MINIMUM_TIME_FOR_REPORTING_IN_MILLISECONDS: "MinimumTimeForReportingInMilliseconds",
/**
* Reporting interval in milliseconds used to report profiles.
*/
REPORTING_INTERVAL_IN_MILLISECONDS: "ReportingIntervalInMilliseconds",
/**
* Sampling interval in milliseconds used to sample profiles.
*/
SAMPLING_INTERVAL_IN_MILLISECONDS: "SamplingIntervalInMilliseconds",
} as const;
/**
* @public
*/
export type AgentParameterField = (typeof AgentParameterField)[keyof typeof AgentParameterField];
/**
* @public
* <p>
* The response of <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
* <code>ConfigureAgent</code>
* </a> that
* specifies if an agent profiles or not and for how long to return profiling data.
* </p>
*/
export interface AgentConfiguration {
/**
* <p>
* A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to <code>true</code>
* to enable profiling.
* </p>
*/
shouldProfile: boolean | undefined;
/**
* <p>
* How long a profiling agent should send profiling data using
* <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
* <code>ConfigureAgent</code>
* </a>.
* For example, if this is set to 300, the profiling agent calls <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
* <code>ConfigureAgent</code>
* </a>
* every 5 minutes to submit the profiled data collected during that period.
* </p>
*/
periodInSeconds: number | undefined;
/**
* <p>
* Parameters used by the profiler. The valid parameters are:
* </p>
* <ul>
* <li>
* <p>
* <code>MaxStackDepth</code> - The maximum depth of the stacks in the code that is represented in
* the profile. For example, if CodeGuru Profiler finds a method <code>A</code>,
* which calls method <code>B</code>, which calls method <code>C</code>, which
* calls method <code>D</code>, then the depth is 4. If the <code>maxDepth</code> is
* set to 2, then the profiler evaluates <code>A</code> and <code>B</code>.
* </p>
* </li>
* <li>
* <p>
* <code>MemoryUsageLimitPercent</code> - The percentage of memory that is used by the
* profiler.</p>
* </li>
* <li>
* <p>
* <code>MinimumTimeForReportingInMilliseconds</code> - The minimum time in milliseconds between
* sending reports.
* </p>
* </li>
* <li>
* <p>
* <code>ReportingIntervalInMilliseconds</code> - The reporting interval in milliseconds used
* to report profiles.
* </p>
* </li>
* <li>
* <p>
* <code>SamplingIntervalInMilliseconds</code> - The sampling interval in milliseconds that is used to
* profile samples.
* </p>
* </li>
* </ul>
*/
agentParameters?: Record<string, string>;
}
/**
* @public
* <p>
* Specifies whether profiling is enabled or disabled for a profiling group. It
* is used by <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
* <code>ConfigureAgent</code>
* </a>
* to enable or disable profiling for a profiling group.
* </p>
*/
export interface AgentOrchestrationConfig {
/**
* <p>
* A <code>Boolean</code> that specifies whether the profiling agent collects profiling data or not. Set to <code>true</code>
* to enable profiling.
* </p>
*/
profilingEnabled: boolean | undefined;
}
/**
* @public
* @enum
*/
export const AggregationPeriod = {
/**
* Period of one day.
*/
P1D: "P1D",
/**
* Period of one hour.
*/
PT1H: "PT1H",
/**
* Period of five minutes.
*/
PT5M: "PT5M",
} as const;
/**
* @public
*/
export type AggregationPeriod = (typeof AggregationPeriod)[keyof typeof AggregationPeriod];
/**
* @public
* <p>
* Specifies the aggregation period and aggregation start time for
* an aggregated profile. An aggregated profile is used to collect posted agent profiles
* during an aggregation period. There are three possible aggregation periods (1 day,
* 1 hour, or 5 minutes).
* </p>
*/
export interface AggregatedProfileTime {
/**
* <p>
* The time that aggregation of posted agent profiles for a profiling group starts. The aggregation profile
* contains profiles posted by the agent starting at this time for an aggregation period
* specified by the <code>period</code> property of the <code>AggregatedProfileTime</code>
* object.
* </p>
* <p>
* Specify <code>start</code> using the ISO 8601 format. For example,
* 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
start?: Date;
/**
* <p>
* The aggregation period. This indicates the period during which an aggregation profile
* collects posted agent profiles for a profiling group. Use one of three valid
* durations that are specified using the ISO 8601 format.
* </p>
* <ul>
* <li>
* <p>
* <code>P1D</code> — 1 day
* </p>
* </li>
* <li>
* <p>
* <code>PT1H</code> — 1 hour
* </p>
* </li>
* <li>
* <p>
* <code>PT5M</code> — 5 minutes
* </p>
* </li>
* </ul>
*/
period?: AggregationPeriod | string;
}
/**
* @public
* @enum
*/
export const FeedbackType = {
/**
* Profiler recommendation flagged as not useful.
*/
Negative: "Negative",
/**
* Profiler recommendation flagged as useful.
*/
Positive: "Positive",
} as const;
/**
* @public
*/
export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType];
/**
* @public
* <p>Feedback that can be submitted for each instance of an anomaly by the user.
* Feedback is be used for improvements in generating recommendations for the application.</p>
*/
export interface UserFeedback {
/**
* <p>Optional <code>Positive</code> or <code>Negative</code> feedback submitted by
* the user about whether the recommendation is useful or not.</p>
*/
type: FeedbackType | string | undefined;
}
/**
* @public
* <p>The specific duration in which the metric is flagged as anomalous.</p>
*/
export interface AnomalyInstance {
/**
* <p>
* The universally unique identifier (UUID) of an instance of an anomaly in a metric.
* </p>
*/
id: string | undefined;
/**
* <p>
* The start time of the period during which the metric is flagged as anomalous.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
startTime: Date | undefined;
/**
* <p>
* The end time of the period during which the metric is flagged as anomalous.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
endTime?: Date;
/**
* <p>Feedback type on a specific instance of anomaly submitted by the user.</p>
*/
userFeedback?: UserFeedback;
}
/**
* @public
* @enum
*/
export const MetricType = {
/**
* Metric value aggregated for all instances of a frame name in a profile relative to the root frame.
*/
AggregatedRelativeTotalTime: "AggregatedRelativeTotalTime",
} as const;
/**
* @public
*/
export type MetricType = (typeof MetricType)[keyof typeof MetricType];
/**
* @public
* <p>
* Details about the metric that the analysis used when it detected the anomaly.
* The metric what is analyzed to create recommendations. It includes the name of the
* frame that was analyzed and the type and thread states used to derive the metric
* value for that frame.
* </p>
*/
export interface Metric {
/**
* <p>
* The name of the method that appears as a frame in any stack in a profile.
* </p>
*/
frameName: string | undefined;
/**
* <p>
* A type that specifies how a metric for a frame is analyzed.
* The supported value <code>AggregatedRelativeTotalTime</code> is an
* aggregation of the metric value for one frame that is calculated across the
* occurences of all frames in a profile.</p>
*/
type: MetricType | string | undefined;
/**
* <p>
* The list of application runtime thread states that is used to calculate the
* metric value for the frame.
* </p>
*/
threadStates: string[] | undefined;
}
/**
* @public
* <p>
* Details about an anomaly in a specific metric of application profile. The anomaly is detected using
* analysis of the metric data over a period of time.
* </p>
*/
export interface Anomaly {
/**
* <p>
* Details about the metric that the analysis used when it detected the anomaly.
* The metric includes the name of the frame that was analyzed with the type and
* thread states used to derive the metric value for that frame.
* </p>
*/
metric: Metric | undefined;
/**
* <p>The reason for which metric was flagged as anomalous.</p>
*/
reason: string | undefined;
/**
* <p>
* A list of the instances of the detected anomalies during the requested period.
* </p>
*/
instances: AnomalyInstance[] | undefined;
}
/**
* @public
* <p>
* The frame name, metric type, and thread states. These are used
* to derive the value of the metric for the frame.</p>
*/
export interface FrameMetric {
/**
* <p> Name of the method common across the multiple occurrences of a frame in an application
* profile.</p>
*/
frameName: string | undefined;
/**
* <p> A type of aggregation that specifies how a metric for a frame is analyzed. The
* supported value <code>AggregatedRelativeTotalTime</code> is an aggregation of the metric
* value for one frame that is calculated across the occurrences of all frames in a profile. </p>
*/
type: MetricType | string | undefined;
/**
* <p>List of application runtime thread states used to get the counts for a frame a derive a metric value.</p>
*/
threadStates: string[] | undefined;
}
/**
* @public
* <p>The structure representing the BatchGetFrameMetricDataRequest.</p>
*/
export interface BatchGetFrameMetricDataRequest {
/**
* <p>
* The name of the profiling group associated with the
* the frame metrics used to return the time series values.
* </p>
*/
profilingGroupName: string | undefined;
/**
* <p>
* The start time of the time period for the frame metrics used to return the time series values.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
startTime?: Date;
/**
* <p>
* The end time of the time period for the returned time series values.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
endTime?: Date;
/**
* <p>
* The duration of the frame metrics used to return the time series values.
* Specify using the ISO 8601 format. The maximum period duration
* is one day (<code>PT24H</code> or <code>P1D</code>).
* </p>
*/
period?: string;
/**
* <p>The requested resolution of time steps for the returned time series of values.
* If the requested target resolution is not available due to data not being retained we provide a best effort
* result by falling back to the most granular available resolution after the target resolution.
* There are 3 valid values.
* </p>
* <ul>
* <li>
* <p>
* <code>P1D</code> — 1 day
* </p>
* </li>
* <li>
* <p>
* <code>PT1H</code> — 1 hour
* </p>
* </li>
* <li>
* <p>
* <code>PT5M</code> — 5 minutes
* </p>
* </li>
* </ul>
*/
targetResolution?: AggregationPeriod | string;
/**
* <p>
* The details of the metrics that are used to request a time series of values. The metric includes
* the name of the frame, the aggregation type to calculate the metric value for the
* frame, and the thread states to use to get the count for the metric value of the frame.</p>
*/
frameMetrics?: FrameMetric[];
}
/**
* @public
* <p>
* A data type that contains a <code>Timestamp</code> object. This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
export interface TimestampStructure {
/**
* <p>
* A <code>Timestamp</code>. This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
value: Date | undefined;
}
/**
* @public
* <p>
* Information about a frame metric and its values.
* </p>
*/
export interface FrameMetricDatum {
/**
* <p>
* The frame name, metric type, and thread states. These are used
* to derive the value of the metric for the frame.</p>
*/
frameMetric: FrameMetric | undefined;
/**
* <p>
* A list of values that are associated with a frame metric.
* </p>
*/
values: number[] | undefined;
}
/**
* @public
* <p>The structure representing the BatchGetFrameMetricDataResponse.</p>
*/
export interface BatchGetFrameMetricDataResponse {
/**
* <p>
* The start time of the time period for the returned time series values.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
startTime: Date | undefined;
/**
* <p>
* The end time of the time period for the returned time series values.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
endTime: Date | undefined;
/**
* <p>Resolution or granularity of the profile data used to generate the time series.
* This is the value used to jump through time steps in a time series. There are 3 valid values.
* </p>
* <ul>
* <li>
* <p>
* <code>P1D</code> — 1 day
* </p>
* </li>
* <li>
* <p>
* <code>PT1H</code> — 1 hour
* </p>
* </li>
* <li>
* <p>
* <code>PT5M</code> — 5 minutes
* </p>
* </li>
* </ul>
*/
resolution: AggregationPeriod | string | undefined;
/**
* <p>
* List of instances, or time steps, in the time series. For example, if the
* <code>period</code> is one day (<code>PT24H)</code>), and the <code>resolution</code>
* is five minutes (<code>PT5M</code>), then there are 288 <code>endTimes</code> in the
* list that are each five minutes appart.
* </p>
*/
endTimes: TimestampStructure[] | undefined;
/**
* <p>List of instances which remained unprocessed. This will create a missing time step in the list of end times.</p>
*/
unprocessedEndTimes: Record<string, TimestampStructure[]> | undefined;
/**
* <p>Details of the metrics to request a time series of values. The metric includes
* the name of the frame, the aggregation type to calculate the metric value for the frame,
* and the thread states to use to get the count for the metric value of the frame.</p>
*/
frameMetricData: FrameMetricDatum[] | undefined;
}
/**
* @public
* <p>The structure representing the GetFindingsReportAccountSummaryRequest.</p>
*/
export interface GetFindingsReportAccountSummaryRequest {
/**
* <p>The <code>nextToken</code> value returned from a previous paginated <code>GetFindingsReportAccountSummary</code>
* request where <code>maxResults</code> was used and the results exceeded the value of that parameter.
* Pagination continues from the end of the previous results that returned the <code>nextToken</code> value.
* </p>
* <note>
* <p>This token should be treated as an opaque identifier that is only used to retrieve
* the next items in a list and not for other programmatic purposes.</p>
* </note>
*/
nextToken?: string;
/**
* <p>The maximum number of results returned by <code> GetFindingsReportAccountSummary</code> in paginated output.
* When this parameter is used, <code>GetFindingsReportAccountSummary</code> only returns <code>maxResults</code>
* results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial
* request can be seen by sending another <code>GetFindingsReportAccountSummary</code> request with the returned
* <code>nextToken</code> value.</p>
*/
maxResults?: number;
/**
* <p>A <code>Boolean</code> value indicating whether to only return reports from daily profiles. If set
* to <code>True</code>, only analysis data from daily profiles is returned. If set to <code>False</code>,
* analysis data is returned from smaller time windows (for example, one hour).</p>
*/
dailyReportsOnly?: boolean;
}
/**
* @public
* <p>
* Information about potential recommendations that might be created from the
* analysis of profiling data.
* </p>
*/
export interface FindingsReportSummary {
/**
* <p>The universally unique identifier (UUID) of the recommendation report.</p>
*/
id?: string;
/**
* <p>The name of the profiling group that is associated with the analysis data.</p>
*/
profilingGroupName?: string;
/**
* <p>The start time of the profile the analysis data is about.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.</p>
*/
profileStartTime?: Date;
/**
* <p>
* The end time of the period during which the metric is flagged as anomalous.
* This is specified
* using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1
* millisecond past June 1, 2020 1:15:02 PM UTC.
* </p>
*/
profileEndTime?: Date;
/**
* <p>The total number of different recommendations that were found by the analysis.</p>
*/
totalNumberOfFindings?: number;
}
/**
* @public
* <p>The structure representing the GetFindingsReportAccountSummaryResponse.</p>
*/
export interface GetFindingsReportAccountSummaryResponse {
/**
* <p>The return list of
* <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_FindingsReportSummary.html">
* <code>FindingsReportSummary</code>
* </a>
* objects taht contain summaries of analysis results for all profiling groups in your AWS account.</p>
*/
reportSummaries: FindingsReportSummary[] | undefined;
/**
* <p>The <code>nextToken</code> value to include in a future <code>GetFindingsReportAccountSummary</code> request.
* When the results of a <code>GetFindingsReportAccountSummary</code> request exceed <code>maxResults</code>, this
* value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more
* results to return.</p>
*/
nextToken?: string;
}
/**
* @public
*/
export interface ListTagsForResourceRequest {
/**
* <p>
* The Amazon Resource Name (ARN) of the resource that contains the tags to return.
* </p>
*/
resourceArn: string | undefined;
}
/**
* @public
*/
export interface ListTagsForResourceResponse {
/**
* <p>
* The list of tags assigned to the specified resource. This is the list of tags
* returned in the response.
* </p>
*/
tags?: Record<string, string>;
}
/**
* @public
* @enum
*/
export const MetadataField = {
/**
* Unique identifier for the agent instance.
*/
AGENT_ID: "AgentId",
/**
* AWS requestId of the Lambda invocation.
*/
AWS_REQUEST_ID: "AwsRequestId",
/**
* Compute platform on which agent is running.
*/
COMPUTE_PLATFORM: "ComputePlatform",
/**
* Execution environment on which Lambda function is running.
*/
EXECUTION_ENVIRONMENT: "ExecutionEnvironment",
/**
* Function ARN that's used to invoke the Lambda function.
*/
LAMBDA_FUNCTION_ARN: "LambdaFunctionArn",
/**
* Memory allocated for the Lambda function.
*/
LAMBDA_MEMORY_LIMIT_IN_MB: "LambdaMemoryLimitInMB",
/**
* Time in milliseconds for the previous Lambda invocation.
*/
LAMBDA_PREVIOUS_EXECUTION_TIME_IN_MILLISECONDS: "LambdaPreviousExecutionTimeInMilliseconds",
/**
* Time in milliseconds left before the execution times out.
*/
LAMBDA_REMAINING_TIME_IN_MILLISECONDS: "LambdaRemainingTimeInMilliseconds",
/**
* Time in milliseconds between two invocations of the Lambda function.
*/
LAMBDA_TIME_GAP_BETWEEN_INVOKES_IN_MILLISECONDS: "LambdaTimeGapBetweenInvokesInMilliseconds",
} as const;
/**
* @public
*/
export type MetadataField = (typeof MetadataField)[keyof typeof MetadataField];
/**
* @public
* <p>The structure representing the configureAgentRequest.</p>
*/
export interface ConfigureAgentRequest {
/**
* <p>
* The name of the profiling group for which the configured agent is collecting profiling data.
* </p>
*/
profilingGroupName: string | undefined;
/**
* <p> A universally unique identifier (UUID) for a profiling instance. For example, if the
* profiling instance is an Amazon EC2 instance, it is the instance ID. If it is an AWS
* Fargate container, it is the container's task ID. </p>
*/
fleetInstanceId?: string;
/**
* <p> Metadata captured about the compute platform the agent is running on. It includes
* information about sampling and reporting. The valid fields are:</p>
* <ul>
* <li>
* <p>
* <code>COMPUTE_PLATFORM</code> - The compute platform on which the agent is running
* </p>
* </li>
* <li>
* <p>
* <code>AGENT_ID</code> - The ID for an agent instance.
* </p>