BackendServiceLogConfig constructor

const BackendServiceLogConfig({
  1. Input<bool?>? enable,
  2. Input<List<String>?>? optionalFields,
  3. Input<String?>? optionalMode,
  4. Input<List<BackendServiceLogConfigRequestHeader>?>? requestHeaders,
  5. Input<List<BackendServiceLogConfigResponseHeader>?>? responseHeaders,
  6. Input<double?>? sampleRate,
})

Creates a new BackendServiceLogConfig. 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

Implementation

const BackendServiceLogConfig({
  this.enable,
  this.optionalFields,
  this.optionalMode,
  this.requestHeaders,
  this.responseHeaders,
  this.sampleRate,
});