Interface MetricPolicy.Builder

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

public static interface MetricPolicy.Builder extends SdkPojo, CopyableBuilder<MetricPolicy.Builder,MetricPolicy>
  • Method Details

    • containerLevelMetrics

      MetricPolicy.Builder containerLevelMetrics(String containerLevelMetrics)

      A setting to enable or disable metrics at the container level.

      Parameters:
      containerLevelMetrics - A setting to enable or disable metrics at the container level.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • containerLevelMetrics

      MetricPolicy.Builder containerLevelMetrics(ContainerLevelMetrics containerLevelMetrics)

      A setting to enable or disable metrics at the container level.

      Parameters:
      containerLevelMetrics - A setting to enable or disable metrics at the container level.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metricPolicyRules

      MetricPolicy.Builder metricPolicyRules(Collection<MetricPolicyRule> metricPolicyRules)

      A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.

      Parameters:
      metricPolicyRules - A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricPolicyRules

      MetricPolicy.Builder metricPolicyRules(MetricPolicyRule... metricPolicyRules)

      A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.

      Parameters:
      metricPolicyRules - A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricPolicyRules

      MetricPolicy.Builder metricPolicyRules(Consumer<MetricPolicyRule.Builder>... metricPolicyRules)

      A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.

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

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

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