Class: Google::Apis::ServicecontrolV1::LogEntry
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ServicecontrolV1::LogEntry
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb 
Overview
An individual log entry.
Instance Attribute Summary collapse
- 
  
    
      #http_request  ⇒ Google::Apis::ServicecontrolV1::HttpRequest 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A common proto for logging HTTP requests.
 - 
  
    
      #insert_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A unique ID for the log entry used for deduplication.
 - 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A set of user-defined (key, value) data that provides additional information about the log entry.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #operation  ⇒ Google::Apis::ServicecontrolV1::LogEntryOperation 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Additional information about a potentially long-running operation with which a log entry is associated.
 - 
  
    
      #proto_payload  ⇒ Hash<String,Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The log entry payload, represented as a protocol buffer that is expressed as a JSON object.
 - 
  
    
      #severity  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The severity of the log entry.
 - 
  
    
      #struct_payload  ⇒ Hash<String,Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The log entry payload, represented as a structure that is expressed as a JSON object.
 - 
  
    
      #text_payload  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The log entry payload, represented as a Unicode string (UTF-8).
 - 
  
    
      #timestamp  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The time the event described by the log entry occurred.
 - 
  
    
      #trace  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LogEntry 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of LogEntry.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LogEntry
Returns a new instance of LogEntry
      1096 1097 1098  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1096 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#http_request ⇒ Google::Apis::ServicecontrolV1::HttpRequest
A common proto for logging HTTP requests. Only contains semantics
defined by the HTTP specification. Product-specific logging
information MUST be defined in a separate message.
Corresponds to the JSON property httpRequest
      1032 1033 1034  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1032 def http_request @http_request end  | 
  
#insert_id ⇒ String
A unique ID for the log entry used for deduplication. If omitted,
the implementation will generate one based on operation_id.
Corresponds to the JSON property insertId
      1038 1039 1040  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1038 def insert_id @insert_id end  | 
  
#labels ⇒ Hash<String,String>
A set of user-defined (key, value) data that provides additional
information about the log entry.
Corresponds to the JSON property labels
      1044 1045 1046  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1044 def labels @labels end  | 
  
#name ⇒ String
Required. The log to which this log entry belongs. Examples: "syslog",
"book_log".
Corresponds to the JSON property name
      1050 1051 1052  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1050 def name @name end  | 
  
#operation ⇒ Google::Apis::ServicecontrolV1::LogEntryOperation
Additional information about a potentially long-running operation with which
a log entry is associated.
Corresponds to the JSON property operation
      1056 1057 1058  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1056 def operation @operation end  | 
  
#proto_payload ⇒ Hash<String,Object>
The log entry payload, represented as a protocol buffer that is
expressed as a JSON object. The only accepted type currently is
AuditLog.
Corresponds to the JSON property protoPayload
      1063 1064 1065  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1063 def proto_payload @proto_payload end  | 
  
#severity ⇒ String
The severity of the log entry. The default value is
LogSeverity.DEFAULT.
Corresponds to the JSON property severity
      1069 1070 1071  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1069 def severity @severity end  | 
  
#struct_payload ⇒ Hash<String,Object>
The log entry payload, represented as a structure that
is expressed as a JSON object.
Corresponds to the JSON property structPayload
      1075 1076 1077  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1075 def struct_payload @struct_payload end  | 
  
#text_payload ⇒ String
The log entry payload, represented as a Unicode string (UTF-8).
Corresponds to the JSON property textPayload
      1080 1081 1082  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1080 def text_payload @text_payload end  | 
  
#timestamp ⇒ String
The time the event described by the log entry occurred. If
omitted, defaults to operation start time.
Corresponds to the JSON property timestamp
      1086 1087 1088  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1086 def @timestamp end  | 
  
#trace ⇒ String
Optional. Resource name of the trace associated with the log entry, if any.
If this field contains a relative resource name, you can assume the name is
relative to //tracing.googleapis.com. Example:
projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
Corresponds to the JSON property trace
      1094 1095 1096  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1094 def trace @trace end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113  | 
    
      # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1101 def update!(**args) @http_request = args[:http_request] if args.key?(:http_request) @insert_id = args[:insert_id] if args.key?(:insert_id) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @operation = args[:operation] if args.key?(:operation) @proto_payload = args[:proto_payload] if args.key?(:proto_payload) @severity = args[:severity] if args.key?(:severity) @struct_payload = args[:struct_payload] if args.key?(:struct_payload) @text_payload = args[:text_payload] if args.key?(:text_payload) @timestamp = args[:timestamp] if args.key?(:timestamp) @trace = args[:trace] if args.key?(:trace) end  |