Document lifetime & error type

This commit is contained in:
Jan-Erik Rediger 2021-12-02 14:36:20 +01:00 коммит произвёл Jan-Erik Rediger
Родитель 852059bbc4
Коммит 5d996aec7d
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -163,12 +163,19 @@ interface UploadResult {
HttpStatus(i32 code);
};
// The supported metrics' lifetimes.
//
// A metric's lifetime determines when its stored data gets reset.
enum Lifetime {
// The metric is reset with each sent ping
"Ping",
// The metric is reset on application restart
"Application",
// The metric is reset with each user profile
"User",
};
// The possible error types for metric recording.
enum ErrorType {
// For when the value to be recorded does not match the metric-specific restrictions
"InvalidValue",