| Copyright | (C) 2014 Samuli Thomasson |
|---|---|
| License | MIT (see the file LICENSE) |
| Maintainer | Samuli Thomasson <samuli.thomasson@paivola.fi> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Models
Description
Models in our db, and possibly in the zabbix db. Also provides
migrateAll that migrates an empty or partial db schema to ours.
__Note that we do not provide any indices, that are crucial for multi-axis-graphs dashboard performance.__ Refer to that documentation no how to set them up.
Documentation
data Group
Instances
| PersistField Group | |
| PersistEntity Group | |
| PersistFieldSql Group | |
| Eq (Key Group) | |
| Ord (Key Group) | |
| Read (Key Group) | |
| Show (Key Group) | |
| ToJSON (Key Group) | |
| FromJSON (Key Group) | |
| PersistField (Key Group) | |
| IsSqlKey (Key Group) | |
| PersistFieldSql (Key Group) | |
| PathPiece (Key Group) | |
| type PersistEntityBackend Group = SqlBackend | |
| data Key Group = GroupKey {} | |
data EntityField Group where
| |
| data Unique Group |
data Host
Constructors
| Host | |
Fields
| |
Instances
| Show Host | |
| PersistField Host | |
| PersistEntity Host | |
| PersistFieldSql Host | |
| Eq (Key Host) | |
| Ord (Key Host) | |
| Read (Key Host) | |
| Show (Key Host) | |
| ToJSON (Key Host) | |
| FromJSON (Key Host) | |
| PersistField (Key Host) | |
| IsSqlKey (Key Host) | |
| PersistFieldSql (Key Host) | |
| PathPiece (Key Host) | |
| type PersistEntityBackend Host = SqlBackend | |
| data Key Host = HostKey {} | |
data EntityField Host where
| |
| data Unique Host |
data HostGroup
Constructors
| HostGroup | |
Fields
| |
Instances
| Show HostGroup | |
| PersistField HostGroup | |
| PersistEntity HostGroup | |
| PersistFieldSql HostGroup | |
| Eq (Key HostGroup) | |
| Ord (Key HostGroup) | |
| Read (Key HostGroup) | |
| Show (Key HostGroup) | |
| ToJSON (Key HostGroup) | |
| FromJSON (Key HostGroup) | |
| PersistField (Key HostGroup) | |
| IsSqlKey (Key HostGroup) | |
| PersistFieldSql (Key HostGroup) | |
| PathPiece (Key HostGroup) | |
| type PersistEntityBackend HostGroup = SqlBackend | |
| data Key HostGroup = HostGroupKey {} | |
data EntityField HostGroup where
| |
| data Unique HostGroup |
type HostGroupId = Key HostGroup
data Application
Constructors
| Application | |
Fields
| |
Instances
| Show Application | |
| PersistField Application | |
| PersistEntity Application | |
| PersistFieldSql Application | |
| Eq (Key Application) | |
| Ord (Key Application) | |
| Read (Key Application) | |
| Show (Key Application) | |
| ToJSON (Key Application) | |
| FromJSON (Key Application) | |
| PersistField (Key Application) | |
| IsSqlKey (Key Application) | |
| PersistFieldSql (Key Application) | |
| PathPiece (Key Application) | |
| type PersistEntityBackend Application = SqlBackend | |
| data Key Application = ApplicationKey {} | |
data EntityField Application where
| |
| data Unique Application |
type ApplicationId = Key Application
data Item
Constructors
| Item | |
Fields
| |
Instances
| Show Item | |
| PersistField Item | |
| PersistEntity Item | |
| PersistFieldSql Item | |
| Eq (Key Item) | |
| Ord (Key Item) | |
| Read (Key Item) | |
| Show (Key Item) | |
| ToJSON (Key Item) | |
| FromJSON (Key Item) | |
| PersistField (Key Item) | |
| IsSqlKey (Key Item) | |
| PersistFieldSql (Key Item) | |
| PathPiece (Key Item) | |
| type PersistEntityBackend Item = SqlBackend | |
| data Key Item = ItemKey {} | |
data EntityField Item where
| |
| data Unique Item = UniqItem (Key Host) Text |
data ItemApp
Constructors
| ItemApp | |
Fields
| |
Instances
| Show ItemApp | |
| PersistField ItemApp | |
| PersistEntity ItemApp | |
| PersistFieldSql ItemApp | |
| Eq (Key ItemApp) | |
| Ord (Key ItemApp) | |
| Read (Key ItemApp) | |
| Show (Key ItemApp) | |
| ToJSON (Key ItemApp) | |
| FromJSON (Key ItemApp) | |
| PersistField (Key ItemApp) | |
| IsSqlKey (Key ItemApp) | |
| PersistFieldSql (Key ItemApp) | |
| PathPiece (Key ItemApp) | |
| type PersistEntityBackend ItemApp = SqlBackend | |
| data Key ItemApp = ItemAppKey {} | |
data EntityField ItemApp where
| |
| data Unique ItemApp |
data History
Constructors
| History | |
Fields
| |
Instances
| Show History | |
| PersistField History | |
| PersistEntity History | |
| PersistFieldSql History | |
| Eq (Key History) | |
| Ord (Key History) | |
| Read (Key History) | |
| Show (Key History) | |
| ToJSON (Key History) | |
| FromJSON (Key History) | |
| PersistField (Key History) | |
| IsSqlKey (Key History) | |
| PersistFieldSql (Key History) | |
| PathPiece (Key History) | |
| type PersistEntityBackend History = SqlBackend | |
| data Key History = HistoryKey {} | |
data EntityField History where
| |
| data Unique History |
data Trend
Constructors
| Trend | |
Fields
| |
Instances
| PersistField Trend | |
| PersistEntity Trend | |
| PersistFieldSql Trend | |
| Eq (Key Trend) | |
| Ord (Key Trend) | |
| Read (Key Trend) | |
| Show (Key Trend) | |
| ToJSON (Key Trend) | |
| FromJSON (Key Trend) | |
| PersistField (Key Trend) | |
| IsSqlKey (Key Trend) | |
| PersistFieldSql (Key Trend) | |
| PathPiece (Key Trend) | |
| type PersistEntityBackend Trend = SqlBackend | |
| data Key Trend = TrendKey {} | |
data EntityField Trend where
| |
| data Unique Trend |
data FutureModel
Constructors
| FutureModel | |
Fields
| |
Instances
| Show FutureModel | |
| PersistField FutureModel | |
| PersistEntity FutureModel | |
| PersistFieldSql FutureModel | |
| Eq (Key FutureModel) | |
| Ord (Key FutureModel) | |
| Read (Key FutureModel) | |
| Show (Key FutureModel) | |
| ToJSON (Key FutureModel) | |
| FromJSON (Key FutureModel) | |
| PersistField (Key FutureModel) | |
| IsSqlKey (Key FutureModel) | |
| PersistFieldSql (Key FutureModel) | |
| PathPiece (Key FutureModel) | |
| type PersistEntityBackend FutureModel = SqlBackend | |
| data Key FutureModel = FutureModelKey {} | |
data EntityField FutureModel where
| |
| data Unique FutureModel = UniqueFutureModel Text |
type FutureModelId = Key FutureModel
data ItemFuture
Constructors
| ItemFuture | |
Fields
| |
Instances
| Show ItemFuture | |
| PersistField ItemFuture | |
| PersistEntity ItemFuture | |
| PersistFieldSql ItemFuture | |
| Eq (Key ItemFuture) | |
| Ord (Key ItemFuture) | |
| Read (Key ItemFuture) | |
| Show (Key ItemFuture) | |
| ToJSON (Key ItemFuture) | |
| FromJSON (Key ItemFuture) | |
| PersistField (Key ItemFuture) | |
| IsSqlKey (Key ItemFuture) | |
| PersistFieldSql (Key ItemFuture) | |
| PathPiece (Key ItemFuture) | |
| type PersistEntityBackend ItemFuture = SqlBackend | |
| data Key ItemFuture = ItemFutureKey {} | |
data EntityField ItemFuture where
| |
| data Unique ItemFuture |
type ItemFutureId = Key ItemFuture
data Future
Constructors
| Future | |
Fields
| |
Instances
| Show Future | |
| PersistField Future | |
| PersistEntity Future | |
| PersistFieldSql Future | |
| Eq (Key Future) | |
| Ord (Key Future) | |
| Read (Key Future) | |
| Show (Key Future) | |
| ToJSON (Key Future) | |
| FromJSON (Key Future) | |
| PersistField (Key Future) | |
| IsSqlKey (Key Future) | |
| PersistFieldSql (Key Future) | |
| PathPiece (Key Future) | |
| type PersistEntityBackend Future = SqlBackend | |
| data Key Future = FutureKey {} | |
data EntityField Future where
| |
| data Unique Future |
data Threshold
Constructors
| Threshold | |
Fields
| |
Instances
| Show Threshold | |
| PersistField Threshold | |
| PersistEntity Threshold | |
| PersistFieldSql Threshold | |
| Eq (Key Threshold) | |
| Ord (Key Threshold) | |
| Read (Key Threshold) | |
| Show (Key Threshold) | |
| ToJSON (Key Threshold) | |
| FromJSON (Key Threshold) | |
| PersistField (Key Threshold) | |
| IsSqlKey (Key Threshold) | |
| PersistFieldSql (Key Threshold) | |
| PathPiece (Key Threshold) | |
| type PersistEntityBackend Threshold = SqlBackend | |
| data Key Threshold = ThresholdKey {} | |
data EntityField Threshold where
| |
| data Unique Threshold |
type ThresholdId = Key Threshold
data Metric
Constructors
| Metric | |
Fields
| |
Instances
| Show Metric | |
| PersistField Metric | |
| PersistEntity Metric | |
| PersistFieldSql Metric | |
| Eq (Key Metric) | |
| Ord (Key Metric) | |
| Read (Key Metric) | |
| Show (Key Metric) | |
| ToJSON (Key Metric) | |
| FromJSON (Key Metric) | |
| PersistField (Key Metric) | |
| IsSqlKey (Key Metric) | |
| PersistFieldSql (Key Metric) | |
| PathPiece (Key Metric) | |
| type PersistEntityBackend Metric = SqlBackend | |
| data Key Metric = MetricKey {} | |
data EntityField Metric where
| |
| data Unique Metric = UniqueMetricName Text |