Ocean/Log/DeviceDatabase/Scheme.go
2015-06-17 17:44:52 +02:00

31 lines
925 B
Go

package DeviceDatabase
import (
"time"
)
// The type for the database logging.
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"`
}
// A type for the TTL (time to live) for the index.
type TTLUpdateResult struct {
ExpireAfterSeconds_old int32 `bson:"expireAfterSeconds_old"`
ExpireAfterSeconds_new int32 `bson:"expireAfterSeconds_new"`
Ok int32 `bson:"ok"`
}
// The logging device.
type Database struct {
}