class
Amazonite::CloudWatchLogs::DateTimeConverter
- Amazonite::CloudWatchLogs::DateTimeConverter
- Reference
- Object
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
- JSON::Serializable
Defined in:
cloudwatch_logs/date_time_converter.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#locale : String | Nil
The locale of the source field.
-
#locale=(locale : String | Nil)
The locale of the source field.
-
#match_patterns : Array(String)
A list of patterns to match against the
#sourcefield. -
#match_patterns=(match_patterns : Array(String))
A list of patterns to match against the
#sourcefield. -
#source : String
The key to apply the date conversion to.
-
#source=(source : String)
The key to apply the date conversion to.
-
#source_timezone : String | Nil
The time zone of the source field.
-
#source_timezone=(source_timezone : String | Nil)
The time zone of the source field.
-
#target : String
The JSON field to store the result in.
-
#target=(target : String)
The JSON field to store the result in.
-
#target_format : String | Nil
The datetime format to use for the converted data in the target field.
-
#target_format=(target_format : String | Nil)
The datetime format to use for the converted data in the target field.
-
#target_timezone : String | Nil
The time zone of the target field.
-
#target_timezone=(target_timezone : String | Nil)
The time zone of the target field.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The locale of the source field. If you omit this, the default of locale.ROOT is used.
The locale of the source field. If you omit this, the default of locale.ROOT is used.
A list of patterns to match against the #source field.
The time zone of the source field. If you omit this, the default used is the UTC zone.
The time zone of the source field. If you omit this, the default used is the UTC zone.
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.
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.
The time zone of the target field. If you omit this, the default used is the UTC zone.
The time zone of the target field. If you omit this, the default used is the UTC zone.