target.apidocs.com.google.api.services.servicemanagement.model.Logging.html Maven / Gradle / Ivy
Logging (Service Management API v1-rev20240823-2.0.0)
com.google.api.services.servicemanagement.model
Class Logging
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.servicemanagement.model.Logging
-
public final class Logging
extends com.google.api.client.json.GenericJson
Logging configuration of the service. The following example shows how to configure logs to be
sent to the producer and consumer projects. In the example, the `activity_history` log is sent to
both the producer and consumer projects, whereas the `purchase_history` log is only sent to the
producer project. monitored_resources: - type: library.googleapis.com/branch labels: - key: /city
description: The city where the library branch is located in. - key: /name description: The name
of the branch. logs: - name: activity_history labels: - key: /customer_id - name:
purchase_history logging: producer_destinations: - monitored_resource:
library.googleapis.com/branch logs: - activity_history - purchase_history consumer_destinations:
- monitored_resource: library.googleapis.com/branch logs: - activity_history
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Service Management API. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Logging()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging
clone()
List<LoggingDestination>
getConsumerDestinations()
Logging configurations for sending logs to the consumer project.
List<LoggingDestination>
getProducerDestinations()
Logging configurations for sending logs to the producer project.
Logging
set(String fieldName,
Object value)
Logging
setConsumerDestinations(List<LoggingDestination> consumerDestinations)
Logging configurations for sending logs to the consumer project.
Logging
setProducerDestinations(List<LoggingDestination> producerDestinations)
Logging configurations for sending logs to the producer project.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getConsumerDestinations
public List<LoggingDestination> getConsumerDestinations()
Logging configurations for sending logs to the consumer project. There can be multiple consumer
destinations, each one must have a different monitored resource type. A log can be used in at
most one consumer destination.
- Returns:
- value or
null
for none
-
setConsumerDestinations
public Logging setConsumerDestinations(List<LoggingDestination> consumerDestinations)
Logging configurations for sending logs to the consumer project. There can be multiple consumer
destinations, each one must have a different monitored resource type. A log can be used in at
most one consumer destination.
- Parameters:
consumerDestinations
- consumerDestinations or null
for none
-
getProducerDestinations
public List<LoggingDestination> getProducerDestinations()
Logging configurations for sending logs to the producer project. There can be multiple producer
destinations, each one must have a different monitored resource type. A log can be used in at
most one producer destination.
- Returns:
- value or
null
for none
-
setProducerDestinations
public Logging setProducerDestinations(List<LoggingDestination> producerDestinations)
Logging configurations for sending logs to the producer project. There can be multiple producer
destinations, each one must have a different monitored resource type. A log can be used in at
most one producer destination.
- Parameters:
producerDestinations
- producerDestinations or null
for none
-
set
public Logging set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Logging clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy