Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class HttpRequestContext.
HTTP request data that is related to a reported error.
This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.
Generated from protobuf message google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
Namespace
Google \ Cloud \ ErrorReporting \ V1beta1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ method
string
The type of HTTP request, such as GET
, POST
, etc.
↳ url
string
The URL of the request.
↳ user_agent
string
The user agent information that is provided with the request.
↳ referrer
string
The referrer information that is provided with the request.
↳ response_status_code
int
The HTTP response status code for the request.
↳ remote_ip
string
The IP address from which the request originated. This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report.
getMethod
The type of HTTP request, such as GET
, POST
, etc.
string
setMethod
The type of HTTP request, such as GET
, POST
, etc.
var
string
$this
getUrl
The URL of the request.
string
setUrl
The URL of the request.
var
string
$this
getUserAgent
The user agent information that is provided with the request.
string
setUserAgent
The user agent information that is provided with the request.
var
string
$this
getReferrer
The referrer information that is provided with the request.
string
setReferrer
The referrer information that is provided with the request.
var
string
$this
getResponseStatusCode
The HTTP response status code for the request.
int
setResponseStatusCode
The HTTP response status code for the request.
var
int
$this
getRemoteIp
The IP address from which the request originated.
This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report.
string
setRemoteIp
The IP address from which the request originated.
This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report.
var
string
$this