All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.cloudtrace.v2beta1.CloudTrace.Projects.TraceSinks.html Maven / Gradle / Ivy

There is a newer version: v2-rev20230511-2.0.0
Show newest version






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.
    • Constructor Detail

      • TraceSinks

        public TraceSinks()
    • 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