pagerduty-0.0.8: Client library for PagerDuty Integration and REST APIs.

Safe HaskellNone
LanguageHaskell2010

Network.PagerDuty.REST.Reports

Contents

Description

Access high level reports about alerts and incidents. Useful for creating graphs.

See: http://developer.pagerduty.com/documentation/rest/reports

Synopsis

Alerts Per Time

alertsPerTime #

Get high level statistics about the number of alerts (SMSes, phone calls and emails) sent for the desired time period, summed daily, weekly or monthly.

GET /reports/alerts_per_time

See: http://developer.pagerduty.com/documentation/rest/reports/alerts_per_time

Incidents Per Time

incidentsPerTime #

Get high level statistics about the number of incidents created for the desired time period, summed daily, weekly or monthly.

GET /reports/incidents_per_time

See: http://developer.pagerduty.com/documentation/rest/reports/incidents_per_time

Types

data Report #

Instances

Eq Report # 

Methods

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

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

Show Report # 
ToJSON Report # 
Generic Report # 

Associated Types

type Code Report :: [[*]] #

Methods

from :: Report -> Rep Report #

to :: Rep Report -> Report #

HasDatatypeInfo Report # 

Associated Types

type DatatypeInfoOf Report :: DatatypeInfo #

QueryLike Report # 

Methods

toQuery :: Report -> Query #

type Code Report # 
type DatatypeInfoOf Report # 
type DatatypeInfoOf Report = ADT "Network.PagerDuty.REST.Reports" "Report" ((:) ConstructorInfo (Record "Report" ((:) FieldInfo (FieldInfo "_rSince'") ((:) FieldInfo (FieldInfo "_rUntil'") ((:) FieldInfo (FieldInfo "_rRollup'") ([] FieldInfo))))) ([] ConstructorInfo))

rSince :: Lens' (Request Report s b) UTCTime #

Start of the date range over which you want to search. The time element is optional.

rUntil :: Lens' (Request Report s b) UTCTime #

The end of the date range over which you want to search. This should be in the same format as since.

rRollup :: Lens' (Request Report s b) Rollup #

Specifies the bucket duration for each summation.

Default: monthly.

Example: A time window of two years (based on since and until) with a rollup of monthly will result in 24 sets of data points being returned (one for each month in the span).