dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/models/consts.go (about) 1 package models 2 3 // Constants for AdminState 4 const ( 5 // Locked : device is locked 6 // Unlocked : device is unlocked 7 Locked = "LOCKED" 8 Unlocked = "UNLOCKED" 9 ) 10 11 // Constants for ChannelType 12 const ( 13 Rest = "REST" 14 Email = "EMAIL" 15 ) 16 17 // Constants for NotificationSeverity 18 const ( 19 Minor = "MINOR" 20 Critical = "CRITICAL" 21 Normal = "NORMAL" 22 ) 23 24 // Constants for NotificationStatus 25 const ( 26 New = "NEW" 27 Processed = "PROCESSED" 28 29 EscalationSubscriptionName = "ESCALATION" 30 EscalationPrefix = "escalated-" 31 EscalatedContentNotice = "This notification is escalated by the transmission" 32 ) 33 34 // Constants for TransmissionStatus 35 const ( 36 Failed = "FAILED" 37 Sent = "SENT" 38 Acknowledged = "ACKNOWLEDGED" 39 RESENDING = "RESENDING" 40 ) 41 42 // Constants for both NotificationStatus and TransmissionStatus 43 const ( 44 Escalated = "ESCALATED" 45 ) 46 47 // Constants for OperatingState 48 const ( 49 Up = "UP" 50 Down = "DOWN" 51 Unknown = "UNKNOWN" 52 )