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

target.apidocs.com.google.api.services.compute.model.BackendServiceLogConfig.html Maven / Gradle / Ivy

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






BackendServiceLogConfig (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class BackendServiceLogConfig

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


    public final class BackendServiceLogConfig
    extends com.google.api.client.json.GenericJson
    The available logging options for the load balancer traffic served by this backend service.

    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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • BackendServiceLogConfig

        public BackendServiceLogConfig()
    • Method Detail

      • getEnable

        public Boolean getEnable()
        Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
        Returns:
        value or null for none
      • setEnable

        public BackendServiceLogConfig setEnable(Boolean enable)
        Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
        Parameters:
        enable - enable or null for none
      • getOptionalFields

        public List<String> getOptionalFields()
        This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
        Returns:
        value or null for none
      • setOptionalFields

        public BackendServiceLogConfig setOptionalFields(List<String> optionalFields)
        This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
        Parameters:
        optionalFields - optionalFields or null for none
      • getOptionalMode

        public String getOptionalMode()
        This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
        Returns:
        value or null for none
      • setOptionalMode

        public BackendServiceLogConfig setOptionalMode(String optionalMode)
        This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
        Parameters:
        optionalMode - optionalMode or null for none
      • getSampleRate

        public Float getSampleRate()
        This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
        Returns:
        value or null for none
      • setSampleRate

        public BackendServiceLogConfig setSampleRate(Float sampleRate)
        This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
        Parameters:
        sampleRate - sampleRate or null for none
      • clone

        public BackendServiceLogConfig clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy