Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type StatusApi a = "status" :> Get '[HTML, JSON] (Status a)
- type RenderStatus a = Status a -> Html ()
- defaultStatusPage :: forall a. (a -> Html ()) -> RenderStatus a
- metricsSection :: MetricsJSurl -> RenderStatus a
- versionsSection :: [(String, Version)] -> RenderStatus a
- statusPage :: ToHtml a => RenderStatus a
- handleStatus :: Runtime -> IO a -> RenderStatus a -> Handler (Status a)
- data Status a = Status {
- identification :: !Identification
- liveness :: !Liveness
- readiness :: !Readiness
- appStatus :: !a
- renderer :: RenderStatus a
- newtype Identification = Identification Text
- this :: Identification
Documentation
type RenderStatus a = Status a -> Html () Source #
Type to render a status page.
defaultStatusPage :: forall a. (a -> Html ()) -> RenderStatus a Source #
metricsSection :: MetricsJSurl -> RenderStatus a Source #
Section with metrics.
versionsSection :: [(String, Version)] -> RenderStatus a Source #
statusPage :: ToHtml a => RenderStatus a Source #
Like defaultStatusPage but uses a type-class-defined to pass the application-status rendering.
handleStatus :: Runtime -> IO a -> RenderStatus a -> Handler (Status a) Source #
Status | |
|
Instances
MimeRender HTML (Status a) Source # | |
Defined in Prod.Status mimeRender :: Proxy HTML -> Status a -> ByteString # | |
ToJSON a => ToJSON (Status a) Source # | |
newtype Identification Source #
Instances
ToJSON Identification Source # | |
Defined in Prod.Status toJSON :: Identification -> Value # toEncoding :: Identification -> Encoding # toJSONList :: [Identification] -> Value # toEncodingList :: [Identification] -> Encoding # omitField :: Identification -> Bool # |