Class ProjectsResource.TracesResource.SpansResource.CreateSpanRequest
Creates a new span.
Inheritance
ProjectsResource.TracesResource.SpansResource.CreateSpanRequest
Inherited Members
Namespace: Google.Apis.CloudTrace.v2
Assembly: Google.Apis.CloudTrace.v2.dll
Syntax
public class ProjectsResource.TracesResource.SpansResource.CreateSpanRequest : CloudTraceBaseServiceRequest<Span>, IClientServiceRequest<Span>, IClientServiceRequest
Constructors
CreateSpanRequest(IClientService, Span, string)
Constructs a new CreateSpan request.
Declaration
public CreateSpanRequest(IClientService service, Span body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Span | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTrace.v2.Data.Span>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTrace.v2.Data.Span>.MethodName
Name
Required. The resource name of the span in the following format: *
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID]
is a unique identifier
for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It
should not be zero. [SPAN_ID]
is a unique identifier for a span within a trace; it is a
16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTrace.v2.Data.Span>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudTrace.v2.Data.Span>.GetBody()
InitParameters()
Initializes CreateSpan parameter list.
Declaration
protected override void InitParameters()