Service Control v1 API - Class HttpRequest (2.3.0)

public sealed class HttpRequest : IMessage<HttpRequest>, IEquatable<HttpRequest>, IDeepCloneable<HttpRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Control v1 API 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

Namespace

Google.Cloud.ServiceControl.V1

Assembly

Google.Cloud.ServiceControl.V1.dll

Constructors

HttpRequest()

public HttpRequest()

HttpRequest(HttpRequest)

public HttpRequest(HttpRequest other)
Parameter
Name Description
other HttpRequest

Properties

CacheFillBytes

public long CacheFillBytes { get; set; }

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

Property Value
Type Description
long

CacheHit

public bool CacheHit { get; set; }

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

Property Value
Type Description
bool

CacheLookup

public bool CacheLookup { get; set; }

Whether or not a cache lookup was attempted.

Property Value
Type Description
bool

CacheValidatedWithOriginServer

public bool CacheValidatedWithOriginServer { get; set; }

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.

Property Value
Type Description
bool

Latency

public Duration Latency { get; set; }

The request processing latency on the server, from the time the request was received until the response was sent.

Property Value
Type Description
Duration

Protocol

public string Protocol { get; set; }

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

Property Value
Type Description
string

Referer

public string Referer { get; set; }

The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions.

Property Value
Type Description
string

RemoteIp

public string RemoteIp { get; set; }

The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".

Property Value
Type Description
string

RequestMethod

public string RequestMethod { get; set; }

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

Property Value
Type Description
string

RequestSize

public long RequestSize { get; set; }

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

Property Value
Type Description
long

RequestUrl

public string RequestUrl { get; set; }

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

Property Value
Type Description
string

ResponseSize

public long ResponseSize { get; set; }

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

Property Value
Type Description
long

ServerIp

public string ServerIp { get; set; }

The IP address (IPv4 or IPv6) of the origin server that the request was sent to.

Property Value
Type Description
string

Status

public int Status { get; set; }

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

Property Value
Type Description
int

UserAgent

public string UserAgent { get; set; }

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

Property Value
Type Description
string