lib/fluent/plugin/out_google_cloud.rb
def grpc_severity(severity)
      # TODO: find out why this doesn't work.
      # if severity.is_a? String
      #   return Google::Logging::Type::LogSeverity.resolve(severity)
      # end
      if GRPC_SEVERITY_MAPPING.key?(severity)
        return GRPC_SEVERITY_MAPPING[severity]
      end
      severity
    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 grpc_severity(severity)
      if GRPC_SEVERITY_MAPPING.key?(severity)
        return GRPC_SEVERITY_MAPPING[severity]
      end
      severity
    end
def grpc_severity ( severity ) if GRPC_SEVERITY_MAPPING . key? ( severity ) return GRPC_SEVERITY_MAPPING [ severity ] end severity end
Constants for service names, resource types and etc.
Constants for service names resource types and etc .
# TODO: find out why this doesn't work. # if severity.is_a? String #   return Google::Logging::Type::LogSeverity.resolve(severity) # end
severity