GetBackendServiceLogConfig class
Constructors
-
GetBackendServiceLogConfig({required Input<bool> enable, required Input<List<String>> optionalFields, required Input<String> optionalMode, required Input<double> sampleRate})
-
Creates a new GetBackendServiceLogConfig.
enable Whether to enable logging for the load balancer traffic served by this backend service.
optionalFields This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode"
optionalMode Specifies the optional logging mode for the load balancer traffic.
requestHeaders This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of request headers to be logged.
responseHeaders This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of response headers to be logged.
sampleRate This field can only be specified if logging is enabled for this backend service. The value of
const
-
GetBackendServiceLogConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
enable
→ Input<bool>
-
Whether to enable logging for the load balancer traffic served by this backend service.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
optionalFields
→ Input<List<String>>
-
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
For example: orca_load_report, tls.protocol
final
-
optionalMode
→ Input<String>
-
Specifies the optional logging mode for the load balancer traffic.
Supported values: INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM. Possible values:
"INCLUDE_ALL_OPTIONAL", "EXCLUDE_ALL_OPTIONAL", "CUSTOM"
final
-
This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of request headers to be logged.
final
-
This field can only be specified if logging is enabled for this backend service and if the BackendService protocol is one of HTTP, HTTPS, HTTP2 and GRPC. Contains a list of response headers to be logged.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sampleRate
→ Input<double>
-
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.
final