Andreas Tsagkaropoulos b20b1d6b77 First commit
Change-Id: Ibab69eb96bed65135dba0678964a0fd11d264dce
2023-10-24 12:32:57 +03:00

55 lines
2.7 KiB
Java

/*
* Copyright (c) 2023 Institute of Communication and Computer Systems
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package configuration;
import java.net.URI;
import java.util.logging.Level;
public class Constants {
//String constants
public static String EMPTY = "";
public static String SPACE = " ";
public static Double LOWER_LIMIT_DELTA = - 100.0;
public static Double UPPER_LIMIT_DELTA = - 100.0;
//Operational constants
public static boolean USE_CONFIGURATION_FILE_FOR_METRIC_VALUES_INPUT = false;
public static boolean USE_CONFIGURATION_FILE_FOR_METRIC_TOPICS_INPUT = false;
public static int elements_considered_in_prediction = 10;
public static String slo_violation_determination_method;
public static int time_horizon_seconds;
public static int maximum_acceptable_forward_predictions;
public static double confidence_interval;
public static double prediction_certainty;
public static String [] logic_operators = {"and","or"};
public static URI base_project_path;
public static String configuration_file_location = "src/main/resources/config/input_data.properties";
public static String amq_library_configuration_location = "src/main/resources/config/eu.melodic.event.brokerclient.properties";
public static String topic_for_severity_announcement = "prediction.slo_severity_value";
public static double slo_violation_probability_threshold = 0.5; //The threshold over which the probability of a predicted slo violation should be to have a violation detection
public static int kept_values_per_metric = 5; //Default to be overriden from the configuration file. This indicates how many metric values are kept to calculate the "previous" metric value during the rate of change calculation
public static String roc_calculation_mode = "prototype";
public static boolean self_publish_rule_file = false; //default value to be overriden
public static boolean single_slo_rule_active = true; //default value to be overriden
public static boolean first_run = true;
public static double roc_limit = 1;
public static double epsilon = 0.00000000001;
public static Level debug_logging_level = Level.OFF;
public static Level info_logging_level = Level.INFO; //Default to be overriden from the configuration file
public static Level warning_logging_level = Level.WARNING;//Default to be overriden from the configuration file
public static Level severe_logging_level = Level.SEVERE;
//Formatting constants
public static String dashed_line = "\n----------------------\n";
}