lib/fluent/plugin/out_google_cloud.rb
def construct_log_entry_in_rest_format(labels,
                                           resource,
                                           severity,
                                           ts_secs,
                                           ts_nanos)
      # Remove the labels if we didn't populate them with anything.
      resource.labels = nil if resource.labels.empty?
      Google::Apis::LoggingV2::LogEntry.new(
        labels: labels,
        resource: resource,
        severity: severity,
        timestamp: {
          seconds: ts_secs,
          nanos: ts_nanos
        }
      )
    end
# Constants for service names, resource types and etc.
Constants for service names, resource types and etc.
Constants for service names resource types and etc .
def construct_log_entry_in_rest_format(labels,
                                           resource,
                                           severity,
                                           ts_secs,
                                           ts_nanos)
      resource.labels = nil if resource.labels.empty?
      Google::Apis::LoggingV2::LogEntry.new(
        labels: labels,
        resource: resource,
        severity: severity,
        timestamp: {
          seconds: ts_secs,
          nanos: ts_nanos
        }
      )
    end
def construct_log_entry_in_rest_format ( labels , resource , severity , ts_secs , ts_nanos ) resource . labels = nil if resource . labels . empty? Google :: Apis :: LoggingV2 :: LogEntry . new ( labels : labels , resource : resource , severity : severity , timestamp : { seconds : ts_secs , nanos : ts_nanos } ) end
Constants for service names, resource types and etc.
Constants for service names resource types and etc .
# Remove the labels if we didn't populate them with anything.
labels
resource
severity
ts_secs
ts_nanos