Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | option go_package = "github.com/opencord/device-management-interface/v3/go/dmi"; |
| 4 | package dmi; |
| 5 | |
| 6 | // Common structures used across the different Device Management services |
| 7 | |
| 8 | enum Status { |
| 9 | UNDEFINED_STATUS = 0; |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 10 | OK_STATUS = 1; |
| 11 | ERROR_STATUS = 2; |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | // Reason for the failure of request |
| 15 | enum Reason { |
| 16 | UNDEFINED_REASON = 0; |
| 17 | UNKNOWN_DEVICE = 1; |
| 18 | INTERNAL_ERROR = 2; |
| 19 | WRONG_METRIC = 3; |
| 20 | WRONG_EVENT = 4; |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 21 | LOGGING_ENDPOINT_ERROR = 5; |
| 22 | LOGGING_ENDPOINT_PROTOCOL_ERROR = 6; |
| 23 | KAFKA_ENDPOINT_ERROR = 7; |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 24 | UNKNOWN_LOG_ENTITY = 8; |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame^] | 25 | ERROR_FETCHING_CONFIG = 9; |
| 26 | INVALID_CONFIG = 10; |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 27 | } |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 28 | |
| 29 | //Log Level |
| 30 | enum LogLevel { |
| 31 | TRACE = 0; |
| 32 | DEBUG = 1; |
| 33 | INFO = 2; |
| 34 | WARN = 3; |
| 35 | ERROR = 4; |
| 36 | } |