1 | import { Handler } from "../handler";
|
2 |
|
3 | export type CloudWatchLogsHandler = Handler<CloudWatchLogsEvent, void>;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface CloudWatchLogsEvent {
|
9 | awslogs: CloudWatchLogsEventData;
|
10 | }
|
11 |
|
12 | export interface CloudWatchLogsEventData {
|
13 | data: string;
|
14 | }
|
15 |
|
16 | export interface CloudWatchLogsDecodedData {
|
17 | owner: string;
|
18 | logGroup: string;
|
19 | logStream: string;
|
20 | subscriptionFilters: string[];
|
21 | messageType: string;
|
22 | logEvents: CloudWatchLogsLogEvent[];
|
23 | }
|
24 |
|
25 | export interface CloudWatchLogsLogEventExtractedFields {
|
26 | [name: string]: string | undefined;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export interface CloudWatchLogsLogEvent {
|
33 | id: string;
|
34 | timestamp: number;
|
35 | message: string;
|
36 | extractedFields?: CloudWatchLogsLogEventExtractedFields | undefined;
|
37 | }
|