Show / Hide Table of Contents

Class 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.

Inheritance
object
HttpRequest
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging.v2.Data
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class HttpRequest : IDirectResponseSchema

Properties

CacheFillBytes

The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.

Declaration
[JsonProperty("cacheFillBytes")]
public virtual long? CacheFillBytes { get; set; }
Property Value
Type Description
long?

CacheHit

Whether or not an entity was served from cache (with or without validation).

Declaration
[JsonProperty("cacheHit")]
public virtual bool? CacheHit { get; set; }
Property Value
Type Description
bool?

CacheLookup

Whether or not a cache lookup was attempted.

Declaration
[JsonProperty("cacheLookup")]
public virtual bool? CacheLookup { get; set; }
Property Value
Type Description
bool?

CacheValidatedWithOriginServer

Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if cache_hit is True.

Declaration
[JsonProperty("cacheValidatedWithOriginServer")]
public virtual bool? CacheValidatedWithOriginServer { get; set; }
Property Value
Type Description
bool?

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Latency

The request processing latency on the server, from the time the request was received until the response was sent. For WebSocket connections, this field refers to the entire time duration of the connection.

Declaration
[JsonProperty("latency")]
public virtual object Latency { get; set; }
Property Value
Type Description
object

Protocol

Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2"

Declaration
[JsonProperty("protocol")]
public virtual string Protocol { get; set; }
Property Value
Type Description
string

Referer

The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions (https://datatracker.ietf.org/doc/html/rfc2616#section-14.36).

Declaration
[JsonProperty("referer")]
public virtual string Referer { get; set; }
Property Value
Type Description
string

RemoteIp

The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: "192.168.1.1", "10.0.0.1:80", "FE80::0202:B3FF:FE1E:8329".

Declaration
[JsonProperty("remoteIp")]
public virtual string RemoteIp { get; set; }
Property Value
Type Description
string

RequestMethod

The request method. Examples: "GET", "HEAD", "PUT", "POST".

Declaration
[JsonProperty("requestMethod")]
public virtual string RequestMethod { get; set; }
Property Value
Type Description
string

RequestSize

The size of the HTTP request message in bytes, including the request headers and the request body.

Declaration
[JsonProperty("requestSize")]
public virtual long? RequestSize { get; set; }
Property Value
Type Description
long?

RequestUrl

The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: "http://example.com/some/info?color=red".

Declaration
[JsonProperty("requestUrl")]
public virtual string RequestUrl { get; set; }
Property Value
Type Description
string

ResponseSize

The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.

Declaration
[JsonProperty("responseSize")]
public virtual long? ResponseSize { get; set; }
Property Value
Type Description
long?

ServerIp

The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: "192.168.1.1", "10.0.0.1:80", "FE80::0202:B3FF:FE1E:8329".

Declaration
[JsonProperty("serverIp")]
public virtual string ServerIp { get; set; }
Property Value
Type Description
string

Status

The response code indicating the status of response. Examples: 200, 404.

Declaration
[JsonProperty("status")]
public virtual int? Status { get; set; }
Property Value
Type Description
int?

UserAgent

The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)".

Declaration
[JsonProperty("userAgent")]
public virtual string UserAgent { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX