Copyright | (c) Moritz Schulte 2017 |
---|---|
License | BSD3 |
Maintainer | mtesseract@silverratio.net |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the Nakadi Service Types.
- newtype CursorOffset = CursorOffset {}
- newtype EventTypeName = EventTypeName {}
- newtype PartitionName = PartitionName {}
- newtype CursorToken = CursorToken Text
- data Cursor = Cursor {}
- newtype ApplicationName = ApplicationName {}
- data SubscriptionsListResponse = SubscriptionsListResponse {
- _links :: PaginationLinks
- _items :: [Subscription]
- data SubscriptionCursor = SubscriptionCursor {}
- newtype FlowId = FlowId {}
- data SubscriptionCursorWithoutToken = SubscriptionCursorWithoutToken {}
- newtype SubscriptionCursorCommit = SubscriptionCursorCommit {
- _items :: [SubscriptionCursor]
- newtype CursorCommit = CursorCommit {}
- newtype SubscriptionId = SubscriptionId {}
- newtype StreamId = StreamId {
- unStreamId :: Text
- data SubscriptionEventStream = SubscriptionEventStream {}
- newtype Timestamp = Timestamp {}
- data Metadata = Metadata {}
- data Event a = Event {}
- data EventStreamBatch a = EventStreamBatch {}
- data SubscriptionEventStreamBatch a = SubscriptionEventStreamBatch {
- _cursor :: SubscriptionCursor
- _events :: Maybe (Vector (EventEnriched a))
- newtype EventId = EventId {}
- data Partition = Partition {}
- data ShiftedCursor = ShiftedCursor {}
- data CursorDistanceQuery = CursorDistanceQuery {}
- newtype CursorDistanceResult = CursorDistanceResult {}
- data SubscriptionPosition
- data Subscription = Subscription {}
- data PublishingStatus
- data Step
- data BatchItemResponse = BatchItemResponse {}
- newtype StreamKeepAliveLimit = StreamKeepAliveLimit {}
- newtype BatchFlushTimeout = BatchFlushTimeout {}
- data CursorCommitResultType
- data CursorCommitResult = CursorCommitResult {}
- newtype CursorCommitResults = CursorCommitResults {
- _items :: [CursorCommitResult]
- data SchemaType = SchemaTypeJson
- data EventTypeSchema = EventTypeSchema {}
- newtype PaginationLink = PaginationLink {}
- data PaginationLinks = PaginationLinks {}
- data EventTypeSchemasResponse = EventTypeSchemasResponse {}
- newtype SchemaVersion = SchemaVersion {}
- newtype Offset = Offset {}
- newtype Limit = Limit {}
- data PartitionState
- data PartitionStat = PartitionStat {}
- data SubscriptionEventTypeStats = SubscriptionEventTypeStats {}
- newtype SubscriptionEventTypeStatsResult = SubscriptionEventTypeStatsResult {}
- data EventTypeCategory
- data PartitionStrategy
- data EnrichmentStrategy = EnrichmentStrategyMetadata
- data CompatibilityMode
- newtype PartitionKeyField = PartitionKeyField {}
- data EventType = EventType {
- _name :: EventTypeName
- _owningApplication :: Maybe ApplicationName
- _category :: Maybe EventTypeCategory
- _enrichmentStrategies :: Maybe [EnrichmentStrategy]
- _partitionStrategy :: Maybe PartitionStrategy
- _compatibilityMode :: Maybe CompatibilityMode
- _schema :: EventTypeSchema
- _partitionKeyFields :: Maybe [PartitionKeyField]
- _defaultStatistic :: Maybe EventTypeStatistics
- _options :: Maybe EventTypeOptions
- data DataChangeEvent a = DataChangeEvent {}
- data DataOp
- data EventEnriched a = EventEnriched {
- _payload :: a
- _metadata :: MetadataEnriched
- data MetadataEnriched = MetadataEnriched {}
- data EventTypeStatistics = EventTypeStatistics {}
- data EventTypeOptions = EventTypeOptions {}
Documentation
newtype CursorOffset Source #
Type for cursor offsets.
CursorOffset | |
|
Eq CursorOffset Source # | |
Ord CursorOffset Source # | |
Show CursorOffset Source # | |
IsString CursorOffset Source # | |
Generic CursorOffset Source # | |
Hashable CursorOffset Source # | |
ToJSON CursorOffset Source # | |
FromJSON CursorOffset Source # | |
HasNakadiOffset Cursor CursorOffset | |
HasNakadiOldestAvailableOffset Partition CursorOffset | |
HasNakadiNewestAvailableOffset Partition CursorOffset | |
type Rep CursorOffset Source # | |
newtype EventTypeName Source #
Type for event type names.
EventTypeName | |
|
Eq EventTypeName Source # | |
Ord EventTypeName Source # | |
Show EventTypeName Source # | |
IsString EventTypeName Source # | |
Generic EventTypeName Source # | |
Hashable EventTypeName Source # | |
ToJSON EventTypeName Source # | |
FromJSON EventTypeName Source # | |
HasNakadiEventType MetadataEnriched EventTypeName | |
HasNakadiName EventType EventTypeName | |
HasNakadiEventTypes Subscription [EventTypeName] | |
type Rep EventTypeName Source # | |
newtype PartitionName Source #
Type for partition names.
PartitionName | |
|
Eq PartitionName Source # | |
Ord PartitionName Source # | |
Show PartitionName Source # | |
IsString PartitionName Source # | |
Generic PartitionName Source # | |
Hashable PartitionName Source # | |
ToJSON PartitionName Source # | |
FromJSON PartitionName Source # | |
HasNakadiPartition Cursor PartitionName | |
HasNakadiPartition Partition PartitionName | |
HasNakadiPartition Metadata (Maybe PartitionName) | |
HasNakadiPartition MetadataEnriched (Maybe PartitionName) | |
type Rep PartitionName Source # | |
newtype CursorToken Source #
Type for cursor tokens.
Type for cursors.
Eq Cursor Source # | |
Ord Cursor Source # | |
Show Cursor Source # | |
Generic Cursor Source # | |
Hashable Cursor Source # | |
ToJSON Cursor Source # | |
FromJSON Cursor Source # | |
HasNakadiPartition Cursor PartitionName | |
HasNakadiOffset Cursor CursorOffset | |
HasNakadiInitialCursor CursorDistanceQuery Cursor | |
HasNakadiFinalCursor CursorDistanceQuery Cursor | |
HasNakadiItems CursorCommit [Cursor] | |
HasNakadiCursor (EventStreamBatch a) Cursor | |
type Rep Cursor Source # | |
newtype ApplicationName Source #
Type for application names.
Eq ApplicationName Source # | |
Ord ApplicationName Source # | |
Show ApplicationName Source # | |
IsString ApplicationName Source # | |
Generic ApplicationName Source # | |
Hashable ApplicationName Source # | |
ToJSON ApplicationName Source # | |
FromJSON ApplicationName Source # | |
HasNakadiOwningApplication Subscription ApplicationName | |
HasNakadiOwningApplication EventType (Maybe ApplicationName) | |
type Rep ApplicationName Source # | |
data SubscriptionsListResponse Source #
SubscriptionsListResponse
data SubscriptionCursor Source #
Type fo rsubscription cursors.
SubscriptionCursor | |
|
Eq SubscriptionCursor Source # | |
Ord SubscriptionCursor Source # | |
Show SubscriptionCursor Source # | |
Generic SubscriptionCursor Source # | |
ToJSON SubscriptionCursor Source # | |
FromJSON SubscriptionCursor Source # | |
HasNakadiSubscriptionCursor SubscriptionCursor | |
HasNakadiItems SubscriptionCursorCommit [SubscriptionCursor] | |
HasNakadiCursor (SubscriptionEventStreamBatch a) SubscriptionCursor | |
type Rep SubscriptionCursor Source # | |
A Flow ID.
data SubscriptionCursorWithoutToken Source #
Type for subscription cursors without token.
SubscriptionCursorWithoutToken | |
|
newtype SubscriptionCursorCommit Source #
Type for commit object for subscription cursor committing.
SubscriptionCursorCommit | |
|
newtype CursorCommit Source #
Type for commit objects for cursor committing.
Show CursorCommit Source # | |
Generic CursorCommit Source # | |
ToJSON CursorCommit Source # | |
FromJSON CursorCommit Source # | |
HasNakadiItems CursorCommit [Cursor] | |
type Rep CursorCommit Source # | |
newtype SubscriptionId Source #
Type for subscription IDs.
SubscriptionId | |
|
Eq SubscriptionId Source # | |
Ord SubscriptionId Source # | |
Show SubscriptionId Source # | |
Generic SubscriptionId Source # | |
Hashable SubscriptionId Source # | |
ToJSON SubscriptionId Source # | |
FromJSON SubscriptionId Source # | |
HasNakadiSubscriptionId SubscriptionEventStream SubscriptionId | |
HasNakadiSubscriptionId SubscriptionEventStreamContext SubscriptionId | |
HasNakadiId SubscriptionId UUID | |
HasNakadiId Subscription (Maybe SubscriptionId) | |
type Rep SubscriptionId Source # | |
Type for stream IDs.
StreamId | |
|
Eq StreamId Source # | |
Ord StreamId Source # | |
Show StreamId Source # | |
Generic StreamId Source # | |
ToJSON StreamId Source # | |
FromJSON StreamId Source # | |
HasNakadiStreamId SubscriptionEventStream StreamId | |
HasNakadiStreamId SubscriptionEventStreamContext StreamId | |
HasNakadiId StreamId Text | |
type Rep StreamId Source # | |
data SubscriptionEventStream Source #
SubscriptionEventStream
Show SubscriptionEventStream Source # | |
HasNakadiSubscriptionId SubscriptionEventStream SubscriptionId | |
HasNakadiStreamId SubscriptionEventStream StreamId | |
Type for timestamps.
Timestamp | |
|
Eq Timestamp Source # | |
Ord Timestamp Source # | |
Show Timestamp Source # | |
Generic Timestamp Source # | |
Hashable Timestamp Source # | |
ToJSON Timestamp Source # | |
FromJSON Timestamp Source # | |
HasNakadiOccurredAt Metadata Timestamp | |
HasNakadiOccurredAt MetadataEnriched Timestamp | |
HasNakadiReceivedAt MetadataEnriched Timestamp | |
HasNakadiUTCTime Timestamp UTCTime | |
HasNakadiCreatedAt Subscription (Maybe Timestamp) | |
HasNakadiCreatedAt EventTypeSchema (Maybe Timestamp) | |
type Rep Timestamp Source # | |
Metadata
Metadata | |
|
Eq Metadata Source # | |
Show Metadata Source # | |
Generic Metadata Source # | |
ToJSON Metadata Source # | |
FromJSON Metadata Source # | |
HasNakadiOccurredAt Metadata Timestamp | |
HasNakadiEid Metadata EventId | |
HasNakadiPartition Metadata (Maybe PartitionName) | |
HasNakadiParentEids Metadata (Maybe [EventId]) | |
HasNakadiMetadata (Event a) Metadata | |
type Rep Metadata Source # | |
Event
data EventStreamBatch a Source #
EventStreamBatch
Show a => Show (EventStreamBatch a) Source # | |
Generic (EventStreamBatch a) Source # | |
ToJSON a => ToJSON (EventStreamBatch a) Source # | |
FromJSON a => FromJSON (EventStreamBatch a) Source # | |
HasNakadiCursor (EventStreamBatch a) Cursor | |
HasNakadiEvents (EventStreamBatch a) (Maybe (Vector (EventEnriched a))) | |
type Rep (EventStreamBatch a) Source # | |
data SubscriptionEventStreamBatch a Source #
SubscriptionEventStreamBatch
SubscriptionEventStreamBatch | |
|
Show a => Show (SubscriptionEventStreamBatch a) Source # | |
Generic (SubscriptionEventStreamBatch a) Source # | |
ToJSON a => ToJSON (SubscriptionEventStreamBatch a) Source # | |
FromJSON a => FromJSON (SubscriptionEventStreamBatch a) Source # | |
HasNakadiSubscriptionCursor (SubscriptionEventStreamBatch a) | |
HasNakadiCursor (SubscriptionEventStreamBatch a) SubscriptionCursor | |
HasNakadiEvents (SubscriptionEventStreamBatch a) (Maybe (Vector (EventEnriched a))) | |
type Rep (SubscriptionEventStreamBatch a) Source # | |
ID of an Event
Eq EventId Source # | |
Ord EventId Source # | |
Show EventId Source # | |
Generic EventId Source # | |
Hashable EventId Source # | |
ToJSON EventId Source # | |
FromJSON EventId Source # | |
HasNakadiEid Metadata EventId | |
HasNakadiEid MetadataEnriched EventId | |
HasNakadiId EventId UUID | |
HasNakadiParentEids Metadata (Maybe [EventId]) | |
HasNakadiParentEids MetadataEnriched (Maybe [EventId]) | |
type Rep EventId Source # | |
Partition Data
Partition | |
|
data ShiftedCursor Source #
Type for shift-cursor queries.
ShiftedCursor | |
|
data CursorDistanceQuery Source #
Type for cursor-distance queries. Represents the request to compute the distance between initial cursor and final cursor.
CursorDistanceQuery | |
|
Eq CursorDistanceQuery Source # | |
Ord CursorDistanceQuery Source # | |
Show CursorDistanceQuery Source # | |
Generic CursorDistanceQuery Source # | |
Hashable CursorDistanceQuery Source # | |
ToJSON CursorDistanceQuery Source # | |
FromJSON CursorDistanceQuery Source # | |
HasNakadiInitialCursor CursorDistanceQuery Cursor | |
HasNakadiFinalCursor CursorDistanceQuery Cursor | |
type Rep CursorDistanceQuery Source # | |
newtype CursorDistanceResult Source #
Type for results of cursor-distance-queries.
data SubscriptionPosition Source #
Type for subscription positions.
data Subscription Source #
Type for a Subscription.
Eq Subscription Source # | |
Ord Subscription Source # | |
Show Subscription Source # | |
Generic Subscription Source # | |
Hashable Subscription Source # | |
ToJSON Subscription Source # | |
FromJSON Subscription Source # | |
HasNakadiOwningApplication Subscription ApplicationName | |
HasNakadiCreatedAt Subscription (Maybe Timestamp) | |
HasNakadiItems SubscriptionsListResponse [Subscription] | |
HasNakadiReadFrom Subscription (Maybe SubscriptionPosition) | |
HasNakadiInitialCursors Subscription (Maybe [SubscriptionCursorWithoutToken]) | |
HasNakadiId Subscription (Maybe SubscriptionId) | |
HasNakadiEventTypes Subscription [EventTypeName] | |
HasNakadiConsumerGroup Subscription (Maybe Text) | |
type Rep Subscription Source # | |
data PublishingStatus Source #
Type for publishing status.
Step
data BatchItemResponse Source #
In case of failures during batch publishing, Nakadi returns detailed information about which events failed to be published. This per-event information is a batch item response.
newtype StreamKeepAliveLimit Source #
StreamKeepAliveLimit
newtype BatchFlushTimeout Source #
BatchFlushTimeout
data CursorCommitResultType Source #
CursorCommitResultType
data CursorCommitResult Source #
CursorCommitResult
newtype CursorCommitResults Source #
data SchemaType Source #
SchemaType
Eq SchemaType Source # | |
Ord SchemaType Source # | |
Show SchemaType Source # | |
Generic SchemaType Source # | |
Hashable SchemaType Source # | |
ToJSON SchemaType Source # | |
FromJSON SchemaType Source # | |
HasNakadiSchemaType EventTypeSchema SchemaType | |
type Rep SchemaType Source # | |
data EventTypeSchema Source #
Type for the schema of an event type.
EventTypeSchema | |
|
Eq EventTypeSchema Source # | |
Ord EventTypeSchema Source # | |
Show EventTypeSchema Source # | |
Generic EventTypeSchema Source # | |
Hashable EventTypeSchema Source # | |
ToJSON EventTypeSchema Source # | |
FromJSON EventTypeSchema Source # | |
HasNakadiSchemaType EventTypeSchema SchemaType | |
HasNakadiSchema EventTypeSchema Text | |
HasNakadiSchema EventType EventTypeSchema | |
HasNakadiVersion EventTypeSchema (Maybe SchemaVersion) | |
HasNakadiCreatedAt EventTypeSchema (Maybe Timestamp) | |
HasNakadiItems EventTypeSchemasResponse [EventTypeSchema] | |
type Rep EventTypeSchema Source # | |
newtype PaginationLink Source #
PaginationLink
Eq PaginationLink Source # | |
Ord PaginationLink Source # | |
Show PaginationLink Source # | |
Generic PaginationLink Source # | |
Hashable PaginationLink Source # | |
ToJSON PaginationLink Source # | |
FromJSON PaginationLink Source # | |
HasNakadiHref PaginationLink Text | |
HasNakadiPrev PaginationLinks (Maybe PaginationLink) | |
HasNakadiNext PaginationLinks (Maybe PaginationLink) | |
type Rep PaginationLink Source # | |
data PaginationLinks Source #
PaginationLinks
Eq PaginationLinks Source # | |
Ord PaginationLinks Source # | |
Show PaginationLinks Source # | |
Generic PaginationLinks Source # | |
Hashable PaginationLinks Source # | |
ToJSON PaginationLinks Source # | |
FromJSON PaginationLinks Source # | |
HasNakadiLinks EventTypeSchemasResponse PaginationLinks | |
HasNakadiLinks SubscriptionsListResponse PaginationLinks | |
HasNakadiPrev PaginationLinks (Maybe PaginationLink) | |
HasNakadiNext PaginationLinks (Maybe PaginationLink) | |
type Rep PaginationLinks Source # | |
data EventTypeSchemasResponse Source #
EventTypeSchemasResponse
newtype SchemaVersion Source #
Type for the version of a schema.
Eq SchemaVersion Source # | |
Ord SchemaVersion Source # | |
Show SchemaVersion Source # | |
IsString SchemaVersion Source # | |
Generic SchemaVersion Source # | |
Hashable SchemaVersion Source # | |
ToJSON SchemaVersion Source # | |
FromJSON SchemaVersion Source # | |
HasNakadiVersion MetadataEnriched SchemaVersion | |
HasNakadiVersion EventTypeSchema (Maybe SchemaVersion) | |
type Rep SchemaVersion Source # | |
Type for offset values.
Type for limit values.
data PartitionState Source #
Type for partition states.
data SubscriptionEventTypeStats Source #
Nakadi type SubscriptionEventTypeStats
.
newtype SubscriptionEventTypeStatsResult Source #
SubscriptionEventTypeStatsResult
data EventTypeCategory Source #
Type for the category of an EventType
.
data PartitionStrategy Source #
Type for a partitioning strategy.
data EnrichmentStrategy Source #
Type for an enrichment stragey.
Eq EnrichmentStrategy Source # | |
Ord EnrichmentStrategy Source # | |
Show EnrichmentStrategy Source # | |
Generic EnrichmentStrategy Source # | |
Hashable EnrichmentStrategy Source # | |
ToJSON EnrichmentStrategy Source # | |
FromJSON EnrichmentStrategy Source # | |
HasNakadiEnrichmentStrategies EventType (Maybe [EnrichmentStrategy]) | |
type Rep EnrichmentStrategy Source # | |
data CompatibilityMode Source #
Type for an event type compatibility mode.
Eq CompatibilityMode Source # | |
Ord CompatibilityMode Source # | |
Show CompatibilityMode Source # | |
Generic CompatibilityMode Source # | |
Hashable CompatibilityMode Source # | |
ToJSON CompatibilityMode Source # | |
FromJSON CompatibilityMode Source # | |
HasNakadiCompatibilityMode EventType (Maybe CompatibilityMode) | |
type Rep CompatibilityMode Source # | |
newtype PartitionKeyField Source #
Type for a partitioning key field.
Eq PartitionKeyField Source # | |
Ord PartitionKeyField Source # | |
Show PartitionKeyField Source # | |
IsString PartitionKeyField Source # | |
Generic PartitionKeyField Source # | |
Hashable PartitionKeyField Source # | |
ToJSON PartitionKeyField Source # | |
FromJSON PartitionKeyField Source # | |
HasNakadiPartitionKeyFields EventType (Maybe [PartitionKeyField]) | |
type Rep PartitionKeyField Source # | |
EventType
Eq EventType Source # | |
Ord EventType Source # | |
Show EventType Source # | |
Generic EventType Source # | |
Hashable EventType Source # | |
ToJSON EventType Source # | |
FromJSON EventType Source # | |
HasNakadiSchema EventType EventTypeSchema | |
HasNakadiName EventType EventTypeName | |
HasNakadiPartitionStrategy EventType (Maybe PartitionStrategy) | |
HasNakadiPartitionKeyFields EventType (Maybe [PartitionKeyField]) | |
HasNakadiOwningApplication EventType (Maybe ApplicationName) | |
HasNakadiOptions EventType (Maybe EventTypeOptions) | |
HasNakadiEnrichmentStrategies EventType (Maybe [EnrichmentStrategy]) | |
HasNakadiDefaultStatistic EventType (Maybe EventTypeStatistics) | |
HasNakadiCompatibilityMode EventType (Maybe CompatibilityMode) | |
HasNakadiCategory EventType (Maybe EventTypeCategory) | |
type Rep EventType Source # | |
data DataChangeEvent a Source #
DataChangeEvent
Eq a => Eq (DataChangeEvent a) Source # | |
Show a => Show (DataChangeEvent a) Source # | |
Generic (DataChangeEvent a) Source # | |
ToJSON a => ToJSON (DataChangeEvent a) Source # | |
FromJSON a => FromJSON (DataChangeEvent a) Source # | |
type Rep (DataChangeEvent a) Source # | |
Type for "data_op" as contained in the DataChangeEvent.
data EventEnriched a Source #
Type of enriched event.
Eq a => Eq (EventEnriched a) Source # | |
Show a => Show (EventEnriched a) Source # | |
Generic (EventEnriched a) Source # | |
ToJSON a => ToJSON (EventEnriched a) Source # | |
FromJSON a => FromJSON (EventEnriched a) Source # | |
HasNakadiEvents (EventStreamBatch a) (Maybe (Vector (EventEnriched a))) | |
HasNakadiEvents (SubscriptionEventStreamBatch a) (Maybe (Vector (EventEnriched a))) | |
type Rep (EventEnriched a) Source # | |
data MetadataEnriched Source #
Type of enriched metadata values.
MetadataEnriched | |
|
Eq MetadataEnriched Source # | |
Show MetadataEnriched Source # | |
Generic MetadataEnriched Source # | |
ToJSON MetadataEnriched Source # | |
FromJSON MetadataEnriched Source # | |
HasNakadiOccurredAt MetadataEnriched Timestamp | |
HasNakadiEid MetadataEnriched EventId | |
HasNakadiVersion MetadataEnriched SchemaVersion | |
HasNakadiReceivedAt MetadataEnriched Timestamp | |
HasNakadiEventType MetadataEnriched EventTypeName | |
HasNakadiPartition MetadataEnriched (Maybe PartitionName) | |
HasNakadiParentEids MetadataEnriched (Maybe [EventId]) | |
HasNakadiFlowId MetadataEnriched (Maybe FlowId) | |
type Rep MetadataEnriched Source # | |
data EventTypeStatistics Source #
Type for event type statistics.
data EventTypeOptions Source #
Type for event type options.