Class HaMetricDefinition.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • metricName

        public HaMetricDefinition.Builder metricName​(String metricName)
        The name of the metric.
        Parameters:
        metricName - the value to set
        Returns:
        this builder
      • metadata

        public HaMetricDefinition.Builder metadata​(Map<String,​String> metadata)
        The metadata qualifiers provided in the definition of the returned metric.

        Available metadata vary by metric.

        Parameters:
        metadata - the value to set
        Returns:
        this builder
      • dimensions

        public HaMetricDefinition.Builder dimensions​(Map<String,​String> dimensions)
        The dimension qualifiers provided in the definition of the returned metric.

        Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: {“resourceId”: “ocid1.instance.region1.phx.exampleuniqueID”}

        Parameters:
        dimensions - the value to set
        Returns:
        this builder
      • timestamp

        public HaMetricDefinition.Builder timestamp​(Date timestamp)
        The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
        Parameters:
        timestamp - the value to set
        Returns:
        this builder