blob: 61d64663b6aee7925c1f1a3e00c8f6e7c48ebdd0 [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001syntax = "proto3";
2
3option go_package = "github.com/opencord/device-management-interface/v3/go/dmi";
4package dmi;
5
6// Common structures used across the different Device Management services
7
8enum Status {
9 UNDEFINED_STATUS = 0;
Andrea Campanellab91e9a42020-10-09 14:31:43 +020010 OK_STATUS = 1;
11 ERROR_STATUS = 2;
Amit Ghosh09f28362020-06-12 21:52:19 +010012}
13
14// Reason for the failure of request
15enum Reason {
16 UNDEFINED_REASON = 0;
17 UNKNOWN_DEVICE = 1;
18 INTERNAL_ERROR = 2;
19 WRONG_METRIC = 3;
20 WRONG_EVENT = 4;
amit.ghosh188a84f2020-09-27 20:59:25 +020021 LOGGING_ENDPOINT_ERROR = 5;
22 LOGGING_ENDPOINT_PROTOCOL_ERROR = 6;
23 KAFKA_ENDPOINT_ERROR = 7;
amit.ghosh5d97dba2020-11-12 16:45:27 +010024 UNKNOWN_LOG_ENTITY = 8;
Amit Ghosh09f28362020-06-12 21:52:19 +010025}
Andrea Campanellab91e9a42020-10-09 14:31:43 +020026
27//Log Level
28enum LogLevel {
29 TRACE = 0;
30 DEBUG = 1;
31 INFO = 2;
32 WARN = 3;
33 ERROR = 4;
34}