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

target.apidocs.com.google.api.services.logging.v2.Logging.Projects.Metrics.html Maven / Gradle / Ivy

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






Logging.Projects.Metrics (Cloud Logging API v2-rev20240419-2.0.0)












com.google.api.services.logging.v2

Class Logging.Projects.Metrics

  • Enclosing class:
    Logging.Projects


    public class Logging.Projects.Metrics
    extends Object
    The "metrics" collection of methods.
    • Constructor Detail

      • Metrics

        public Metrics()
    • Method Detail

      • create

        public Logging.Projects.Metrics.Create create(String parent,
                                                      LogMetric content)
                                               throws IOException
        Creates a logs-based metric. Create a request for the method "metrics.create". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.
        content - the LogMetric
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Logging.Projects.Metrics.Delete delete(String metricName)
                                               throws IOException
        Deletes a logs-based metric. Create a request for the method "metrics.delete". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        metricName - Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
        Returns:
        the request
        Throws:
        IOException
      • get

        public Logging.Projects.Metrics.Get get(String metricName)
                                         throws IOException
        Gets a logs-based metric. Create a request for the method "metrics.get". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        metricName - Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
        Returns:
        the request
        Throws:
        IOException
      • list

        public Logging.Projects.Metrics.List list(String parent)
                                           throws IOException
        Lists logs-based metrics. Create a request for the method "metrics.list". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - Required. The name of the project containing the metrics: "projects/[PROJECT_ID]"
        Returns:
        the request
        Throws:
        IOException
      • update

        public Logging.Projects.Metrics.Update update(String metricName,
                                                      LogMetric content)
                                               throws IOException
        Creates or updates a logs-based metric. Create a request for the method "metrics.update". This request holds the parameters needed by the logging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        metricName - Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.
        content - the LogMetric
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy