Klasse ReadRulesOperationSpec

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

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

Specification for the ReadRules operation.

Returns currently loaded rules

  • Felddetails

    • VALIDATION_ENABLED

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

    • ReadRulesOperationSpec

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

      @Internal public ReadRulesOperationSpec(String type)
      Constructs a validated instance of ReadRulesOperationSpec.

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

      Parameter:
      type - Return only the alerting rules (e.g. type=alert) or the recording rules (e.g. type=record). When the parameter is absent or empty, no filtering is done.
    • ReadRulesOperationSpec

      protected ReadRulesOperationSpec()
  • Methodendetails

    • validate

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

    • type

      @Nullable public @Nullable String type()
      Return only the alerting rules (e.g. type=alert) or the recording rules (e.g. type=record). When the parameter is absent or empty, no filtering is done.
    • type

      public ReadRulesOperationSpec type(@Nullable @Nullable String type)
      Return only the alerting rules (e.g. type=alert) or the recording rules (e.g. type=record). When the parameter is absent or empty, no filtering is done.
      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