bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/database/models.go (about)

     1  package database
     2  
     3  import (
     4  	"bosun.org/opentsdb"
     5  )
     6  
     7  type MetricMetadata struct {
     8  	Desc        string `redis:"desc" json:",omitempty"`
     9  	Unit        string `redis:"unit" json:",omitempty"`
    10  	Rate        string `redis:"rate" json:",omitempty"`
    11  	LastTouched int64  `redis:"lastTouched"`
    12  }
    13  
    14  type TagMetadata struct {
    15  	Tags        opentsdb.TagSet
    16  	Name        string
    17  	Value       string
    18  	LastTouched int64
    19  }
    20  
    21  type LastInfo struct {
    22  	LastVal      float64
    23  	DiffFromPrev float64
    24  	Timestamp    int64
    25  }