summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/proto/alarm/v1/config.proto
blob: 430078fcfd35099745b29a6033518b6bce3ade29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
syntax = "proto3";

package alarms.v1;

option go_package = "alarms/v1;alarms";

message SendAlarmConfiguration{
    string config_hash = 1;
}

message ProvideAlarmConfiguration {
    string config_hash = 1;
    AlarmConfiguration config = 2;
}

message AlarmConfiguration{
    string alarm = 1;
    string template = 2;
    string on_chart = 3;
    
    string classification = 4;
    string type = 5;
    string component = 6;
        
    string os = 7;
    string hosts = 8;
    string plugin = 9;
    string module = 10;
    string charts = 11;
    string families = 12;
    string lookup = 13;
    string every = 14;
    string units = 15;

    string green = 16;
    string red = 17;

    string calculation_expr = 18;
    string warning_expr = 19;
    string critical_expr = 20;
    
    string recipient = 21;
    string exec = 22;
    string delay = 23;
    string repeat = 24;
    string info = 25;
    string options = 26;
    string host_labels = 27;
    
    //parsed values from above config values
    //indicated by p_
    int32 p_db_lookup_after = 28;
    int32 p_db_lookup_before = 29;
    string p_db_lookup_dimensions = 30;
    string p_db_lookup_method = 31;
    string p_db_lookup_options = 32;
    int32 p_update_every = 33;

    string chart_labels = 34;
    string summary = 35;
}