All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.jobs.JobsHealthRule Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.jobs;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

@Generated
public class JobsHealthRule {
  /**
   * Specifies the health metric that is being evaluated for a particular health rule.
   *
   * 

* `RUN_DURATION_SECONDS`: Expected total time for a run in seconds. * * `STREAMING_BACKLOG_BYTES`: An estimate of the maximum bytes of data waiting to be consumed * across all streams. This metric is in Private Preview. * `STREAMING_BACKLOG_RECORDS`: An * estimate of the maximum offset lag across all streams. This metric is in Private Preview. * * `STREAMING_BACKLOG_SECONDS`: An estimate of the maximum consumer delay across all streams. This * metric is in Private Preview. * `STREAMING_BACKLOG_FILES`: An estimate of the maximum number of * outstanding files across all streams. This metric is in Private Preview. */ @JsonProperty("metric") private JobsHealthMetric metric; /** * Specifies the operator used to compare the health metric value with the specified threshold. */ @JsonProperty("op") private JobsHealthOperator op; /** * Specifies the threshold value that the health metric should obey to satisfy the health rule. */ @JsonProperty("value") private Long value; public JobsHealthRule setMetric(JobsHealthMetric metric) { this.metric = metric; return this; } public JobsHealthMetric getMetric() { return metric; } public JobsHealthRule setOp(JobsHealthOperator op) { this.op = op; return this; } public JobsHealthOperator getOp() { return op; } public JobsHealthRule setValue(Long value) { this.value = value; return this; } public Long getValue() { return value; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; JobsHealthRule that = (JobsHealthRule) o; return Objects.equals(metric, that.metric) && Objects.equals(op, that.op) && Objects.equals(value, that.value); } @Override public int hashCode() { return Objects.hash(metric, op, value); } @Override public String toString() { return new ToStringer(JobsHealthRule.class) .add("metric", metric) .add("op", op) .add("value", value) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy