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

target.apidocs.com.google.api.services.servicemanagement.model.Logging.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241106-2.0.0
Show newest version






Logging (Service Management API v1-rev20240920-2.0.0)












com.google.api.services.servicemanagement.model

Class Logging

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


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

      • Logging

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