import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; import { AppMonitorPlatform, CustomEventsStatus, DeobfuscationStatus, MetricDestination, StateEnum, Telemetry, } from "./enums"; export interface AppMonitorConfiguration { IdentityPoolId?: string | undefined; ExcludedPages?: string[] | undefined; IncludedPages?: string[] | undefined; FavoritePages?: string[] | undefined; SessionSampleRate?: number | undefined; GuestRoleArn?: string | undefined; AllowCookies?: boolean | undefined; Telemetries?: Telemetry[] | undefined; EnableXRay?: boolean | undefined; } export interface CustomEvents { Status?: CustomEventsStatus | undefined; } export interface CwLog { CwLogEnabled?: boolean | undefined; CwLogGroup?: string | undefined; } export interface DataStorage { CwLog?: CwLog | undefined; } export interface JavaScriptSourceMaps { Status: DeobfuscationStatus | undefined; S3Uri?: string | undefined; } export interface DeobfuscationConfiguration { JavaScriptSourceMaps?: JavaScriptSourceMaps | undefined; } export interface AppMonitor { Name?: string | undefined; Domain?: string | undefined; DomainList?: string[] | undefined; Id?: string | undefined; Created?: string | undefined; LastModified?: string | undefined; Tags?: Record | undefined; State?: StateEnum | undefined; AppMonitorConfiguration?: AppMonitorConfiguration | undefined; DataStorage?: DataStorage | undefined; CustomEvents?: CustomEvents | undefined; DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined; Platform?: AppMonitorPlatform | undefined; } export interface AppMonitorDetails { name?: string | undefined; id?: string | undefined; version?: string | undefined; } export interface MetricDefinitionRequest { Name: string | undefined; ValueKey?: string | undefined; UnitLabel?: string | undefined; DimensionKeys?: Record | undefined; EventPattern?: string | undefined; Namespace?: string | undefined; } export interface BatchCreateRumMetricDefinitionsRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; MetricDefinitions: MetricDefinitionRequest[] | undefined; } export interface BatchCreateRumMetricDefinitionsError { MetricDefinition: MetricDefinitionRequest | undefined; ErrorCode: string | undefined; ErrorMessage: string | undefined; } export interface MetricDefinition { MetricDefinitionId: string | undefined; Name: string | undefined; ValueKey?: string | undefined; UnitLabel?: string | undefined; DimensionKeys?: Record | undefined; EventPattern?: string | undefined; Namespace?: string | undefined; } export interface BatchCreateRumMetricDefinitionsResponse { Errors: BatchCreateRumMetricDefinitionsError[] | undefined; MetricDefinitions?: MetricDefinition[] | undefined; } export interface BatchDeleteRumMetricDefinitionsRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; MetricDefinitionIds: string[] | undefined; } export interface BatchDeleteRumMetricDefinitionsError { MetricDefinitionId: string | undefined; ErrorCode: string | undefined; ErrorMessage: string | undefined; } export interface BatchDeleteRumMetricDefinitionsResponse { Errors: BatchDeleteRumMetricDefinitionsError[] | undefined; MetricDefinitionIds?: string[] | undefined; } export interface BatchGetRumMetricDefinitionsRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface BatchGetRumMetricDefinitionsResponse { MetricDefinitions?: MetricDefinition[] | undefined; NextToken?: string | undefined; } export interface CreateAppMonitorRequest { Name: string | undefined; Domain?: string | undefined; DomainList?: string[] | undefined; Tags?: Record | undefined; AppMonitorConfiguration?: AppMonitorConfiguration | undefined; CwLogEnabled?: boolean | undefined; CustomEvents?: CustomEvents | undefined; DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined; Platform?: AppMonitorPlatform | undefined; } export interface CreateAppMonitorResponse { Id?: string | undefined; } export interface DeleteAppMonitorRequest { Name: string | undefined; } export interface DeleteAppMonitorResponse {} export interface DeleteResourcePolicyRequest { Name: string | undefined; PolicyRevisionId?: string | undefined; } export interface DeleteResourcePolicyResponse { PolicyRevisionId?: string | undefined; } export interface DeleteRumMetricsDestinationRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; } export interface DeleteRumMetricsDestinationResponse {} export interface GetAppMonitorRequest { Name: string | undefined; } export interface GetAppMonitorResponse { AppMonitor?: AppMonitor | undefined; } export interface QueryFilter { Name?: string | undefined; Values?: string[] | undefined; } export interface TimeRange { After: number | undefined; Before?: number | undefined; } export interface GetAppMonitorDataRequest { Name: string | undefined; TimeRange: TimeRange | undefined; Filters?: QueryFilter[] | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface GetAppMonitorDataResponse { Events?: string[] | undefined; NextToken?: string | undefined; } export interface GetResourcePolicyRequest { Name: string | undefined; } export interface GetResourcePolicyResponse { PolicyDocument?: string | undefined; PolicyRevisionId?: string | undefined; } export interface ListAppMonitorsRequest { MaxResults?: number | undefined; NextToken?: string | undefined; } export interface AppMonitorSummary { Name?: string | undefined; Id?: string | undefined; Created?: string | undefined; LastModified?: string | undefined; State?: StateEnum | undefined; Platform?: AppMonitorPlatform | undefined; } export interface ListAppMonitorsResponse { NextToken?: string | undefined; AppMonitorSummaries?: AppMonitorSummary[] | undefined; } export interface ListRumMetricsDestinationsRequest { AppMonitorName: string | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface MetricDestinationSummary { Destination?: MetricDestination | undefined; DestinationArn?: string | undefined; IamRoleArn?: string | undefined; } export interface ListRumMetricsDestinationsResponse { Destinations?: MetricDestinationSummary[] | undefined; NextToken?: string | undefined; } export interface PutResourcePolicyRequest { Name: string | undefined; PolicyDocument: string | undefined; PolicyRevisionId?: string | undefined; } export interface PutResourcePolicyResponse { PolicyDocument?: string | undefined; PolicyRevisionId?: string | undefined; } export interface PutRumMetricsDestinationRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; IamRoleArn?: string | undefined; } export interface PutRumMetricsDestinationResponse {} export interface UpdateAppMonitorRequest { Name: string | undefined; Domain?: string | undefined; DomainList?: string[] | undefined; AppMonitorConfiguration?: AppMonitorConfiguration | undefined; CwLogEnabled?: boolean | undefined; CustomEvents?: CustomEvents | undefined; DeobfuscationConfiguration?: DeobfuscationConfiguration | undefined; } export interface UpdateAppMonitorResponse {} export interface UpdateRumMetricDefinitionRequest { AppMonitorName: string | undefined; Destination: MetricDestination | undefined; DestinationArn?: string | undefined; MetricDefinition: MetricDefinitionRequest | undefined; MetricDefinitionId: string | undefined; } export interface UpdateRumMetricDefinitionResponse {} export interface ListTagsForResourceRequest { ResourceArn: string | undefined; } export interface ListTagsForResourceResponse { ResourceArn: string | undefined; Tags: Record | undefined; } export interface RumEvent { id: string | undefined; timestamp: Date | undefined; type: string | undefined; metadata?: __AutomaticJsonStringConversion | string | undefined; details: __AutomaticJsonStringConversion | string | undefined; } export interface UserDetails { userId?: string | undefined; sessionId?: string | undefined; } export interface PutRumEventsRequest { Id: string | undefined; BatchId: string | undefined; AppMonitorDetails: AppMonitorDetails | undefined; UserDetails: UserDetails | undefined; RumEvents: RumEvent[] | undefined; Alias?: string | undefined; } export interface PutRumEventsResponse {} export interface TagResourceRequest { ResourceArn: string | undefined; Tags: Record | undefined; } export interface TagResourceResponse {} export interface UntagResourceRequest { ResourceArn: string | undefined; TagKeys: string[] | undefined; } export interface UntagResourceResponse {}