Interface CreateMetricResponse.Builder

  • Method Details

    • metric

      The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.

      Parameters:
      metric - The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metric

      The newly created metric, in the app's draft. It goes live on the next app-level PublishDraft.

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

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

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