1 | import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput, CreateLogStreamCommandInput, CreateLogStreamCommandOutput, DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput, GetLogEventsCommandInput, GetLogEventsCommandOutput, InputLogEvent } from '@aws-sdk/client-cloudwatch-logs';
|
2 | import { AWSCloudWatchProviderOptions, LoggingProvider } from '../types/types';
|
3 | declare class AWSCloudWatchProvider implements LoggingProvider {
|
4 | static readonly PROVIDER_NAME = "AWSCloudWatch";
|
5 | static readonly CATEGORY = "Logging";
|
6 | private _config;
|
7 | private _dataTracker;
|
8 | private _currentLogBatch;
|
9 | private _timer;
|
10 | private _nextSequenceToken;
|
11 | constructor(config?: AWSCloudWatchProviderOptions);
|
12 | getProviderName(): string;
|
13 | getCategoryName(): string;
|
14 | getLogQueue(): InputLogEvent[];
|
15 | configure(config?: AWSCloudWatchProviderOptions): AWSCloudWatchProviderOptions;
|
16 | createLogGroup(params: CreateLogGroupCommandInput): Promise<CreateLogGroupCommandOutput>;
|
17 | getLogGroups(params: DescribeLogGroupsCommandInput): Promise<DescribeLogGroupsCommandOutput>;
|
18 | createLogStream(params: CreateLogStreamCommandInput): Promise<CreateLogStreamCommandOutput>;
|
19 | getLogStreams(params: DescribeLogStreamsCommandInput): Promise<DescribeLogStreamsCommandOutput>;
|
20 | getLogEvents(params: GetLogEventsCommandInput): Promise<GetLogEventsCommandOutput>;
|
21 | pushLogs(logs: InputLogEvent[]): void;
|
22 | private _validateLogGroupExistsAndCreate;
|
23 | private _validateLogStreamExists;
|
24 | private _sendLogEvents;
|
25 | private _initCloudWatchLogs;
|
26 | private _ensureCredentials;
|
27 | private _getNextSequenceToken;
|
28 | private _safeUploadLogEvents;
|
29 | private _getBufferedBatchOfLogs;
|
30 | private _getNewSequenceTokenAndSubmit;
|
31 | private _initiateLogPushInterval;
|
32 | private _getDocUploadPermissibility;
|
33 | }
|
34 | export { AWSCloudWatchProvider };
|