class
Amazonite::CloudWatchLogs::ListToMap
- Amazonite::CloudWatchLogs::ListToMap
- Reference
- Object
Overview
This processor takes a list of objects that contain key fields, and converts them into a map of target keys.
For more information about this processor including examples, see listToMap in the CloudWatch Logs User Guide.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/list_to_map.crConstructors
- .new(source : String, key : String, value_key : String | Nil = nil, target : String | Nil = nil, flatten : Bool | Nil = nil, flattened_element : FlattenedElement | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#flatten : Bool | Nil
A Boolean value to indicate whether the list will be flattened into single items.
-
#flatten=(flatten : Bool | Nil)
A Boolean value to indicate whether the list will be flattened into single items.
-
#flattened_element : FlattenedElement | Nil
If you set
#flattentotrue, useflattenedElementto specify which element,firstorlast, to keep. -
#flattened_element=(flattened_element : FlattenedElement | Nil)
If you set
#flattentotrue, useflattenedElementto specify which element,firstorlast, to keep. -
#hash(hasher)
See
Object#hash(hasher) -
#key : String
The key of the field to be extracted as keys in the generated map
-
#key=(key : String)
The key of the field to be extracted as keys in the generated map
-
#source : String
The key in the log event that has a list of objects that will be converted to a map.
-
#source=(source : String)
The key in the log event that has a list of objects that will be converted to a map.
-
#target : String | Nil
The key of the field that will hold the generated map
-
#target=(target : String | Nil)
The key of the field that will hold the generated map
- #validate! : Nil
-
#value_key : String | Nil
If this is specified, the values that you specify in this parameter will be extracted from the
#sourceobjects and put into the values of the generated map. -
#value_key=(value_key : String | Nil)
If this is specified, the values that you specify in this parameter will be extracted from the
#sourceobjects and put into the values of the generated map.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A Boolean value to indicate whether the list will be flattened into single items. Specify true
to flatten the list. The default is false
A Boolean value to indicate whether the list will be flattened into single items. Specify true
to flatten the list. The default is false
If you set #flatten to true, use flattenedElement to specify which element, first or
last, to keep.
You must specify this parameter if #flatten is true
If you set #flatten to true, use flattenedElement to specify which element, first or
last, to keep.
You must specify this parameter if #flatten is true
The key in the log event that has a list of objects that will be converted to a map.
The key in the log event that has a list of objects that will be converted to a map.
If this is specified, the values that you specify in this parameter will be extracted from the
#source objects and put into the values of the generated map. Otherwise, original objects in
the source list will be put into the values of the generated map.