Class: Google::Apis::LoggingV2::IndexConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb

Overview

Configuration for an indexed field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IndexConfig

Returns a new instance of IndexConfig.



1025
1026
1027
# File 'lib/google/apis/logging_v2/classes.rb', line 1025

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The timestamp when the index was last modified.This is used to return the timestamp, and will be ignored if supplied during update. Corresponds to the JSON property createTime

Returns:

  • (String)


1010
1011
1012
# File 'lib/google/apis/logging_v2/classes.rb', line 1010

def create_time
  @create_time
end

#field_pathString

Required. The LogEntry field path to index.Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation( https://cloud.google.com/logging/docs/view/advanced- queries#indexed-fields) for details.For example: jsonPayload.request.status Corresponds to the JSON property fieldPath

Returns:

  • (String)


1018
1019
1020
# File 'lib/google/apis/logging_v2/classes.rb', line 1018

def field_path
  @field_path
end

#typeString

Required. The type of data in this index. Corresponds to the JSON property type

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/logging_v2/classes.rb', line 1023

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1030
1031
1032
1033
1034
# File 'lib/google/apis/logging_v2/classes.rb', line 1030

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @field_path = args[:field_path] if args.key?(:field_path)
  @type = args[:type] if args.key?(:type)
end