Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype PRSimple = PRSimple Word64
- prSimple :: Iso' Word64 PRSimple
- data PRCompoundEvent = PRCompoundEvent !Word32 !Word8 !Word8 !Word8
- prCompoundEvent :: Iso' Word64 PRCompoundEvent
- data PRCompoundPollster = PRCompoundPollster !Word32 !Word8
- prCompoundPollster :: Iso' Word64 PRCompoundPollster
- type PFValue64 = Word64
- type PFValue32 = Word32
- type PFValueText = Text
- data PFEndpoint
- pfEndpoint :: Prism' Word8 PFEndpoint
- data PFVolumeStatus
- pfVolumeStatus :: Prism' Word8 PFVolumeStatus
- data PFVolumeVerb
- pfVolumeVerb :: Prism' Word8 PFVolumeVerb
- data PFInstanceStatus
- = InstanceError
- | InstanceActive
- | InstanceShutoff
- | InstanceBuild
- | InstanceRebuild
- | InstanceDeleted
- | InstanceSoftDeleted
- | InstanceShelved
- | InstanceShelvedOffloaded
- | InstanceReboot
- | InstanceHardReboot
- | InstancePassword
- | InstanceResize
- | InstanceVerifyResize
- | InstanceRevertResize
- | InstancePaused
- | InstanceSuspended
- | InstanceRescue
- | InstanceMigrating
- pfInstanceStatus :: Prism' Word8 PFInstanceStatus
- data PFImageStatus
- pfImageStatus :: Prism' Word8 PFImageStatus
- data PFImageVerb
- pfImageVerb :: Prism' Word8 PFImageVerb
- data PFSnapshotStatus
- pfSnapshotStatus :: Prism' Word8 PFSnapshotStatus
- data PFSnapshotVerb
- pfSnapshotVerb :: Prism' Word8 PFSnapshotVerb
- data PFIPStatus
- pfIPStatus :: Prism' Word8 PFIPStatus
- data PFIPVerb
- pfIPVerb :: Prism' Word8 PFIPVerb
- data PFIPAlloc = IPAlloc
- pfIPAlloc :: Prism' Word32 PFIPAlloc
- data PDVolume = PDVolume PFVolumeStatus PFVolumeVerb PFEndpoint PFValue32
- pdVolume :: Prism' PRCompoundEvent PDVolume
- data PDSSD = PDSSD PFVolumeStatus PFVolumeVerb PFEndpoint PFValue32
- pdSSD :: Prism' PRCompoundEvent PDSSD
- newtype PDCPU = PDCPU PFValue64
- pdCPU :: Iso' PRSimple PDCPU
- newtype PDDiskRead = PDDiskRead {}
- pdDiskRead :: Iso' PRSimple PDDiskRead
- newtype PDDiskWrite = PDDiskWrite {}
- pdDiskWrite :: Iso' PRSimple PDDiskWrite
- newtype PDNeutronTx = PDNeutronTx {}
- pdNeutronTx :: Iso' PRSimple PDNeutronTx
- newtype PDNeutronRx = PDNeutronRx {}
- pdNeutronRx :: Iso' PRSimple PDNeutronRx
- data PDInstanceVCPU = PDInstanceVCPU PFInstanceStatus PFValue32
- pdInstanceVCPU :: Prism' PRCompoundPollster PDInstanceVCPU
- data PDInstanceRAM = PDInstanceRAM PFInstanceStatus PFValue32
- pdInstanceRAM :: Prism' PRCompoundPollster PDInstanceRAM
- data PDInstanceDisk = PDInstanceDisk PFInstanceStatus PFValue32
- pdInstanceDisk :: Prism' PRCompoundPollster PDInstanceDisk
- data PDInstanceFlavor = PDInstanceFlavor PFInstanceStatus PFValueText
- pdInstanceFlavor :: FlavorMap -> Prism' PRCompoundPollster PDInstanceFlavor
- data PDImage = PDImage PFImageStatus PFImageVerb PFEndpoint PFValue32
- pdImage :: Prism' PRCompoundEvent PDImage
- newtype PDImagePollster = PDImagePollster PFValue64
- pdImagePollster :: Iso' PRSimple PDImagePollster
- data PDSnapshot = PDSnapshot PFSnapshotStatus PFSnapshotVerb PFEndpoint PFValue32
- pdSnapshot :: Prism' PRCompoundEvent PDSnapshot
- data PDIP = PDIP PFIPStatus PFIPVerb PFEndpoint PFIPAlloc
- pdIP :: Prism' PRCompoundEvent PDIP
- class Valued a where
- data Timed value = Timed !Word64 value
- time :: forall value. Lens' (Timed value) Word64
- data Env = Env {}
- data Filters = Filters {}
- type Flavor = Text
- type FlavorMap = Bimap Flavor Word32
- siphashID :: PFValueText -> Word32
- filterByInstanceStatus :: Filters -> (a -> PFInstanceStatus) -> a -> Bool
Payload Raws
data PRCompoundEvent Source
Payload Raw Compound Event
prCompoundEvent :: Iso' Word64 PRCompoundEvent Source
An "improper" iso to convert between a Word64 and the raw compound.
It is improper because the reserved 8 bytes are ignored on parsing/printing. So it doesn't satisfy a "roundtrip" between the serialised Word64 and the decoded Compound raw. This is fine since we don't care about the reserved bytes.
data PRCompoundPollster Source
prCompoundPollster :: Iso' Word64 PRCompoundPollster Source
An "improper" iso to convert between a Word64 and the raw compound.
It is improper because we only preserve the value and status in a "roundtrip". This is fine for pollster since that's all we care about.
Payload Decoded Fields
type PFValueText = Text Source
data PFEndpoint Source
data PFVolumeStatus Source
data PFVolumeVerb Source
data PFInstanceStatus Source
data PFImageStatus Source
data PFImageVerb Source
data PFSnapshotStatus Source
data PFSnapshotVerb Source
data PFIPStatus Source
Payload Decoded Points
newtype PDDiskRead Source
newtype PDDiskWrite Source
newtype PDNeutronTx Source
newtype PDNeutronRx Source
data PDInstanceVCPU Source
data PDInstanceRAM Source
data PDInstanceDisk Source
data PDInstanceFlavor Source
newtype PDImagePollster Source
data PDSnapshot Source
Values
A family of lens that allows viewing/updating the payload value of decoded Ceilometer points.
note: this is a Lens and not just a Getter since we wish to reuse the logic for collector (making the points) and user (reading the points).
Values with a TimeStamp.
Interface
Information needed to parse/fold Ceilometer types, supplied by users.
Env | |
|
siphashID :: PFValueText -> Word32 Source
filterByInstanceStatus :: Filters -> (a -> PFInstanceStatus) -> a -> Bool Source