AWSLogsMetricFilter

Objective-C

@interface AWSLogsMetricFilter

Swift

class AWSLogsMetricFilter

Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.

  • The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable creationTime;

    Swift

    var creationTime: NSNumber? { get set }
  • The name of the metric filter.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable filterName;

    Swift

    var filterName: String? { get set }
  • A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable filterPattern;

    Swift

    var filterPattern: String? { get set }
  • The name of the log group.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable logGroupName;

    Swift

    var logGroupName: String? { get set }
  • The metric transformations.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSLogsMetricTransformation *> *_Nullable metricTransformations;

    Swift

    var metricTransformations: [AWSLogsMetricTransformation]? { get set }