Interface ServiceOperation.Builder

  • Method Details

    • name

      The name of the operation, discovered by Application Signals.

      Parameters:
      name - The name of the operation, discovered by Application Signals.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricReferences

      ServiceOperation.Builder metricReferences(Collection<MetricReference> metricReferences)

      An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals.

      Parameters:
      metricReferences - An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricReferences

      ServiceOperation.Builder metricReferences(MetricReference... metricReferences)

      An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals.

      Parameters:
      metricReferences - An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricReferences

      ServiceOperation.Builder metricReferences(Consumer<MetricReference.Builder>... metricReferences)

      An array of structures that each contain information about one metric associated with this service operation that was discovered by Application Signals.

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

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

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