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.
Generated from protobuf message google.logging.type.HttpRequest
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public clearLatency() |
| public getCacheFillBytes() The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted. Generated from protobuf field int64 cache_fill_bytes = 12;
|
| public getCacheHit() Whether or not an entity was served from cache (with or without validation). Generated from protobuf field bool cache_hit = 9;
|
| public getCacheLookup() Whether or not a cache lookup was attempted. Generated from protobuf field bool cache_lookup = 11;
|
| public getCacheValidatedWithOriginServer() Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if Generated from protobuf field bool cache_validated_with_origin_server = 10;
|
| public getLatency() The request processing latency on the server, from the time the request was received until the response was sent. Generated from protobuf field .google.protobuf.Duration latency = 14;
|
| public getProtocol() Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" Generated from protobuf field string protocol = 15;
|
| public getReferer() The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. Generated from protobuf field string referer = 8;
|
| public getRemoteIp() The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: Generated from protobuf field string remote_ip = 7;
|
| public getRequestMethod() The request method. Examples: Generated from protobuf field string request_method = 1;
|
| public getRequestSize() The size of the HTTP request message in bytes, including the request headers and the request body. Generated from protobuf field int64 request_size = 3;
|
| public getRequestUrl() The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: Generated from protobuf field string request_url = 2;
|
| public getResponseSize() The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. Generated from protobuf field int64 response_size = 5;
|
| public getServerIp() The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: Generated from protobuf field string server_ip = 13;
|
| public getStatus() The response code indicating the status of response. Examples: 200, 404. Generated from protobuf field int32 status = 4;
|
| public getUserAgent() The user agent sent by the client. Example: Generated from protobuf field string user_agent = 6;
|
| public hasLatency() |
| public setCacheFillBytes( $var) The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted. Generated from protobuf field int64 cache_fill_bytes = 12;
|
| public setCacheHit( $var) Whether or not an entity was served from cache (with or without validation). Generated from protobuf field bool cache_hit = 9;
|
| public setCacheLookup( $var) Whether or not a cache lookup was attempted. Generated from protobuf field bool cache_lookup = 11;
|
| public setCacheValidatedWithOriginServer( $var) Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if Generated from protobuf field bool cache_validated_with_origin_server = 10;
|
| public setLatency( $var) The request processing latency on the server, from the time the request was received until the response was sent. Generated from protobuf field .google.protobuf.Duration latency = 14;
|
| public setProtocol( $var) Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" Generated from protobuf field string protocol = 15;
|
| public setReferer( $var) The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. Generated from protobuf field string referer = 8;
|
| public setRemoteIp( $var) The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: Generated from protobuf field string remote_ip = 7;
|
| public setRequestMethod( $var) The request method. Examples: Generated from protobuf field string request_method = 1;
|
| public setRequestSize( $var) The size of the HTTP request message in bytes, including the request headers and the request body. Generated from protobuf field int64 request_size = 3;
|
| public setRequestUrl( $var) The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: Generated from protobuf field string request_url = 2;
|
| public setResponseSize( $var) The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. Generated from protobuf field int64 response_size = 5;
|
| public setServerIp( $var) The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: Generated from protobuf field string server_ip = 13;
|
| public setStatus( $var) The response code indicating the status of response. Examples: 200, 404. Generated from protobuf field int32 status = 4;
|
| public setUserAgent( $var) The user agent sent by the client. Example: Generated from protobuf field string user_agent = 6;
|
| Properties |
| protected $cache_fill_bytes = 0 The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted. Generated from protobuf field int64 cache_fill_bytes = 12; |
| protected $cache_hit = false Whether or not an entity was served from cache (with or without validation). Generated from protobuf field bool cache_hit = 9; |
| protected $cache_lookup = false Whether or not a cache lookup was attempted. Generated from protobuf field bool cache_lookup = 11; |
| protected $cache_validated_with_origin_server = false Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if Generated from protobuf field bool cache_validated_with_origin_server = 10; |
| protected $latency = NULL The request processing latency on the server, from the time the request was received until the response was sent. Generated from protobuf field .google.protobuf.Duration latency = 14; |
| protected $protocol = '' Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" Generated from protobuf field string protocol = 15; |
| protected $referer = '' The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. Generated from protobuf field string referer = 8; |
| protected $remote_ip = '' The IP address (IPv4 or IPv6) of the client that issued the HTTP request. This field can include port information. Examples: Generated from protobuf field string remote_ip = 7; |
| protected $request_method = '' The request method. Examples: Generated from protobuf field string request_method = 1; |
| protected $request_size = 0 The size of the HTTP request message in bytes, including the request headers and the request body. Generated from protobuf field int64 request_size = 3; |
| protected $request_url = '' The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: Generated from protobuf field string request_url = 2; |
| protected $response_size = 0 The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. Generated from protobuf field int64 response_size = 5; |
| protected $server_ip = '' The IP address (IPv4 or IPv6) of the origin server that the request was sent to. This field can include port information. Examples: Generated from protobuf field string server_ip = 13; |
| protected $status = 0 The response code indicating the status of response. Examples: 200, 404. Generated from protobuf field int32 status = 4; |
| protected $user_agent = '' The user agent sent by the client. Example: Generated from protobuf field string user_agent = 6; |
| Methods |