forked from mozilla/glean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glean_core.udl
44 lines (34 loc) · 841 Bytes
/
glean_core.udl
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
namespace glean {
boolean initialize(Configuration cfg);
boolean finish_initialize();
void enable_logging();
void set_upload_enabled(boolean enabled);
};
dictionary Configuration {
string data_dir;
string application_id;
string language_binding_name;
boolean upload_enabled;
u32? max_events;
boolean delay_ping_lifetime_io;
string app_build;
boolean use_core_mps;
};
enum Lifetime {
"Ping",
"Application",
"User",
};
dictionary CommonMetricData {
string category;
string name;
sequence<string> send_in_pings;
Lifetime lifetime;
boolean disabled;
string? dynamic_label = null;
};
interface CounterMetric {
constructor(CommonMetricData meta);
void add(optional u32 amount = 1);
i32? test_get_value(optional string? ping_name = null);
};