Class ProjectsResource.TraceSinksResource
The "traceSinks" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudTrace.v2beta1
Assembly: Google.Apis.CloudTrace.v2beta1.dll
Syntax
public class ProjectsResource.TraceSinksResource
Constructors
TraceSinksResource(IClientService)
Constructs a new resource.
Declaration
public TraceSinksResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(TraceSink, string)
Creates a sink that exports trace spans to a destination. The export of newly-ingested traces begins
immediately, unless the sink's writer_identity
is not permitted to write to the destination. A sink
can export traces only from the resource owning the sink (the 'parent').
Declaration
public virtual ProjectsResource.TraceSinksResource.CreateRequest Create(TraceSink body, string parent)
Parameters
Type | Name | Description |
---|---|---|
TraceSink | body | The body of the request. |
string | parent | Required. The resource in which to create the sink (currently only project sinks are supported):
"projects/[PROJECT_ID]" Examples: |
Returns
Type | Description |
---|---|
ProjectsResource.TraceSinksResource.CreateRequest |
Delete(string)
Deletes a sink.
Declaration
public virtual ProjectsResource.TraceSinksResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The full resource name of the sink to delete, including the parent resource and the sink
identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
|
Returns
Type | Description |
---|---|
ProjectsResource.TraceSinksResource.DeleteRequest |
Get(string)
Get a trace sink by name under the parent resource (GCP project).
Declaration
public virtual ProjectsResource.TraceSinksResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the sink: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
|
Returns
Type | Description |
---|---|
ProjectsResource.TraceSinksResource.GetRequest |
List(string)
List all sinks for the parent resource (GCP project).
Declaration
public virtual ProjectsResource.TraceSinksResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource whose sinks are to be listed (currently only project parent resources are supported): "projects/[PROJECT_ID]" |
Returns
Type | Description |
---|---|
ProjectsResource.TraceSinksResource.ListRequest |
Patch(TraceSink, string)
Updates a sink. This method updates fields in the existing sink according to the provided update mask. The sink's name cannot be changed nor any output-only fields (e.g. the writer_identity).
Declaration
public virtual ProjectsResource.TraceSinksResource.PatchRequest Patch(TraceSink body, string name)
Parameters
Type | Name | Description |
---|---|---|
TraceSink | body | The body of the request. |
string | name | Required. The full resource name of the sink to update, including the parent resource and the sink
identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
|
Returns
Type | Description |
---|---|
ProjectsResource.TraceSinksResource.PatchRequest |