final case class Logging(producerDestinations: Seq[LoggingDestination] = _root_.scala.Seq.empty, consumerDestinations: Seq[LoggingDestination] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Logging] with Product with Serializable
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
- monitored_resource: library.googleapis.com/branch
logs:
- 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.
- 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.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Logging
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Logging(producerDestinations: Seq[LoggingDestination] = _root_.scala.Seq.empty, consumerDestinations: Seq[LoggingDestination] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...)
- 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.
- 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.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllConsumerDestinations(__vs: Iterable[LoggingDestination]): Logging
- def addAllProducerDestinations(__vs: Iterable[LoggingDestination]): Logging
- def addConsumerDestinations(__vs: LoggingDestination*): Logging
- def addProducerDestinations(__vs: LoggingDestination*): Logging
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearConsumerDestinations: Logging
- def clearProducerDestinations: Logging
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Logging.type
- Definition Classes
- Logging → GeneratedMessage
- val consumerDestinations: Seq[LoggingDestination]
- def discardUnknownFields: Logging
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Logging → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Logging → GeneratedMessage
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val producerDestinations: Seq[LoggingDestination]
-
def
serializedSize: Int
- Definition Classes
- Logging → GeneratedMessage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Logging → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Logging, Logging]) ⇒ Mutation[Logging]*): Logging
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withConsumerDestinations(__v: Seq[LoggingDestination]): Logging
- def withProducerDestinations(__v: Seq[LoggingDestination]): Logging
- def withUnknownFields(__v: UnknownFieldSet): Logging
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Logging → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage