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 Text
- newtype EventTypeName = EventTypeName Text
- newtype PartitionName = PartitionName Text
- newtype CursorToken = CursorToken Text
- data Cursor = Cursor PartitionName CursorOffset
- newtype ApplicationName = ApplicationName Text
- data SubscriptionsListResponse = SubscriptionsListResponse PaginationLinks [Subscription]
- data SubscriptionCursor = SubscriptionCursor PartitionName CursorOffset EventTypeName Text
- newtype FlowId = FlowId Text
- data SubscriptionCursorWithoutToken = SubscriptionCursorWithoutToken PartitionName CursorOffset EventTypeName
- newtype SubscriptionCursorCommit = SubscriptionCursorCommit [SubscriptionCursor]
- newtype CursorCommit = CursorCommit [Cursor]
- newtype SubscriptionId = SubscriptionId UUID
- newtype StreamId = StreamId Text
- data SubscriptionEventStream = SubscriptionEventStream StreamId SubscriptionId
- newtype Timestamp = Timestamp UTCTime
- data Metadata = Metadata Text Timestamp [Text] (Maybe Text)
- data Event a = Event a Metadata
- data EventStreamBatch a = EventStreamBatch Cursor (Maybe (Vector (Event a)))
- data SubscriptionEventStreamBatch a = SubscriptionEventStreamBatch SubscriptionCursor (Maybe (Vector (Event a)))
- newtype EventId = EventId UUID
- data Partition = Partition CursorOffset CursorOffset PartitionName (Maybe Int64)
- data ShiftedCursor = ShiftedCursor PartitionName CursorOffset Int64
- data CursorDistanceQuery = CursorDistanceQuery Cursor Cursor
- newtype CursorDistanceResult = CursorDistanceResult Int64
- data SubscriptionPosition
- data Subscription = Subscription (Maybe SubscriptionId) ApplicationName [EventTypeName] (Maybe Text) (Maybe Timestamp) (Maybe SubscriptionPosition) (Maybe [SubscriptionCursorWithoutToken])
- data PublishingStatus
- data Step
- data BatchItemResponse = BatchItemResponse (Maybe EventId) PublishingStatus (Maybe Step) (Maybe Text)
- newtype StreamKeepAliveLimit = StreamKeepAliveLimit Int32
- newtype BatchFlushTimeout = BatchFlushTimeout Int32
- data CursorCommitResultType
- data CursorCommitResult = CursorCommitResult SubscriptionCursor CursorCommitResultType
- data SchemaType = SchemaTypeJson
- data EventTypeSchema = EventTypeSchema (Maybe SchemaVersion) (Maybe Timestamp) SchemaType Text
- newtype PaginationLink = PaginationLink Text
- data PaginationLinks = PaginationLinks (Maybe PaginationLink) (Maybe PaginationLink)
- data EventTypeSchemasResponse = EventTypeSchemasResponse PaginationLinks [EventTypeSchema]
- newtype SchemaVersion = SchemaVersion Text
- newtype Offset = Offset Int64
- newtype Limit = Limit Int64
- data PartitionState
- data PartitionStat = PartitionStat PartitionName PartitionState Int64 StreamId
- data SubscriptionEventTypeStats = SubscriptionEventTypeStats EventTypeName [PartitionStat]
- newtype SubscriptionEventTypeStatsResult = SubscriptionEventTypeStatsResult [SubscriptionEventTypeStats]
- data EventTypeCategory
- data PartitionStrategy
- data EnrichmentStrategy = EnrichmentStrategyMetadata
- data CompatibilityMode
- newtype PartitionKeyField = PartitionKeyField Text
- data EventType = EventType EventTypeName (Maybe ApplicationName) (Maybe EventTypeCategory) (Maybe [EnrichmentStrategy]) (Maybe PartitionStrategy) (Maybe CompatibilityMode) EventTypeSchema (Maybe [PartitionKeyField]) (Maybe EventTypeStatistics) (Maybe EventTypeOptions)
- data DataChangeEvent a = DataChangeEvent a Metadata Text DataOp
- data DataOp
- data EventEnriched a = EventEnriched a MetadataEnriched
- data MetadataEnriched = MetadataEnriched Text EventTypeName Timestamp Timestamp SchemaVersion [Text]
- data EventTypeStatistics = EventTypeStatistics Int64 Int64 Int64 Int64
- data EventTypeOptions = EventTypeOptions Int64
Documentation
newtype CursorOffset Source #
Type for cursor offsets.
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.
Eq EventTypeName Source # | |
Ord EventTypeName Source # | |
Show EventTypeName Source # | |
IsString EventTypeName Source # | |
Generic EventTypeName Source # | |
Hashable EventTypeName Source # | |
ToJSON EventTypeName Source # | |
FromJSON EventTypeName Source # | |
HasNakadiName EventType EventTypeName | |
HasNakadiEventTypes Subscription [EventTypeName] | |
type Rep EventTypeName Source # | |
newtype PartitionName Source #
Type for partition names.
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 | |
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 a0) 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.
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 a0) SubscriptionCursor | |
type Rep SubscriptionCursor Source # | |
A Flow ID.
data SubscriptionCursorWithoutToken Source #
Type for subscription cursors without token.
newtype SubscriptionCursorCommit Source #
Type for commit object for subscription cursor committing.
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.
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.
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.
Eq Timestamp Source # | |
Ord Timestamp Source # | |
Show Timestamp Source # | |
Generic Timestamp Source # | |
Hashable Timestamp Source # | |
ToJSON Timestamp Source # | |
FromJSON Timestamp Source # | |
HasNakadiOccurredAt Metadata Timestamp | |
HasNakadiUTCTime Timestamp UTCTime | |
HasNakadiCreatedAt Subscription (Maybe Timestamp) | |
HasNakadiCreatedAt EventTypeSchema (Maybe Timestamp) | |
type Rep Timestamp Source # | |
Metadata
Eq Metadata Source # | |
Show Metadata Source # | |
Generic Metadata Source # | |
ToJSON Metadata Source # | |
FromJSON Metadata Source # | |
HasNakadiOccurredAt Metadata Timestamp | |
HasNakadiEid Metadata Text | |
HasNakadiPartition Metadata (Maybe Text) | |
HasNakadiParentEids Metadata [Text] | |
HasNakadiMetadata (Event a0) Metadata | |
type Rep Metadata Source # | |
Event
Eq a => Eq (Event a) Source # | |
Show a => Show (Event a) Source # | |
Generic (Event a) Source # | |
ToJSON a0 => ToJSON (Event a0) Source # | |
FromJSON a0 => FromJSON (Event a0) Source # | |
HasNakadiPayload (Event a0) a0 | |
HasNakadiMetadata (Event a0) Metadata | |
HasNakadiEvents (EventStreamBatch a0) (Maybe (Vector (Event a0))) | |
HasNakadiEvents (SubscriptionEventStreamBatch a0) (Maybe (Vector (Event a0))) | |
type Rep (Event a) Source # | |
data EventStreamBatch a Source #
EventStreamBatch
EventStreamBatch Cursor (Maybe (Vector (Event a))) |
Show a => Show (EventStreamBatch a) Source # | |
Generic (EventStreamBatch a) Source # | |
ToJSON a0 => ToJSON (EventStreamBatch a0) Source # | |
FromJSON a0 => FromJSON (EventStreamBatch a0) Source # | |
HasNakadiCursor (EventStreamBatch a0) Cursor | |
HasNakadiEvents (EventStreamBatch a0) (Maybe (Vector (Event a0))) | |
type Rep (EventStreamBatch a) Source # | |
data SubscriptionEventStreamBatch a Source #
SubscriptionEventStreamBatch
Show a => Show (SubscriptionEventStreamBatch a) Source # | |
Generic (SubscriptionEventStreamBatch a) Source # | |
ToJSON a0 => ToJSON (SubscriptionEventStreamBatch a0) Source # | |
FromJSON a0 => FromJSON (SubscriptionEventStreamBatch a0) Source # | |
HasNakadiSubscriptionCursor (SubscriptionEventStreamBatch a) | |
HasNakadiCursor (SubscriptionEventStreamBatch a0) SubscriptionCursor | |
HasNakadiEvents (SubscriptionEventStreamBatch a0) (Maybe (Vector (Event a0))) | |
type Rep (SubscriptionEventStreamBatch a) Source # | |
ID of an Event
Partition Data
data ShiftedCursor Source #
Type for shift-cursor queries.
data CursorDistanceQuery Source #
Type for cursor-distance queries. Represents the request to compute the distance between initial cursor and final cursor.
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.
Subscription (Maybe SubscriptionId) ApplicationName [EventTypeName] (Maybe Text) (Maybe Timestamp) (Maybe SubscriptionPosition) (Maybe [SubscriptionCursorWithoutToken]) |
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
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.
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.
Type for offset values.
Type for limit values.
data PartitionState Source #
Type for partition states.
data PartitionStat Source #
Type for per-partition statistics.
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 a0 => ToJSON (DataChangeEvent a0) Source # | |
FromJSON a0 => FromJSON (DataChangeEvent a0) 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 a0 => ToJSON (EventEnriched a0) Source # | |
FromJSON a0 => FromJSON (EventEnriched a0) Source # | |
type Rep (EventEnriched a) Source # | |
data MetadataEnriched Source #
Type of enriched metadata values.
data EventTypeStatistics Source #
Type for event type statistics.
data EventTypeOptions Source #
Type for event type options.