Data sources
This document explains what a data source is, which data-source connectors it can use, how synced and remote data sources give Zenskar access to data, and how the sync frequency and cursor columns keep a synced data source current.Map of concepts
Map of concepts
Data sources: usage that stays in your systems
A data source is a named connection from Zenskar to a system in your data infrastructure that holds usage. Each data source uses one data-source connector and its connection settings. A data source lets a billable metric read usage where it already is. The usage needs no usage events. A billable metric reads data from the tables of a data source. The data-source connector and the connection settings of a data source cannot change after the data source is created. A different connection needs a new data source. A data source cannot be deleted.Add a data source
This guide shows how to add a data source with its data-source connector, connection settings, and access.
Data-source connectors: what a data source connects to
A data-source connector is the software component that connects Zenskar to one kind of system in your data infrastructure that holds usage. Zenskar has 16 data-source connectors, in three groups. Each data-source connector has its own connection settings. The document of each data-source connector explains them.Source access: synced or remote
A data source gives Zenskar access to its data in one of two ways. A synced data source is a data source whose data Zenskar copies on a schedule. A remote data source is a data source that Zenskar queries in place. Zenskar copies each kind of record of the system into a table, with one column for each field. The tables and columns to copy are chosen after the data source is created. A billable metric can read only the synced usage data.
A remote data source is read-only. A billable metric query reads either usage-event collections and synced usage data, or one remote data source. It cannot read both.
The data-source connector decides which access is possible:
When both are possible, a remote data source is the default. The access is part of the connection settings. It cannot change after the data source is created.
Sync frequency: how current the synced usage data is
The sync frequency is how often Zenskar copies the data of a synced data source. The sync frequency is every 1, 2, 3, 4, 6, 12, or 24 hours. The default is every 12 hours. A sync can also run on demand, between scheduled syncs. Syncing can be paused and resumed. While syncing is paused, the synced usage data stays as it was at the last sync. A billable metric reads the synced usage data. Usage that reaches the system after the last sync is not in the synced usage data until the next sync.Change the sync frequency
This guide shows how to change how often a synced data source syncs.
Sync now, pause, or resume syncing
This guide shows how to start a sync right away, or pause and resume scheduled syncs.
Cursor columns
A cursor column is a column of a synced table whose values tell Zenskar which rows are new since the last sync. With a cursor column, each sync adds the new rows to the table in the synced usage data. Without a cursor column, each sync replaces the whole table in the synced usage data. A cursor column must be one of the chosen columns.Choose the tables and columns to sync
This guide shows how to choose the tables, columns, cursor column, and primary key of a synced data source.