target.apidocs.com.google.api.services.cloudtrace.v2beta1.CloudTrace.Projects.TraceSinks.html Maven / Gradle / Ivy
CloudTrace.Projects.TraceSinks (Cloud Trace API v2beta1-rev20200805-1.31.0)
com.google.api.services.cloudtrace.v2beta1
Class CloudTrace.Projects.TraceSinks
- java.lang.Object
-
- com.google.api.services.cloudtrace.v2beta1.CloudTrace.Projects.TraceSinks
-
- Enclosing class:
- CloudTrace.Projects
public class CloudTrace.Projects.TraceSinks
extends Object
The "traceSinks" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
CloudTrace.Projects.TraceSinks.Create
class
CloudTrace.Projects.TraceSinks.Delete
class
CloudTrace.Projects.TraceSinks.Get
class
CloudTrace.Projects.TraceSinks.List
class
CloudTrace.Projects.TraceSinks.Patch
-
Constructor Summary
Constructors
Constructor and Description
TraceSinks()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CloudTrace.Projects.TraceSinks.Create
create(String parent,
TraceSink content)
Creates a sink that exports trace spans to a destination.
CloudTrace.Projects.TraceSinks.Delete
delete(String name)
Deletes a sink.
CloudTrace.Projects.TraceSinks.Get
get(String name)
Get a trace sink by name under the parent resource (GCP project).
CloudTrace.Projects.TraceSinks.List
list(String parent)
List all sinks for the parent resource (GCP project).
CloudTrace.Projects.TraceSinks.Patch
patch(String name,
TraceSink content)
Updates a sink.
-
-
Method Detail
-
create
public CloudTrace.Projects.TraceSinks.Create create(String parent,
TraceSink content)
throws IOException
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').
Create a request for the method "traceSinks.create".
This request holds the parameters needed by the cloudtrace server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The resource in which to create the sink (currently only project sinks are supported):
"projects/[PROJECT_ID]" Examples: `"projects/my-trace-project"`, `"projects/123456789"`.
content
- the TraceSink
- Returns:
- the request
- Throws:
IOException
-
delete
public CloudTrace.Projects.TraceSinks.Delete delete(String name)
throws IOException
Deletes a sink.
Create a request for the method "traceSinks.delete".
This request holds the parameters needed by the cloudtrace server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
`"projects/12345/traceSinks/my-sink-id"`.
- Returns:
- the request
- Throws:
IOException
-
get
public CloudTrace.Projects.TraceSinks.Get get(String name)
throws IOException
Get a trace sink by name under the parent resource (GCP project).
Create a request for the method "traceSinks.get".
This request holds the parameters needed by the cloudtrace server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name of the sink: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
`"projects/12345/traceSinks/my-sink-id"`.
- Returns:
- the request
- Throws:
IOException
-
list
public CloudTrace.Projects.TraceSinks.List list(String parent)
throws IOException
List all sinks for the parent resource (GCP project).
Create a request for the method "traceSinks.list".
This request holds the parameters needed by the cloudtrace server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource whose sinks are to be listed (currently only project parent resources
are supported): "projects/[PROJECT_ID]"
- Returns:
- the request
- Throws:
IOException
-
patch
public CloudTrace.Projects.TraceSinks.Patch patch(String name,
TraceSink content)
throws IOException
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).
Create a request for the method "traceSinks.patch".
This request holds the parameters needed by the cloudtrace server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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:
`"projects/12345/traceSinks/my-sink-id"`.
content
- the TraceSink
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy