Interface Service.Builder

    • Method Detail

      • referenceId

        Service.Builder referenceId​(Integer referenceId)

        Identifier for the service. Unique within the service map.

        Parameters:
        referenceId - Identifier for the service. Unique within the service map.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        Service.Builder name​(String name)

        The canonical name of the service.

        Parameters:
        name - The canonical name of the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • names

        Service.Builder names​(Collection<String> names)

        A list of names for the service, including the canonical name.

        Parameters:
        names - A list of names for the service, including the canonical name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • names

        Service.Builder names​(String... names)

        A list of names for the service, including the canonical name.

        Parameters:
        names - A list of names for the service, including the canonical name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • root

        Service.Builder root​(Boolean root)

        Indicates that the service was the first service to process a request.

        Parameters:
        root - Indicates that the service was the first service to process a request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountId

        Service.Builder accountId​(String accountId)

        Identifier of the Amazon Web Services account in which the service runs.

        Parameters:
        accountId - Identifier of the Amazon Web Services account in which the service runs.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        Service.Builder type​(String type)

        The type of service.

        • Amazon Web Services Resource - The type of an Amazon Web Services resource. For example, AWS::EC2::Instance for an application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.

        • Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.

        • client - Represents the clients that sent requests to a root service.

        • remote - A downstream service of indeterminate type.

        Parameters:
        type - The type of service.

        • Amazon Web Services Resource - The type of an Amazon Web Services resource. For example, AWS::EC2::Instance for an application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.

        • Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.

        • client - Represents the clients that sent requests to a root service.

        • remote - A downstream service of indeterminate type.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        Service.Builder state​(String state)

        The service's state.

        Parameters:
        state - The service's state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTime

        Service.Builder startTime​(Instant startTime)

        The start time of the first segment that the service generated.

        Parameters:
        startTime - The start time of the first segment that the service generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTime

        Service.Builder endTime​(Instant endTime)

        The end time of the last segment that the service generated.

        Parameters:
        endTime - The end time of the last segment that the service generated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • edges

        Service.Builder edges​(Collection<Edge> edges)

        Connections to downstream services.

        Parameters:
        edges - Connections to downstream services.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • edges

        Service.Builder edges​(Edge... edges)

        Connections to downstream services.

        Parameters:
        edges - Connections to downstream services.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • edges

        Service.Builder edges​(Consumer<Edge.Builder>... edges)

        Connections to downstream services.

        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).

        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:
        #edges(java.util.Collection)
      • summaryStatistics

        Service.Builder summaryStatistics​(ServiceStatistics summaryStatistics)

        Aggregated statistics for the service.

        Parameters:
        summaryStatistics - Aggregated statistics for the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationHistogram

        Service.Builder durationHistogram​(Collection<HistogramEntry> durationHistogram)

        A histogram that maps the spread of service durations.

        Parameters:
        durationHistogram - A histogram that maps the spread of service durations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationHistogram

        Service.Builder durationHistogram​(HistogramEntry... durationHistogram)

        A histogram that maps the spread of service durations.

        Parameters:
        durationHistogram - A histogram that maps the spread of service durations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responseTimeHistogram

        Service.Builder responseTimeHistogram​(Collection<HistogramEntry> responseTimeHistogram)

        A histogram that maps the spread of service response times.

        Parameters:
        responseTimeHistogram - A histogram that maps the spread of service response times.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responseTimeHistogram

        Service.Builder responseTimeHistogram​(HistogramEntry... responseTimeHistogram)

        A histogram that maps the spread of service response times.

        Parameters:
        responseTimeHistogram - A histogram that maps the spread of service response times.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responseTimeHistogram

        Service.Builder responseTimeHistogram​(Consumer<HistogramEntry.Builder>... responseTimeHistogram)

        A histogram that maps the spread of service response times.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #responseTimeHistogram(List).

        Parameters:
        responseTimeHistogram - a consumer that will call methods on HistogramEntry.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #responseTimeHistogram(java.util.Collection)