package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DecodeDataKey decodes a time series key into its components: name, source, resolution, timestamp.
MakeDataKey creates a time series data key for the given series name, source, Resolution and timestamp.
MakeQueryMemoryContext constructs a new query memory context from the given parameters.
MakeServer instantiates a new Server which services requests with data from the supplied DB.
No description provided by the author
NewDB creates a new DB instance.
NewTimeSeriesMetrics creates a new instance of TimeSeriesMetrics.
ResolutionFromProto translates the resolution enum value from time series proto to ts.Resolution.

# Constants

64MiB.
Resolution10s stores data with a sample resolution of 10 seconds.
Resolution30m stores roll-up data from a higher resolution at a sample resolution of 30 minutes.
URLPrefix is the prefix for all time series endpoints hosted by the server.

# Variables

Resolution10sStorageTTL defines the maximum age of data that will be retained at the 10 second resolution.
Resolution30mStorageTTL defines the maximum age of data that will be retained at the 30 minute resolution.
TimeseriesStorageEnabled controls whether to store timeseries data to disk.

# Structs

DB provides Cockroach's Time Series API.
DefaultDumper translates *roachpb.KeyValue into TimeSeriesData.
QueryMemoryContext encapsulates the memory-related parameters of a time series query.
QueryMemoryOptions represents the adjustable options of a QueryMemoryContext.
QueryTimespan describes the time range information for a query - the start and end bounds of the query, along with the requested duration of individual samples to be returned.
Server handles incoming external requests related to time series data.
ServerConfig provides a means for tests to override settings in the time series server.
No description provided by the author
TimeSeriesMetrics contains metrics relevant to the time series system.

# Interfaces

A DataSource can be queried for a slice of time series data.

# Type aliases

ClusterNodeCountFn is a function that returns the number of nodes active on the cluster.
Resolution is used to enumerate the different resolution values supported by Cockroach.