Packages
google_api_logging
0.8.0
0.52.0
0.51.3
0.51.2
0.51.1
0.51.0
0.50.0
0.49.1
0.49.0
0.48.0
0.47.0
0.46.0
0.45.1
0.45.0
0.44.0
0.43.0
0.42.0
0.41.2
0.41.1
0.41.0
0.40.1
0.40.0
0.39.0
0.38.2
0.38.1
0.38.0
0.37.3
0.37.2
0.37.1
0.37.0
0.36.1
0.36.0
0.35.1
0.35.0
0.34.3
0.34.2
0.34.1
0.34.0
0.33.0
0.32.1
0.32.0
0.31.0
0.30.0
0.29.1
0.29.0
0.28.1
0.28.0
0.27.1
0.27.0
0.26.0
0.25.0
0.24.0
0.23.0
0.22.0
0.21.0
0.20.0
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.10.0
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.3.0
0.2.0
0.1.0
0.0.1
Cloud Logging API client library. Writes log entries and manages your Cloud Logging configuration.
Current section
Files
Jump to
Current section
Files
lib/google_api/logging/v2/model/request_log.ex
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This class is auto generated by the elixir code generator program.
# Do not edit the class manually.
defmodule GoogleApi.Logging.V2.Model.RequestLog do
@moduledoc """
Complete log information about a single HTTP request to an App Engine application.
## Attributes
- first (boolean()): Whether this is the first RequestLog entry for this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them. Defaults to `nil`.
- instanceIndex (integer()): If the instance processing this request belongs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1. Defaults to `nil`.
- httpVersion (String.t): HTTP version of request. Example: "HTTP/1.1". Defaults to `nil`.
- finished (boolean()): Whether this request is finished or active. Defaults to `nil`.
- line (list(GoogleApi.Logging.V2.Model.LogLine.t)): A list of log lines emitted by the application while serving this request. Defaults to `nil`.
- traceSampled (boolean()): If true, the value in the 'trace_id' field was sampled for storage in a trace backend. Defaults to `nil`.
- taskQueueName (String.t): Queue name of the request, in the case of an offline request. Defaults to `nil`.
- traceId (String.t): Stackdriver Trace identifier for this request. Defaults to `nil`.
- wasLoadingRequest (boolean()): Whether this was a loading request for the instance. Defaults to `nil`.
- megaCycles (String.t): Number of CPU megacycles used to process request. Defaults to `nil`.
- ip (String.t): Origin IP address. Defaults to `nil`.
- referrer (String.t): Referrer URL of request. Defaults to `nil`.
- nickname (String.t): The logged-in user who made the request.Most likely, this is the part of the user's email before the @ sign. The field value is the same for different requests from the same user, but different users can have similar names. This information is also available to the application via the App Engine Users API.This field will be populated starting with App Engine 1.9.21. Defaults to `nil`.
- resource (String.t): Contains the path and query portion of the URL that was requested. For example, if the URL was "http://example.com/app?name=val", the resource would be "/app?name=val". The fragment identifier, which is identified by the # character, is not included. Defaults to `nil`.
- instanceId (String.t): An identifier for the instance that handled the request. Defaults to `nil`.
- endTime (DateTime.t): Time when the request finished. Defaults to `nil`.
- appId (String.t): Application that handled this request. Defaults to `nil`.
- responseSize (String.t): Size in bytes sent back to client by request. Defaults to `nil`.
- status (integer()): HTTP response status code. Example: 200, 404. Defaults to `nil`.
- appEngineRelease (String.t): App Engine release version. Defaults to `nil`.
- host (String.t): Internet host and port number of the resource being requested. Defaults to `nil`.
- method (String.t): Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". Defaults to `nil`.
- moduleId (String.t): Module of the application that handled this request. Defaults to `nil`.
- taskName (String.t): Task name of the request, in the case of an offline request. Defaults to `nil`.
- urlMapEntry (String.t): File or class that handled the request. Defaults to `nil`.
- versionId (String.t): Version of the application that handled this request. Defaults to `nil`.
- pendingTime (String.t): Time this request spent in the pending request queue. Defaults to `nil`.
- startTime (DateTime.t): Time when the request started. Defaults to `nil`.
- latency (String.t): Latency of the request. Defaults to `nil`.
- cost (float()): An indication of the relative cost of serving this request. Defaults to `nil`.
- userAgent (String.t): User agent that made the request. Defaults to `nil`.
- requestId (String.t): Globally unique identifier for a request, which is based on the request start time. Request IDs for requests which started later will compare greater as strings than those for requests which started earlier. Defaults to `nil`.
- sourceReference (list(GoogleApi.Logging.V2.Model.SourceReference.t)): Source code for the application that handled this request. There can be more than one source reference per deployed application if source code is distributed among multiple repositories. Defaults to `nil`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:first => boolean(),
:instanceIndex => integer(),
:httpVersion => String.t(),
:finished => boolean(),
:line => list(GoogleApi.Logging.V2.Model.LogLine.t()),
:traceSampled => boolean(),
:taskQueueName => String.t(),
:traceId => String.t(),
:wasLoadingRequest => boolean(),
:megaCycles => String.t(),
:ip => String.t(),
:referrer => String.t(),
:nickname => String.t(),
:resource => String.t(),
:instanceId => String.t(),
:endTime => DateTime.t(),
:appId => String.t(),
:responseSize => String.t(),
:status => integer(),
:appEngineRelease => String.t(),
:host => String.t(),
:method => String.t(),
:moduleId => String.t(),
:taskName => String.t(),
:urlMapEntry => String.t(),
:versionId => String.t(),
:pendingTime => String.t(),
:startTime => DateTime.t(),
:latency => String.t(),
:cost => float(),
:userAgent => String.t(),
:requestId => String.t(),
:sourceReference => list(GoogleApi.Logging.V2.Model.SourceReference.t())
}
field(:first)
field(:instanceIndex)
field(:httpVersion)
field(:finished)
field(:line, as: GoogleApi.Logging.V2.Model.LogLine, type: :list)
field(:traceSampled)
field(:taskQueueName)
field(:traceId)
field(:wasLoadingRequest)
field(:megaCycles)
field(:ip)
field(:referrer)
field(:nickname)
field(:resource)
field(:instanceId)
field(:endTime, as: DateTime)
field(:appId)
field(:responseSize)
field(:status)
field(:appEngineRelease)
field(:host)
field(:method)
field(:moduleId)
field(:taskName)
field(:urlMapEntry)
field(:versionId)
field(:pendingTime)
field(:startTime, as: DateTime)
field(:latency)
field(:cost)
field(:userAgent)
field(:requestId)
field(:sourceReference, as: GoogleApi.Logging.V2.Model.SourceReference, type: :list)
end
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.RequestLog do
def decode(value, options) do
GoogleApi.Logging.V2.Model.RequestLog.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.RequestLog do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end