import { EncryptionStatus, EncryptionType, InsightCategory, InsightState, RetrievalStatus, SamplingStrategyName, TimeRangeType, TraceFormatType, TraceSegmentDestination, TraceSegmentDestinationStatus, } from "./enums"; export interface Alias { Name?: string | undefined; Names?: string[] | undefined; Type?: string | undefined; } export type AnnotationValue = | AnnotationValue.BooleanValueMember | AnnotationValue.NumberValueMember | AnnotationValue.StringValueMember | AnnotationValue.$UnknownMember; export declare namespace AnnotationValue { interface NumberValueMember { NumberValue: number; BooleanValue?: never; StringValue?: never; $unknown?: never; } interface BooleanValueMember { NumberValue?: never; BooleanValue: boolean; StringValue?: never; $unknown?: never; } interface StringValueMember { NumberValue?: never; BooleanValue?: never; StringValue: string; $unknown?: never; } interface $UnknownMember { NumberValue?: never; BooleanValue?: never; StringValue?: never; $unknown: [string, any]; } interface Visitor { NumberValue: (value: number) => T; BooleanValue: (value: boolean) => T; StringValue: (value: string) => T; _: (name: string, value: any) => T; } } export interface ServiceId { Name?: string | undefined; Names?: string[] | undefined; AccountId?: string | undefined; Type?: string | undefined; } export interface ValueWithServiceIds { AnnotationValue?: AnnotationValue | undefined; ServiceIds?: ServiceId[] | undefined; } export interface AnomalousService { ServiceId?: ServiceId | undefined; } export interface AvailabilityZoneDetail { Name?: string | undefined; } export interface BatchGetTracesRequest { TraceIds: string[] | undefined; NextToken?: string | undefined; } export interface Segment { Id?: string | undefined; Document?: string | undefined; } export interface Trace { Id?: string | undefined; Duration?: number | undefined; LimitExceeded?: boolean | undefined; Segments?: Segment[] | undefined; } export interface BatchGetTracesResult { Traces?: Trace[] | undefined; UnprocessedTraceIds?: string[] | undefined; NextToken?: string | undefined; } export interface CancelTraceRetrievalRequest { RetrievalToken: string | undefined; } export interface CancelTraceRetrievalResult {} export interface InsightsConfiguration { InsightsEnabled?: boolean | undefined; NotificationsEnabled?: boolean | undefined; } export interface Tag { Key: string | undefined; Value: string | undefined; } export interface CreateGroupRequest { GroupName: string | undefined; FilterExpression?: string | undefined; InsightsConfiguration?: InsightsConfiguration | undefined; Tags?: Tag[] | undefined; } export interface Group { GroupName?: string | undefined; GroupARN?: string | undefined; FilterExpression?: string | undefined; InsightsConfiguration?: InsightsConfiguration | undefined; } export interface CreateGroupResult { Group?: Group | undefined; } export interface SamplingRateBoost { MaxRate: number | undefined; CooldownWindowMinutes: number | undefined; } export interface SamplingRule { RuleName?: string | undefined; RuleARN?: string | undefined; ResourceARN: string | undefined; Priority: number | undefined; FixedRate: number | undefined; ReservoirSize: number | undefined; ServiceName: string | undefined; ServiceType: string | undefined; Host: string | undefined; HTTPMethod: string | undefined; URLPath: string | undefined; Version: number | undefined; Attributes?: Record | undefined; SamplingRateBoost?: SamplingRateBoost | undefined; } export interface CreateSamplingRuleRequest { SamplingRule: SamplingRule | undefined; Tags?: Tag[] | undefined; } export interface SamplingRuleRecord { SamplingRule?: SamplingRule | undefined; CreatedAt?: Date | undefined; ModifiedAt?: Date | undefined; } export interface CreateSamplingRuleResult { SamplingRuleRecord?: SamplingRuleRecord | undefined; } export interface DeleteGroupRequest { GroupName?: string | undefined; GroupARN?: string | undefined; } export interface DeleteGroupResult {} export interface DeleteResourcePolicyRequest { PolicyName: string | undefined; PolicyRevisionId?: string | undefined; } export interface DeleteResourcePolicyResult {} export interface DeleteSamplingRuleRequest { RuleName?: string | undefined; RuleARN?: string | undefined; } export interface DeleteSamplingRuleResult { SamplingRuleRecord?: SamplingRuleRecord | undefined; } export interface GetEncryptionConfigRequest {} export interface EncryptionConfig { KeyId?: string | undefined; Status?: EncryptionStatus | undefined; Type?: EncryptionType | undefined; } export interface GetEncryptionConfigResult { EncryptionConfig?: EncryptionConfig | undefined; } export interface GetGroupRequest { GroupName?: string | undefined; GroupARN?: string | undefined; } export interface GetGroupResult { Group?: Group | undefined; } export interface GetGroupsRequest { NextToken?: string | undefined; } export interface GroupSummary { GroupName?: string | undefined; GroupARN?: string | undefined; FilterExpression?: string | undefined; InsightsConfiguration?: InsightsConfiguration | undefined; } export interface GetGroupsResult { Groups?: GroupSummary[] | undefined; NextToken?: string | undefined; } export interface GetIndexingRulesRequest { NextToken?: string | undefined; } export interface ProbabilisticRuleValue { DesiredSamplingPercentage: number | undefined; ActualSamplingPercentage?: number | undefined; } export type IndexingRuleValue = | IndexingRuleValue.ProbabilisticMember | IndexingRuleValue.$UnknownMember; export declare namespace IndexingRuleValue { interface ProbabilisticMember { Probabilistic: ProbabilisticRuleValue; $unknown?: never; } interface $UnknownMember { Probabilistic?: never; $unknown: [string, any]; } interface Visitor { Probabilistic: (value: ProbabilisticRuleValue) => T; _: (name: string, value: any) => T; } } export interface IndexingRule { Name?: string | undefined; ModifiedAt?: Date | undefined; Rule?: IndexingRuleValue | undefined; } export interface GetIndexingRulesResult { IndexingRules?: IndexingRule[] | undefined; NextToken?: string | undefined; } export interface GetInsightRequest { InsightId: string | undefined; } export interface RequestImpactStatistics { FaultCount?: number | undefined; OkCount?: number | undefined; TotalCount?: number | undefined; } export interface Insight { InsightId?: string | undefined; GroupARN?: string | undefined; GroupName?: string | undefined; RootCauseServiceId?: ServiceId | undefined; Categories?: InsightCategory[] | undefined; State?: InsightState | undefined; StartTime?: Date | undefined; EndTime?: Date | undefined; Summary?: string | undefined; ClientRequestImpactStatistics?: RequestImpactStatistics | undefined; RootCauseServiceRequestImpactStatistics?: RequestImpactStatistics | undefined; TopAnomalousServices?: AnomalousService[] | undefined; } export interface GetInsightResult { Insight?: Insight | undefined; } export interface GetInsightEventsRequest { InsightId: string | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface InsightEvent { Summary?: string | undefined; EventTime?: Date | undefined; ClientRequestImpactStatistics?: RequestImpactStatistics | undefined; RootCauseServiceRequestImpactStatistics?: RequestImpactStatistics | undefined; TopAnomalousServices?: AnomalousService[] | undefined; } export interface GetInsightEventsResult { InsightEvents?: InsightEvent[] | undefined; NextToken?: string | undefined; } export interface GetInsightImpactGraphRequest { InsightId: string | undefined; StartTime: Date | undefined; EndTime: Date | undefined; NextToken?: string | undefined; } export interface InsightImpactGraphEdge { ReferenceId?: number | undefined; } export interface InsightImpactGraphService { ReferenceId?: number | undefined; Type?: string | undefined; Name?: string | undefined; Names?: string[] | undefined; AccountId?: string | undefined; Edges?: InsightImpactGraphEdge[] | undefined; } export interface GetInsightImpactGraphResult { InsightId?: string | undefined; StartTime?: Date | undefined; EndTime?: Date | undefined; ServiceGraphStartTime?: Date | undefined; ServiceGraphEndTime?: Date | undefined; Services?: InsightImpactGraphService[] | undefined; NextToken?: string | undefined; } export interface GetInsightSummariesRequest { States?: InsightState[] | undefined; GroupARN?: string | undefined; GroupName?: string | undefined; StartTime: Date | undefined; EndTime: Date | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface InsightSummary { InsightId?: string | undefined; GroupARN?: string | undefined; GroupName?: string | undefined; RootCauseServiceId?: ServiceId | undefined; Categories?: InsightCategory[] | undefined; State?: InsightState | undefined; StartTime?: Date | undefined; EndTime?: Date | undefined; Summary?: string | undefined; ClientRequestImpactStatistics?: RequestImpactStatistics | undefined; RootCauseServiceRequestImpactStatistics?: RequestImpactStatistics | undefined; TopAnomalousServices?: AnomalousService[] | undefined; LastUpdateTime?: Date | undefined; } export interface GetInsightSummariesResult { InsightSummaries?: InsightSummary[] | undefined; NextToken?: string | undefined; } export interface GetRetrievedTracesGraphRequest { RetrievalToken: string | undefined; NextToken?: string | undefined; } export interface GraphLink { ReferenceType?: string | undefined; SourceTraceId?: string | undefined; DestinationTraceIds?: string[] | undefined; } export interface HistogramEntry { Value?: number | undefined; Count?: number | undefined; } export interface ErrorStatistics { ThrottleCount?: number | undefined; OtherCount?: number | undefined; TotalCount?: number | undefined; } export interface FaultStatistics { OtherCount?: number | undefined; TotalCount?: number | undefined; } export interface EdgeStatistics { OkCount?: number | undefined; ErrorStatistics?: ErrorStatistics | undefined; FaultStatistics?: FaultStatistics | undefined; TotalCount?: number | undefined; TotalResponseTime?: number | undefined; } export interface Edge { ReferenceId?: number | undefined; StartTime?: Date | undefined; EndTime?: Date | undefined; SummaryStatistics?: EdgeStatistics | undefined; ResponseTimeHistogram?: HistogramEntry[] | undefined; Aliases?: Alias[] | undefined; EdgeType?: string | undefined; ReceivedEventAgeHistogram?: HistogramEntry[] | undefined; } export interface ServiceStatistics { OkCount?: number | undefined; ErrorStatistics?: ErrorStatistics | undefined; FaultStatistics?: FaultStatistics | undefined; TotalCount?: number | undefined; TotalResponseTime?: number | undefined; } export interface Service { ReferenceId?: number | undefined; Name?: string | undefined; Names?: string[] | undefined; Root?: boolean | undefined; AccountId?: string | undefined; Type?: string | undefined; State?: string | undefined; StartTime?: Date | undefined; EndTime?: Date | undefined; Edges?: Edge[] | undefined; SummaryStatistics?: ServiceStatistics | undefined; DurationHistogram?: HistogramEntry[] | undefined; ResponseTimeHistogram?: HistogramEntry[] | undefined; } export interface RetrievedService { Service?: Service | undefined; Links?: GraphLink[] | undefined; } export interface GetRetrievedTracesGraphResult { RetrievalStatus?: RetrievalStatus | undefined; Services?: RetrievedService[] | undefined; NextToken?: string | undefined; } export interface GetSamplingRulesRequest { NextToken?: string | undefined; } export interface GetSamplingRulesResult { SamplingRuleRecords?: SamplingRuleRecord[] | undefined; NextToken?: string | undefined; } export interface GetSamplingStatisticSummariesRequest { NextToken?: string | undefined; } export interface SamplingStatisticSummary { RuleName?: string | undefined; Timestamp?: Date | undefined; RequestCount?: number | undefined; BorrowCount?: number | undefined; SampledCount?: number | undefined; } export interface GetSamplingStatisticSummariesResult { SamplingStatisticSummaries?: SamplingStatisticSummary[] | undefined; NextToken?: string | undefined; } export interface SamplingBoostStatisticsDocument { RuleName: string | undefined; ServiceName: string | undefined; Timestamp: Date | undefined; AnomalyCount: number | undefined; TotalCount: number | undefined; SampledAnomalyCount: number | undefined; } export interface SamplingStatisticsDocument { RuleName: string | undefined; ClientID: string | undefined; Timestamp: Date | undefined; RequestCount: number | undefined; SampledCount: number | undefined; BorrowCount?: number | undefined; } export interface GetSamplingTargetsRequest { SamplingStatisticsDocuments: SamplingStatisticsDocument[] | undefined; SamplingBoostStatisticsDocuments?: | SamplingBoostStatisticsDocument[] | undefined; } export interface SamplingBoost { BoostRate: number | undefined; BoostRateTTL: Date | undefined; } export interface SamplingTargetDocument { RuleName?: string | undefined; FixedRate?: number | undefined; ReservoirQuota?: number | undefined; ReservoirQuotaTTL?: Date | undefined; Interval?: number | undefined; SamplingBoost?: SamplingBoost | undefined; } export interface UnprocessedStatistics { RuleName?: string | undefined; ErrorCode?: string | undefined; Message?: string | undefined; } export interface GetSamplingTargetsResult { SamplingTargetDocuments?: SamplingTargetDocument[] | undefined; LastRuleModification?: Date | undefined; UnprocessedStatistics?: UnprocessedStatistics[] | undefined; UnprocessedBoostStatistics?: UnprocessedStatistics[] | undefined; } export interface GetServiceGraphRequest { StartTime: Date | undefined; EndTime: Date | undefined; GroupName?: string | undefined; GroupARN?: string | undefined; NextToken?: string | undefined; } export interface GetServiceGraphResult { StartTime?: Date | undefined; EndTime?: Date | undefined; Services?: Service[] | undefined; ContainsOldGroupVersions?: boolean | undefined; NextToken?: string | undefined; } export interface GetTimeSeriesServiceStatisticsRequest { StartTime: Date | undefined; EndTime: Date | undefined; GroupName?: string | undefined; GroupARN?: string | undefined; EntitySelectorExpression?: string | undefined; Period?: number | undefined; ForecastStatistics?: boolean | undefined; NextToken?: string | undefined; } export interface ForecastStatistics { FaultCountHigh?: number | undefined; FaultCountLow?: number | undefined; } export interface TimeSeriesServiceStatistics { Timestamp?: Date | undefined; EdgeSummaryStatistics?: EdgeStatistics | undefined; ServiceSummaryStatistics?: ServiceStatistics | undefined; ServiceForecastStatistics?: ForecastStatistics | undefined; ResponseTimeHistogram?: HistogramEntry[] | undefined; } export interface GetTimeSeriesServiceStatisticsResult { TimeSeriesServiceStatistics?: TimeSeriesServiceStatistics[] | undefined; ContainsOldGroupVersions?: boolean | undefined; NextToken?: string | undefined; } export interface GetTraceGraphRequest { TraceIds: string[] | undefined; NextToken?: string | undefined; } export interface GetTraceGraphResult { Services?: Service[] | undefined; NextToken?: string | undefined; } export interface GetTraceSegmentDestinationRequest {} export interface GetTraceSegmentDestinationResult { Destination?: TraceSegmentDestination | undefined; Status?: TraceSegmentDestinationStatus | undefined; } export interface SamplingStrategy { Name?: SamplingStrategyName | undefined; Value?: number | undefined; } export interface GetTraceSummariesRequest { StartTime: Date | undefined; EndTime: Date | undefined; TimeRangeType?: TimeRangeType | undefined; Sampling?: boolean | undefined; SamplingStrategy?: SamplingStrategy | undefined; FilterExpression?: string | undefined; NextToken?: string | undefined; } export interface RootCauseException { Name?: string | undefined; Message?: string | undefined; } export interface ErrorRootCauseEntity { Name?: string | undefined; Exceptions?: RootCauseException[] | undefined; Remote?: boolean | undefined; } export interface ErrorRootCauseService { Name?: string | undefined; Names?: string[] | undefined; Type?: string | undefined; AccountId?: string | undefined; EntityPath?: ErrorRootCauseEntity[] | undefined; Inferred?: boolean | undefined; } export interface ErrorRootCause { Services?: ErrorRootCauseService[] | undefined; ClientImpacting?: boolean | undefined; } export interface FaultRootCauseEntity { Name?: string | undefined; Exceptions?: RootCauseException[] | undefined; Remote?: boolean | undefined; } export interface FaultRootCauseService { Name?: string | undefined; Names?: string[] | undefined; Type?: string | undefined; AccountId?: string | undefined; EntityPath?: FaultRootCauseEntity[] | undefined; Inferred?: boolean | undefined; } export interface FaultRootCause { Services?: FaultRootCauseService[] | undefined; ClientImpacting?: boolean | undefined; } export interface Http { HttpURL?: string | undefined; HttpStatus?: number | undefined; HttpMethod?: string | undefined; UserAgent?: string | undefined; ClientIp?: string | undefined; } export interface InstanceIdDetail { Id?: string | undefined; } export interface ResourceARNDetail { ARN?: string | undefined; } export interface ResponseTimeRootCauseEntity { Name?: string | undefined; Coverage?: number | undefined; Remote?: boolean | undefined; } export interface ResponseTimeRootCauseService { Name?: string | undefined; Names?: string[] | undefined; Type?: string | undefined; AccountId?: string | undefined; EntityPath?: ResponseTimeRootCauseEntity[] | undefined; Inferred?: boolean | undefined; } export interface ResponseTimeRootCause { Services?: ResponseTimeRootCauseService[] | undefined; ClientImpacting?: boolean | undefined; } export interface TraceUser { UserName?: string | undefined; ServiceIds?: ServiceId[] | undefined; } export interface TraceSummary { Id?: string | undefined; StartTime?: Date | undefined; Duration?: number | undefined; ResponseTime?: number | undefined; HasFault?: boolean | undefined; HasError?: boolean | undefined; HasThrottle?: boolean | undefined; IsPartial?: boolean | undefined; Http?: Http | undefined; Annotations?: Record | undefined; Users?: TraceUser[] | undefined; ServiceIds?: ServiceId[] | undefined; ResourceARNs?: ResourceARNDetail[] | undefined; InstanceIds?: InstanceIdDetail[] | undefined; AvailabilityZones?: AvailabilityZoneDetail[] | undefined; EntryPoint?: ServiceId | undefined; FaultRootCauses?: FaultRootCause[] | undefined; ErrorRootCauses?: ErrorRootCause[] | undefined; ResponseTimeRootCauses?: ResponseTimeRootCause[] | undefined; Revision?: number | undefined; MatchedEventTime?: Date | undefined; } export interface GetTraceSummariesResult { TraceSummaries?: TraceSummary[] | undefined; ApproximateTime?: Date | undefined; TracesProcessedCount?: number | undefined; NextToken?: string | undefined; } export interface ListResourcePoliciesRequest { NextToken?: string | undefined; } export interface ResourcePolicy { PolicyName?: string | undefined; PolicyDocument?: string | undefined; PolicyRevisionId?: string | undefined; LastUpdatedTime?: Date | undefined; } export interface ListResourcePoliciesResult { ResourcePolicies?: ResourcePolicy[] | undefined; NextToken?: string | undefined; } export interface ListRetrievedTracesRequest { RetrievalToken: string | undefined; TraceFormat?: TraceFormatType | undefined; NextToken?: string | undefined; } export interface Span { Id?: string | undefined; Document?: string | undefined; } export interface RetrievedTrace { Id?: string | undefined; Duration?: number | undefined; Spans?: Span[] | undefined; } export interface ListRetrievedTracesResult { RetrievalStatus?: RetrievalStatus | undefined; TraceFormat?: TraceFormatType | undefined; Traces?: RetrievedTrace[] | undefined; NextToken?: string | undefined; } export interface ListTagsForResourceRequest { ResourceARN: string | undefined; NextToken?: string | undefined; } export interface ListTagsForResourceResponse { Tags?: Tag[] | undefined; NextToken?: string | undefined; } export interface PutEncryptionConfigRequest { KeyId?: string | undefined; Type: EncryptionType | undefined; } export interface PutEncryptionConfigResult { EncryptionConfig?: EncryptionConfig | undefined; } export interface PutResourcePolicyRequest { PolicyName: string | undefined; PolicyDocument: string | undefined; PolicyRevisionId?: string | undefined; BypassPolicyLockoutCheck?: boolean | undefined; } export interface PutResourcePolicyResult { ResourcePolicy?: ResourcePolicy | undefined; } export interface BackendConnectionErrors { TimeoutCount?: number | undefined; ConnectionRefusedCount?: number | undefined; HTTPCode4XXCount?: number | undefined; HTTPCode5XXCount?: number | undefined; UnknownHostCount?: number | undefined; OtherCount?: number | undefined; } export interface TelemetryRecord { Timestamp: Date | undefined; SegmentsReceivedCount?: number | undefined; SegmentsSentCount?: number | undefined; SegmentsSpilloverCount?: number | undefined; SegmentsRejectedCount?: number | undefined; BackendConnectionErrors?: BackendConnectionErrors | undefined; } export interface PutTelemetryRecordsRequest { TelemetryRecords: TelemetryRecord[] | undefined; EC2InstanceId?: string | undefined; Hostname?: string | undefined; ResourceARN?: string | undefined; } export interface PutTelemetryRecordsResult {} export interface PutTraceSegmentsRequest { TraceSegmentDocuments: string[] | undefined; } export interface UnprocessedTraceSegment { Id?: string | undefined; ErrorCode?: string | undefined; Message?: string | undefined; } export interface PutTraceSegmentsResult { UnprocessedTraceSegments?: UnprocessedTraceSegment[] | undefined; } export interface StartTraceRetrievalRequest { TraceIds: string[] | undefined; StartTime: Date | undefined; EndTime: Date | undefined; } export interface StartTraceRetrievalResult { RetrievalToken?: string | undefined; } export interface TagResourceRequest { ResourceARN: string | undefined; Tags: Tag[] | undefined; } export interface TagResourceResponse {} export interface UntagResourceRequest { ResourceARN: string | undefined; TagKeys: string[] | undefined; } export interface UntagResourceResponse {} export interface UpdateGroupRequest { GroupName?: string | undefined; GroupARN?: string | undefined; FilterExpression?: string | undefined; InsightsConfiguration?: InsightsConfiguration | undefined; } export interface UpdateGroupResult { Group?: Group | undefined; } export interface ProbabilisticRuleValueUpdate { DesiredSamplingPercentage: number | undefined; } export type IndexingRuleValueUpdate = | IndexingRuleValueUpdate.ProbabilisticMember | IndexingRuleValueUpdate.$UnknownMember; export declare namespace IndexingRuleValueUpdate { interface ProbabilisticMember { Probabilistic: ProbabilisticRuleValueUpdate; $unknown?: never; } interface $UnknownMember { Probabilistic?: never; $unknown: [string, any]; } interface Visitor { Probabilistic: (value: ProbabilisticRuleValueUpdate) => T; _: (name: string, value: any) => T; } } export interface UpdateIndexingRuleRequest { Name: string | undefined; Rule: IndexingRuleValueUpdate | undefined; } export interface UpdateIndexingRuleResult { IndexingRule?: IndexingRule | undefined; } export interface SamplingRuleUpdate { RuleName?: string | undefined; RuleARN?: string | undefined; ResourceARN?: string | undefined; Priority?: number | undefined; FixedRate?: number | undefined; ReservoirSize?: number | undefined; Host?: string | undefined; ServiceName?: string | undefined; ServiceType?: string | undefined; HTTPMethod?: string | undefined; URLPath?: string | undefined; Attributes?: Record | undefined; SamplingRateBoost?: SamplingRateBoost | undefined; } export interface UpdateSamplingRuleRequest { SamplingRuleUpdate: SamplingRuleUpdate | undefined; } export interface UpdateSamplingRuleResult { SamplingRuleRecord?: SamplingRuleRecord | undefined; } export interface UpdateTraceSegmentDestinationRequest { Destination?: TraceSegmentDestination | undefined; } export interface UpdateTraceSegmentDestinationResult { Destination?: TraceSegmentDestination | undefined; Status?: TraceSegmentDestinationStatus | undefined; }