BigQuery Migration V2 API - Class Google::Api::Distribution::Exemplar (v0.2.0)

Reference documentation and code samples for the BigQuery Migration V2 API class Google::Api::Distribution::Exemplar.

Exemplars are example points that may be used to annotate aggregated distribution values. They are metadata that gives information about a particular value added to a Distribution bucket, such as a trace ID that was active when a value was added. They may contain further information, such as a example values and timestamps, origin, etc.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attachments

defattachments()->::Array<::Google::Protobuf::Any>
Returns
  • (::Array<::Google::Protobuf::Any>) — Contextual information about the example value. Examples are:

    Trace: type.googleapis.com/google.monitoring.v3.SpanContext

    Literal string: type.googleapis.com/google.protobuf.StringValue

    Labels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabels

    There may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system.

#attachments=

defattachments=(value)->::Array<::Google::Protobuf::Any>
Parameter
  • value (::Array<::Google::Protobuf::Any>) — Contextual information about the example value. Examples are:

    Trace: type.googleapis.com/google.monitoring.v3.SpanContext

    Literal string: type.googleapis.com/google.protobuf.StringValue

    Labels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabels

    There may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system.

Returns
  • (::Array<::Google::Protobuf::Any>) — Contextual information about the example value. Examples are:

    Trace: type.googleapis.com/google.monitoring.v3.SpanContext

    Literal string: type.googleapis.com/google.protobuf.StringValue

    Labels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabels

    There may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system.

#timestamp

deftimestamp()->::Google::Protobuf::Timestamp
Returns

#timestamp=

deftimestamp=(value)->::Google::Protobuf::Timestamp
Parameter
Returns

#value

defvalue()->::Float
Returns
  • (::Float) — Value of the exemplar point. This value determines to which bucket the exemplar belongs.

#value=

defvalue=(value)->::Float
Parameter
  • value (::Float) — Value of the exemplar point. This value determines to which bucket the exemplar belongs.
Returns
  • (::Float) — Value of the exemplar point. This value determines to which bucket the exemplar belongs.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.