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

com.ververica.common.params.CreateAlarmTemplateParams Maven / Gradle / Ivy

package com.ververica.common.params;

import com.ververica.common.model.alarmrule.Comparators;
import com.ververica.common.model.alarmrule.NotifyRule;
import com.ververica.common.model.alarmrule.ThresholdType;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class CreateAlarmTemplateParams {
  @NotBlank(message = "name not set")
  String name;

  String description;
  String metric;
  /** This is the ID of the contact group */
  List receivers;

  List rule;

  NotifyRule notifyRule;

  @Data
  public static class Rule {
    Comparators comparator;
    /**
     * There are two kinds of threshold keys, respectively: 'CRITICAL' and 'WARNING',Value is Doble
     * type
     */
    Map thresholds;

    String checkInterval;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy