All files / src/types/taskTypes cloudwatch.ts

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 421x 1x 1x 1x                                                                            
export enum CloudwatchTaskType {
  UNKNOWN = "UNKNOWN",
  METRIC_EXECUTION = "METRIC_EXECUTION",
  FILTER_LOG_EVENTS = "FILTER_LOG_EVENTS",
}
 
export interface Dimension {
  name: string;
  value: string;
}
 
export interface MetricExecution {
  namespace: string;
  region: string;
  metric_name: string;
  dimensions: Dimension[];
  statistic: string;
  process_function: string;
}
 
export interface FilterLogEvents {
  region: string;
  log_group_name: string;
  filter_query: string;
}
 
export interface CloudwatchBase {
  type: CloudwatchTaskType;
}
 
export interface CloudwatchMetricExecution extends CloudwatchBase {
  type: CloudwatchTaskType.METRIC_EXECUTION;
  metric_execution: MetricExecution;
}
 
export interface CloudwatchFilterLogEvents extends CloudwatchBase {
  type: CloudwatchTaskType.FILTER_LOG_EVENTS;
  filter_log_events: FilterLogEvents;
}
 
export type Cloudwatch = CloudwatchMetricExecution | CloudwatchFilterLogEvents;