| Maintainer | Toshio Ito <toshio9.ito@toshiba.co.jp> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
NetSpider.CLI.Snapshot
Description
This module defines CLI option parser for Query for snapshot
graphs.
Synopsis
- parserSnapshotQuery :: SnapshotConfig n -> Parser (CLISnapshotQuery n)
- makeSnapshotQuery :: Query n na fla sla -> CLISnapshotQuery n -> Either String (Query n na fla sla)
- data SnapshotConfig n = SnapshotConfig {}
- data CLISnapshotQuery n
Documentation
parserSnapshotQuery :: SnapshotConfig n -> Parser (CLISnapshotQuery n) Source #
CLI option parser for Snapshot Query. Use makeSnapshotQuery
to convert CLISnapshotQuery to Query.
Since: 0.2.0.0
Arguments
| :: Query n na fla sla | base query |
| -> CLISnapshotQuery n | |
| -> Either String (Query n na fla sla) | Left: human-readable error message. Right: updated query |
Make a Query by applying CLISnapshotQuery to the base
query. The CLISnapshotQuery overwrites startsFrom and
timeInterval fields.
It can fail to convert CLISnapshotQuery to Query fields. In
that case, the result is Left with a human-readable error
message.
Since: 0.2.0.0
data SnapshotConfig n Source #
Configuration for option parser for Snapshot Query.
Since: 0.2.0.0
Constructors
| SnapshotConfig | |
Fields
| |
data CLISnapshotQuery n Source #
Settings for Snapshot Query parsed from the command-line
options. You can make Query by makeSnapshotQuery function.
Since: 0.2.0.0
Instances
| Eq n => Eq (CLISnapshotQuery n) Source # | |
Defined in NetSpider.CLI.Snapshot Methods (==) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # (/=) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # | |
| Ord n => Ord (CLISnapshotQuery n) Source # | |
Defined in NetSpider.CLI.Snapshot Methods compare :: CLISnapshotQuery n -> CLISnapshotQuery n -> Ordering # (<) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # (<=) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # (>) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # (>=) :: CLISnapshotQuery n -> CLISnapshotQuery n -> Bool # max :: CLISnapshotQuery n -> CLISnapshotQuery n -> CLISnapshotQuery n # min :: CLISnapshotQuery n -> CLISnapshotQuery n -> CLISnapshotQuery n # | |
| Show n => Show (CLISnapshotQuery n) Source # | |
Defined in NetSpider.CLI.Snapshot Methods showsPrec :: Int -> CLISnapshotQuery n -> ShowS # show :: CLISnapshotQuery n -> String # showList :: [CLISnapshotQuery n] -> ShowS # | |