dfd35a6164
+ Added and tested the TTL for the logging database
25 lines
780 B
Go
25 lines
780 B
Go
package DeviceDatabase
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type LogDBEntry struct {
|
|
TimeUTC time.Time `bson:"TimeUTC"`
|
|
Project string `bson:"Project"`
|
|
Sender string `bson:"Sender"`
|
|
Category string `bson:"Category"`
|
|
Level string `bson:"Level"`
|
|
Severity string `bson:"Severity"`
|
|
Impact string `bson:"Impact"`
|
|
MessageName string `bson:"MessageName"`
|
|
MessageDescription string `bson:"MessageDescription"`
|
|
Parameters []string `bson:"Parameters"`
|
|
}
|
|
|
|
type TTLUpdateResult struct {
|
|
ExpireAfterSeconds_old int32 `bson:"expireAfterSeconds_old"`
|
|
ExpireAfterSeconds_new int32 `bson:"expireAfterSeconds_new"`
|
|
Ok int32 `bson:"ok"`
|
|
}
|