Google_Service_Tracing_Resource_ProjectsTraces
extends Google_Service_Resource
in package
The "traces" collection of methods.
Typical usage is:
$tracingService = new Google_Service_Tracing(...);
$traces = $tracingService->traces;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- batchWrite() : Google_Service_Tracing_TracingEmpty
- Sends new spans to Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of spans. (traces.batchWrite)
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- listProjectsTraces() : Google_Service_Tracing_ListTracesResponse
- Returns of a list of traces that match the specified filter conditions.
- listSpans() : Google_Service_Tracing_ListSpansResponse
- Returns a list of spans within a trace. (traces.listSpans)
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —batchWrite()
Sends new spans to Stackdriver Trace or updates existing traces. If the name of a trace that you send matches that of an existing trace, new spans are added to the existing trace. Attempt to update existing spans results undefined behavior. If the name does not match, a new trace is created with given set of spans. (traces.batchWrite)
public
batchWrite(string $name, Google_Service_Tracing_BatchWriteSpansRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Tracing_TracingEmpty
Parameters
- $name : string
-
Name of the project where the spans belong to. Format is
projects/PROJECT_ID. - $postBody : Google_Service_Tracing_BatchWriteSpansRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Tracing_TracingEmpty —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
listProjectsTraces()
Returns of a list of traces that match the specified filter conditions.
public
listProjectsTraces(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Tracing_ListTracesResponse
(traces.listProjectsTraces)
Parameters
- $parent : string
-
ID of the Cloud project where the trace data is stored which is
projects/PROJECT_ID. - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Tracing_ListTracesResponse —listSpans()
Returns a list of spans within a trace. (traces.listSpans)
public
listSpans(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Tracing_ListSpansResponse
Parameters
- $parent : string
-
ID of the trace for which to list child spans. Format is
projects/PROJECT_ID/traces/TRACE_ID. - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Tracing_ListSpansResponse —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed