Interface Node.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Node.Builder,Node>, SdkBuilder<Node.Builder,Node>, SdkPojo
Enclosing class:
Node

@Mutable @NotThreadSafe public static interface Node.Builder extends SdkPojo, CopyableBuilder<Node.Builder,Node>
  • Method Details

    • nodeId

      Node.Builder nodeId(String nodeId)

      The unique identifier of the node within the context graph.

      Parameters:
      nodeId - The unique identifier of the node within the context graph.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeType

      Node.Builder nodeType(String nodeType)

      Whether the node is a service, a resource, or a remote service.

      Parameters:
      nodeType - Whether the node is a service, a resource, or a remote service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nodeType

      Node.Builder nodeType(NodeType nodeType)

      Whether the node is a service, a resource, or a remote service.

      Parameters:
      nodeType - Whether the node is a service, a resource, or a remote service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      Node.Builder name(String name)

      The primary display name of the node.

      Parameters:
      name - The primary display name of the node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alternateNames

      Node.Builder alternateNames(Collection<String> alternateNames)

      Other names this node was observed under. A node that merged across sources reports one resolved name, and the names it was merged away from appear here.

      Parameters:
      alternateNames - Other names this node was observed under. A node that merged across sources reports one resolved name, and the names it was merged away from appear here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alternateNames

      Node.Builder alternateNames(String... alternateNames)

      Other names this node was observed under. A node that merged across sources reports one resolved name, and the names it was merged away from appear here.

      Parameters:
      alternateNames - Other names this node was observed under. A node that merged across sources reports one resolved name, and the names it was merged away from appear here.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags observed on the underlying resource.

      Parameters:
      tags - The tags observed on the underlying resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeProperties

      Node.Builder nodeProperties(NodeProperties nodeProperties)

      Identity attributes promoted out of the flat attribute map onto typed members.

      Parameters:
      nodeProperties - Identity attributes promoted out of the flat attribute map onto typed members.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeProperties

      default Node.Builder nodeProperties(Consumer<NodeProperties.Builder> nodeProperties)

      Identity attributes promoted out of the flat attribute map onto typed members.

      This is a convenience method that creates an instance of the NodeProperties.Builder avoiding the need to create one manually via NodeProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to nodeProperties(NodeProperties).

      Parameters:
      nodeProperties - a consumer that will call methods on NodeProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • telemetryAttributes

      Node.Builder telemetryAttributes(Map<String,String> telemetryAttributes)

      The node's OpenTelemetry (OTel) attributes, as emitted by telemetry — the raw values, as opposed to the normalized nodeProperties. A key promoted onto a nodeProperties member is removed here, so no value appears twice.

      Parameters:
      telemetryAttributes - The node's OpenTelemetry (OTel) attributes, as emitted by telemetry — the raw values, as opposed to the normalized nodeProperties. A key promoted onto a nodeProperties member is removed here, so no value appears twice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operationDetails

      Node.Builder operationDetails(Map<String,? extends Collection<? extends Map<String,String>>> operationDetails)

      The operations observed on this node, keyed by operation name. Each value lists the dimension sets that identify the metric series for that operation.

      Parameters:
      operationDetails - The operations observed on this node, keyed by operation name. Each value lists the dimension sets that identify the metric series for that operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypesWithStrings

      Node.Builder signalTypesWithStrings(Collection<String> signalTypes)

      The kinds of telemetry signal observed on this node.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypesWithStrings

      Node.Builder signalTypesWithStrings(String... signalTypes)

      The kinds of telemetry signal observed on this node.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypes

      Node.Builder signalTypes(Collection<Signal> signalTypes)

      The kinds of telemetry signal observed on this node.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypes

      Node.Builder signalTypes(Signal... signalTypes)

      The kinds of telemetry signal observed on this node.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcesWithStrings

      Node.Builder sourcesWithStrings(Collection<String> sources)

      The discovery sources that contributed this node.

      Parameters:
      sources - The discovery sources that contributed this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcesWithStrings

      Node.Builder sourcesWithStrings(String... sources)

      The discovery sources that contributed this node.

      Parameters:
      sources - The discovery sources that contributed this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Node.Builder sources(Collection<Source> sources)

      The discovery sources that contributed this node.

      Parameters:
      sources - The discovery sources that contributed this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Node.Builder sources(Source... sources)

      The discovery sources that contributed this node.

      Parameters:
      sources - The discovery sources that contributed this node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Node.Builder metadata(Metadata metadata)

      Descriptive metadata about the node. Present only when the request sets includeMetadata.

      Parameters:
      metadata - Descriptive metadata about the node. Present only when the request sets includeMetadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      default Node.Builder metadata(Consumer<Metadata.Builder> metadata)

      Descriptive metadata about the node. Present only when the request sets includeMetadata.

      This is a convenience method that creates an instance of the Metadata.Builder avoiding the need to create one manually via Metadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metadata(Metadata).

      Parameters:
      metadata - a consumer that will call methods on Metadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firstObservedAt

      Node.Builder firstObservedAt(Instant firstObservedAt)

      When this node was first observed (UTC), at minute granularity. For a node that merged across sources, this is the earliest value any source reported.

      Parameters:
      firstObservedAt - When this node was first observed (UTC), at minute granularity. For a node that merged across sources, this is the earliest value any source reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastObservedAt

      Node.Builder lastObservedAt(Instant lastObservedAt)

      When this node was most recently observed (UTC), at minute granularity. For a node that merged across sources, this is the latest value any source reported.

      Parameters:
      lastObservedAt - When this node was most recently observed (UTC), at minute granularity. For a node that merged across sources, this is the latest value any source reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edges

      Node.Builder edges(Collection<Edge> edges)

      Outbound edges originating from this node. Each edge carries its from.

      Parameters:
      edges - Outbound edges originating from this node. Each edge carries its from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edges

      Node.Builder edges(Edge... edges)

      Outbound edges originating from this node. Each edge carries its from.

      Parameters:
      edges - Outbound edges originating from this node. Each edge carries its from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edges

      Outbound edges originating from this node. Each edge carries its from.

      This is a convenience method that creates an instance of the Edge.Builder avoiding the need to create one manually via Edge.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to edges(List<Edge>).

      Parameters:
      edges - a consumer that will call methods on Edge.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: