grafana-0.2: API for creating grafana dashboards represented as json

Safe HaskellNone
LanguageHaskell2010

Grafana.Layout

Documentation

data Pos Source #

Constructors

Pos !Int !Int 
Instances
Eq Pos Source # 
Instance details

Defined in Grafana.Layout

Methods

(==) :: Pos -> Pos -> Bool #

(/=) :: Pos -> Pos -> Bool #

Show Pos Source # 
Instance details

Defined in Grafana.Layout

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #

data Rect Source #

Constructors

Rect 

Fields

Instances
Eq Rect Source # 
Instance details

Defined in Grafana.Layout

Methods

(==) :: Rect -> Rect -> Bool #

(/=) :: Rect -> Rect -> Bool #

Show Rect Source # 
Instance details

Defined in Grafana.Layout

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

Semigroup Rect Source # 
Instance details

Defined in Grafana.Layout

Methods

(<>) :: Rect -> Rect -> Rect #

sconcat :: NonEmpty Rect -> Rect #

stimes :: Integral b => b -> Rect -> Rect #

data Layout a Source #

Constructors

Layout [(Rect, a)] Rect 
Empty 
Instances
Functor Layout Source # 
Instance details

Defined in Grafana.Layout

Methods

fmap :: (a -> b) -> Layout a -> Layout b #

(<$) :: a -> Layout b -> Layout a #

Eq a => Eq (Layout a) Source # 
Instance details

Defined in Grafana.Layout

Methods

(==) :: Layout a -> Layout a -> Bool #

(/=) :: Layout a -> Layout a -> Bool #

Show a => Show (Layout a) Source # 
Instance details

Defined in Grafana.Layout

Methods

showsPrec :: Int -> Layout a -> ShowS #

show :: Layout a -> String #

showList :: [Layout a] -> ShowS #

Semigroup (Layout a) Source # 
Instance details

Defined in Grafana.Layout

Methods

(<>) :: Layout a -> Layout a -> Layout a #

sconcat :: NonEmpty (Layout a) -> Layout a #

stimes :: Integral b => b -> Layout a -> Layout a #

Monoid (Layout a) Source # 
Instance details

Defined in Grafana.Layout

Methods

mempty :: Layout a #

mappend :: Layout a -> Layout a -> Layout a #

mconcat :: [Layout a] -> Layout a #

atop :: Layout a -> Layout a -> Layout a Source #

rowFits :: Int -> Int -> Int -> [Rect] Source #

fitToRow :: Int -> Int -> [Rect -> Layout a] -> Layout a Source #

fillRows :: Int -> Int -> Int -> [Rect -> Layout a] -> Layout a Source #