target.apidocs.com.google.api.services.logging.v2.Logging.Projects.Metrics.html Maven / Gradle / Ivy
Logging.Projects.Metrics (Cloud Logging API v2-rev20240908-2.0.0)
com.google.api.services.logging.v2
Class Logging.Projects.Metrics
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Projects.Metrics
-
- Enclosing class:
- Logging.Projects
public class Logging.Projects.Metrics
extends Object
The "metrics" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Projects.Metrics.Create
class
Logging.Projects.Metrics.Delete
class
Logging.Projects.Metrics.Get
class
Logging.Projects.Metrics.List
class
Logging.Projects.Metrics.Update
-
Constructor Summary
Constructors
Constructor and Description
Metrics()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Projects.Metrics.Create
create(String parent,
LogMetric content)
Creates a logs-based metric.
Logging.Projects.Metrics.Delete
delete(String metricName)
Deletes a logs-based metric.
Logging.Projects.Metrics.Get
get(String metricName)
Gets a logs-based metric.
Logging.Projects.Metrics.List
list(String parent)
Lists logs-based metrics.
Logging.Projects.Metrics.Update
update(String metricName,
LogMetric content)
Creates or updates a logs-based metric.
-
-
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