class Amazonite::CloudWatchLogs::DateTimeConverter

Overview

This processor converts a datetime string into a format that you specify.

For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.

Included Modules

Defined in:

cloudwatch_logs/date_time_converter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, target : String, match_patterns : Array(String), target_format : String | Nil = nil, source_timezone : String | Nil = nil, target_timezone : String | Nil = nil, locale : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def locale : String | Nil #

The locale of the source field. If you omit this, the default of locale.ROOT is used.


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

The locale of the source field. If you omit this, the default of locale.ROOT is used.


[View source]
def match_patterns : Array(String) #

A list of patterns to match against the #source field.


[View source]
def match_patterns=(match_patterns : Array(String)) #

A list of patterns to match against the #source field.


[View source]
def source : String #

The key to apply the date conversion to.


[View source]
def source=(source : String) #

The key to apply the date conversion to.


[View source]
def source_timezone : String | Nil #

The time zone of the source field. If you omit this, the default used is the UTC zone.


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

The time zone of the source field. If you omit this, the default used is the UTC zone.


[View source]
def target : String #

The JSON field to store the result in.


[View source]
def target=(target : String) #

The JSON field to store the result in.


[View source]
def target_format : String | Nil #

The datetime format to use for the converted data in the target field.

If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.


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

The datetime format to use for the converted data in the target field.

If you omit this, the default of yyyy-MM-dd'T'HH:mm:ss.SSS'Z is used.


[View source]
def target_timezone : String | Nil #

The time zone of the target field. If you omit this, the default used is the UTC zone.


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

The time zone of the target field. If you omit this, the default used is the UTC zone.


[View source]
def validate! : Nil #

[View source]