Creates the installation’s shared tables and declares its built-in streams,
alert schedules, and metric collector. Repeated calls apply the supplied
configuration after defaults.
Example
Use an initialized client. Its Schema selects the installation.
if err := client.System().Register(ctx, &sqlstreams.SystemConfig{
Maximum age of a completed collection. Zero uses the greater of two minutes and three declared collector poll intervals. Must be nonnegative.
PendingDuration
time.Duration
2m
Required unhealthy duration under continuous manager lease coverage. Must be positive after defaults.
DisablePending
bool
false
Allows immediate activation with current manager lease coverage.
MetricCollectorWorkerConfig
Field
Type
Default
Description
PollRate
time.Duration
30s
Delay between collection passes. Zero selects the default. Must be positive.
Returns
Condition
Return value
All declarations succeed
nil.
A declaration fails
A non-nil error. Earlier declarations can remain applied.
Repeated registration
An omitted field selects its default, so repeated registration with cfg set to nil
can replace customized settings. Registration preserves existing suspension
and instance targets. Stored worker settings take effect when new instances
claim them. Queued alert checks retain the policy included in their messages.
CLI
sqlstreams systemregister
Applies the default system configuration, including to an existing installation.
Use the Go API for custom settings. --output json returns {"registered":true}
on success.
Errors
Error
When
Validation error
Alert settings, collector settings, or a schedule expression is invalid.
ErrSchemaNotCreatable
The schema is missing and the role cannot create it.
Schema compatibility error
Existing tables are incompatible with this build.
Database or context error
A declaration fails or is interrupted. Retrying the same declaration can complete partial registration.