Klasse EvaluateQueryInstantOperationSpec

java.lang.Object
io.github.primelib.prometheus4j.spec.EvaluateQueryInstantOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class EvaluateQueryInstantOperationSpec extends Object
EvaluateQueryInstantSpec

Specification for the EvaluateQueryInstant operation.

Evaluates instant query

  • Felddetails

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Konstruktordetails

    • EvaluateQueryInstantOperationSpec

      @Internal public EvaluateQueryInstantOperationSpec(Consumer<EvaluateQueryInstantOperationSpec> spec)
      Constructs a validated instance of EvaluateQueryInstantOperationSpec.
      Parameter:
      spec - the specification to process
    • EvaluateQueryInstantOperationSpec

      @Internal public EvaluateQueryInstantOperationSpec(String query, String time, String timeout)
      Constructs a validated instance of EvaluateQueryInstantOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameter:
      query - Prometheus expression query string.
      time - Evaluation timestamp. Optional. The current server time is used if the time parameter is omitted.
      timeout - Evaluation timeout. Optional. Defaults to and is capped by the value of the -query.timeout flag.
    • EvaluateQueryInstantOperationSpec

      protected EvaluateQueryInstantOperationSpec()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • query

      @NotNull public @NotNull String query()
      Prometheus expression query string.
    • time

      @Nullable public @Nullable String time()
      Evaluation timestamp. Optional. The current server time is used if the time parameter is omitted.
    • timeout

      @Nullable public @Nullable String timeout()
      Evaluation timeout. Optional. Defaults to and is capped by the value of the -query.timeout flag.
    • query

      public EvaluateQueryInstantOperationSpec query(@NotNull @NotNull String query)
      Prometheus expression query string.
      Gibt zurück:
      this.
    • time

      public EvaluateQueryInstantOperationSpec time(@Nullable @Nullable String time)
      Evaluation timestamp. Optional. The current server time is used if the time parameter is omitted.
      Gibt zurück:
      this.
    • timeout

      public EvaluateQueryInstantOperationSpec timeout(@Nullable @Nullable String timeout)
      Evaluation timeout. Optional. Defaults to and is capped by the value of the -query.timeout flag.
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object