final case class ResourceMetrics(resource: Option[Resource] = _root_.scala.None, scopeMetrics: Seq[ScopeMetrics] = _root_.scala.Seq.empty, instrumentationLibraryMetrics: Seq[InstrumentationLibraryMetrics] = _root_.scala.Seq.empty, schemaUrl: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[ResourceMetrics] with Product with Serializable
A collection of ScopeMetrics from a Resource.
- resource
The resource for the metrics in this message. If this field is not set then no resource info is known.
- scopeMetrics
A list of metrics that originate from a resource.
- instrumentationLibraryMetrics
A list of InstrumentationLibraryMetrics that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs
Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead scope_metrics SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set and scope_metrics is not set then the value in instrumentation_library_metrics SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics. If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored. For JSON
JSON senders that set instrumentation_library_metrics field MAY also set scope_metrics to carry the same metrics, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_metrics and SHOULD NOT set instrumentation_library_metrics. JSON receivers SHOULD check if instrumentation_library_metrics is set and scope_metrics is not set then the value in instrumentation_library_metrics SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics. If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
- schemaUrl
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- ResourceMetrics
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ResourceMetrics(resource: Option[Resource] = _root_.scala.None, scopeMetrics: Seq[ScopeMetrics] = _root_.scala.Seq.empty, instrumentationLibraryMetrics: Seq[InstrumentationLibraryMetrics] = _root_.scala.Seq.empty, schemaUrl: String = "", unknownFields: UnknownFieldSet = ...)
- resource
The resource for the metrics in this message. If this field is not set then no resource info is known.
- scopeMetrics
A list of metrics that originate from a resource.
- instrumentationLibraryMetrics
A list of InstrumentationLibraryMetrics that originate from a resource. This field is deprecated and will be removed after grace period expires on June 15, 2022. During the grace period the following rules SHOULD be followed: For Binary Protobufs
Binary Protobuf senders SHOULD NOT set instrumentation_library_metrics. Instead scope_metrics SHOULD be set. Binary Protobuf receivers SHOULD check if instrumentation_library_metrics is set and scope_metrics is not set then the value in instrumentation_library_metrics SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics. If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored. For JSON
JSON senders that set instrumentation_library_metrics field MAY also set scope_metrics to carry the same metrics, essentially double-publishing the same data. Such double-publishing MAY be controlled by a user-settable option. If double-publishing is not used then the senders SHOULD set scope_metrics and SHOULD NOT set instrumentation_library_metrics. JSON receivers SHOULD check if instrumentation_library_metrics is set and scope_metrics is not set then the value in instrumentation_library_metrics SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics. If scope_metrics is set then instrumentation_library_metrics field SHOULD be ignored.
- schemaUrl
This schema_url applies to the data in the "resource" field. It does not apply to the data in the "scope_metrics" field which have their own schema_url field.
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 addAllInstrumentationLibraryMetrics(__vs: Iterable[InstrumentationLibraryMetrics]): ResourceMetrics
- def addAllScopeMetrics(__vs: Iterable[ScopeMetrics]): ResourceMetrics
- def addInstrumentationLibraryMetrics(__vs: InstrumentationLibraryMetrics*): ResourceMetrics
- def addScopeMetrics(__vs: ScopeMetrics*): ResourceMetrics
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearInstrumentationLibraryMetrics: ResourceMetrics
- def clearResource: ResourceMetrics
- def clearScopeMetrics: ResourceMetrics
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
companion: ResourceMetrics.type
- Definition Classes
- ResourceMetrics → GeneratedMessage
- def discardUnknownFields: ResourceMetrics
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- ResourceMetrics → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- ResourceMetrics → GeneratedMessage
- def getResource: Resource
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val resource: Option[Resource]
- val schemaUrl: String
- val scopeMetrics: Seq[ScopeMetrics]
-
def
serializedSize: Int
- Definition Classes
- ResourceMetrics → 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
- ResourceMetrics → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[ResourceMetrics, ResourceMetrics]) ⇒ Mutation[ResourceMetrics]*): ResourceMetrics
- Definition Classes
- Updatable
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withInstrumentationLibraryMetrics(__v: Seq[InstrumentationLibraryMetrics]): ResourceMetrics
- def withResource(__v: Resource): ResourceMetrics
- def withSchemaUrl(__v: String): ResourceMetrics
- def withScopeMetrics(__v: Seq[ScopeMetrics]): ResourceMetrics
- def withUnknownFields(__v: UnknownFieldSet): ResourceMetrics
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- ResourceMetrics → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
val
instrumentationLibraryMetrics: Seq[InstrumentationLibraryMetrics]
- Annotations
- @deprecated
- Deprecated
(Since version ) Marked as deprecated in proto file