Class: Aws::CloudWatchLogs::Types::DateTimeConverter

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudwatchlogs/types.rb

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*.

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-datetimeConverter

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#localeString

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

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#match_patternsArray<String>

A list of patterns to match against the ‘source` field.

Returns:

  • (Array<String>)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#sourceString

The key to apply the date conversion to.

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#source_timezoneString

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

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#targetString

The JSON field to store the result in.

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#target_formatString

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.

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end

#target_timezoneString

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

Returns:

  • (String)


1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 1018

class DateTimeConverter < Struct.new(
  :source,
  :target,
  :target_format,
  :match_patterns,
  :source_timezone,
  :target_timezone,
  :locale)
  SENSITIVE = []
  include Aws::Structure
end