class Amazonite::CloudWatchLogs::MetricFilter

Overview

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

Included Modules

Defined in:

cloudwatch_logs/metric_filter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(filter_name : String | Nil = nil, filter_pattern : String | Nil = nil, metric_transformations : Array(MetricTransformation) | Nil = nil, creation_time : Int64 | Nil = nil, log_group_name : String | Nil = nil, apply_on_transformed_logs : Bool | Nil = nil, field_selection_criteria : String | Nil = nil, emit_system_field_dimensions : Array(String) | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def apply_on_transformed_logs : Bool | Nil #

This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.

If this value is true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.


[View source]
def apply_on_transformed_logs=(apply_on_transformed_logs : Bool | Nil) #

This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.

If this value is true, the metric filter is applied on the transformed version of the log events instead of the original ingested log events.


[View source]
def creation_time : Int64 | Nil #

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


[View source]
def creation_time=(creation_time : Int64 | Nil) #

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


[View source]
def emit_system_field_dimensions : Array(String) | Nil #

The list of system fields that are emitted as additional dimensions in the generated metrics. Returns the emitSystemFieldDimensions value if it was specified when the metric filter was created.


[View source]
def emit_system_field_dimensions=(emit_system_field_dimensions : Array(String) | Nil) #

The list of system fields that are emitted as additional dimensions in the generated metrics. Returns the emitSystemFieldDimensions value if it was specified when the metric filter was created.


[View source]
def field_selection_criteria : String | Nil #

The filter expression that specifies which log events are processed by this metric filter based on system fields. Returns the fieldSelectionCriteria value if it was specified when the metric filter was created.


[View source]
def field_selection_criteria=(field_selection_criteria : String | Nil) #

The filter expression that specifies which log events are processed by this metric filter based on system fields. Returns the fieldSelectionCriteria value if it was specified when the metric filter was created.


[View source]
def filter_name : String | Nil #

The name of the metric filter.


[View source]
def filter_name=(filter_name : String | Nil) #

The name of the metric filter.


[View source]
def filter_pattern : String | Nil #

[View source]
def filter_pattern=(filter_pattern : String | Nil) #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def log_group_name : String | Nil #

The name of the log group.


[View source]
def log_group_name=(log_group_name : String | Nil) #

The name of the log group.


[View source]
def metric_transformations : Array(MetricTransformation) | Nil #

The metric transformations.


[View source]
def metric_transformations=(metric_transformations : Array(MetricTransformation) | Nil) #

The metric transformations.


[View source]
def validate! : Nil #

[View source]