Skip to content

Data model

Built

Every table Omniglass stores, with its primary and foreign keys and the references between them, in one diagram. It is generated from the migrated schema by make gen, so it cannot fall out of step with the tables: a schema change that does not regenerate it fails the ERD drift test. What the tables mean is on the pages that own them, starting with core entities; how they are stored is storage.

Tables are grouped into subsystem containers. Each table shows only its primary-key and foreign-key columns, the relational skeleton; the full column list of any table renders on its owning page from the same schema facts. Each edge is a foreign key, drawn from the referencing column to the row it points at. An edge that crosses a container border is a seam between subsystems (fleet.component.product_id pointing at catalog.product.id).

Diagramidentityfleetcatalogtelemetrycollectionconfigcontentauditchoice_alternateiduuidPKchoice_iduuidFKowner_kindtextFKowner_refuuidFKimpersonation_sessioniduuidPKreal_actor_user_iduuidFKtarget_user_iduuidFKmachineuser_iduuidPKpersonuser_iduuidPKroleiduuidPKslot_choiceiduuidPKstandard_iduuidFKsystem_iduuidFKowner_kindowner_refsystem_slotiduuidPKalternate_iduuidFKowner_kindtextFKowner_refuuidFKstandard_iduuidFKsystem_iduuidFKsystem_slot_assignmentiduuidPKcomponent_iduuidFKslot_iduuidFKsystem_iduuidFKsystem_slot_productproduct_iduuidPKslot_iduuidPKsystem_slot_typecomponent_type_iduuidPKslot_iduuidPKuser_grantiduuidPKgroup_iduuidFKrole_iduuidFKuser_iduuidFKuser_groupiduuidPKuser_group_idp_mappingiduuidPKgroup_iduuidFKuser_group_membergroup_iduuidPKuser_iduuidPKusersiduuidPKcomponentiduuidPKlocation_iduuidFKparent_iduuidFKproduct_iduuidFKcomponent_dependencyiduuidPKcomponent_iduuidFKupstream_iduuidFKendpointiduuidPKcomponentuuidFKdriver_iduuidFKoutpost_iduuidFKendpoint_liveendpoint_iduuidPKlocationiduuidPKlocation_typeuuidFKparent_iduuidFKlocation_typeiduuidPKlocation_type_metriciduuidPKlocation_type_iduuidFKmetric_type_iduuidFKlocation_type_propertyiduuidPKlocation_type_iduuidFKproperty_type_iduuidFKsystemiduuidPKlocation_iduuidFKparent_iduuidFKstandard_iduuidFKsystem_type_iduuidFKsystem_memberiduuidPKcomponent_iduuidFKsystem_iduuidFKcatalog_shadowcatalogtextPKrow_iduuidPKcomponent_typeiduuidPKparent_iduuidFKdriveriduuidPKproductiduuidPKcomponent_type_iduuidFKdriver_iduuidFKparent_product_iduuidFKvendor_iduuidFKproduct_metriciduuidPKmetric_type_iduuidFKproduct_iduuidFKproduct_propertyiduuidPKproduct_iduuidFKproperty_type_iduuidFKstandardiduuidPKparent_standard_iduuidFKstandard_metriciduuidPKmetric_type_iduuidFKstandard_iduuidFKstandard_propertyiduuidPKproperty_type_iduuidFKstandard_iduuidFKsystem_typeiduuidPKparent_iduuidFKvendoriduuidPKaction_ruleiduuidPKnotification_type_iduuidFKowner_user_iduuidFKaction_rule_opt_outrule_iduuidPKuser_iduuidPKaction_rule_targetrule_iduuidPKtarget_iduuidPKalarmiduuidPKacknowledged_byuuidFKcomponent_iduuidFKraised_by_rule_iduuidFKseveritytextFKalarm_snoozecomponent_iduuidPKdedup_keytextPKsnoozed_byuuidFKcalc_pendingcomponent_iduuidFKrule_iduuidFKsystem_iduuidFKcalc_ruleiduuidPKoutput_metric_type_iduuidFKoutput_property_type_iduuidFKcalc_rule_inputpositionintegerPKrule_iduuidPKmetric_type_iduuidFKproperty_type_iduuidFKcalc_rule_statecomponent_iduuidFKrule_iduuidFKsystem_iduuidFKcommandidbigintPKcaused_event_idbigintFKcommand_type_iduuidFKcomponent_iduuidFKdispatched_endpoint_iduuidFKlocation_iduuidFKoutpost_iduuidFKsettled_event_idbigintFKsystem_iduuidFKcommand_typeiduuidPKtarget_metric_type_iduuidFKtarget_property_type_iduuidFKeventidbigintPKalarm_iduuidFKcomponent_iduuidFKderived_by_rule_iduuidFKevent_type_iduuidFKlocation_iduuidFKoutpost_iduuidFKsource_event_idbigintFKsource_log_line_idbigintFKsystem_iduuidFKevent_ruleiduuidPKclear_event_type_iduuidFKfire_event_type_iduuidFKseveritytextFKevent_rule_firingcomponent_iduuidPKinstancetextPKrule_iduuidPKevent_rule_liverule_iduuidPKevent_rule_statecomponent_iduuidPKinstancetextPKrule_iduuidPKevent_typeiduuidPKlog_lineidbigintPKcomponent_iduuidFKmetricmetric_blockseries_idbigintFKmetric_block_markidbooleanPKmetric_declaredidbigintPKcommand_idbigintFKevent_idbigintFKseries_idbigintFKmetric_seriesidbigintPKcomponent_iduuidFKlocation_iduuidFKmetric_type_iduuidFKoutpost_iduuidFKsystem_iduuidFKmetric_trendhourtimestamp with time zonePKseries_idbigintPKmetric_trend_dirtyhourtimestamp with time zonePKseries_idbigintPKmetric_trend_markidbooleanPKmetric_typeiduuidPKnotificationiduuidPKalarm_iduuidFKcomponent_iduuidFKnotification_type_iduuidFKrecipient_user_iduuidFKrule_iduuidFKtarget_iduuidFKnotification_targetiduuidPKrole_iduuidFKsecret_iduuidFKuser_group_iduuidFKuser_iduuidFKnotification_typeiduuidPKpropertyidbigintPKcommand_idbigintFKcomponent_iduuidFKevent_idbigintFKlocation_iduuidFKoutpost_iduuidFKproperty_type_iduuidFKsystem_iduuidFKproperty_typeiduuidPKreserved_keynametextPKseverity_leveliduuidPKnametelemetry_receiptbatch_idtextPKidentity_bindingiduuidPKcomponent_iduuidFKconduit_iduuidFKproperty_type_iduuidFKsystem_iduuidFKoutpostuser_iduuidPKlocation_iduuidFKplatform_component_iduuidFKoutpost_logidbigintPKoutpost_iduuidFKplatform_servernametextPKplatform_component_iduuidFKsim_impairmentcomponent_iduuidPKtaskidtextPKendpoint_iduuidFKunbound_identityconduit_iduuidPKproperty_type_iduuidPKvaluetextPKunclaimed_sourceiduuidPKwebhook_tokenendpoint_iduuidPKsecret_iduuidFKassistant_conversationiduuidPKuser_iduuidFKassistant_messageconversation_iduuidPKseqintegerPKcredentialiduuidPKlinked_byuuidFKoauth_client_iduuidFKuser_iduuidFKvia_linkuuidFKlab_marksingletonbooleanPKlabel_ruleentity_kindtextPKoauth_clientiduuidPKoauth_codecode_hashbyteaPKclient_iduuidFKuser_iduuidFKoauth_refreshtoken_hashbyteaPKcredential_iduuidFKoidc_statestate_hashbyteaPKlink_user_iduuidFKsecretiduuidPKcomponent_iduuidFKlocation_iduuidFKsecret_typeuuidFKsystem_iduuidFKsecret_typeiduuidPKsetting_bindingiduuidPKvariableiduuidPKcomponent_iduuidFKlocation_iduuidFKsystem_iduuidFKblobsha256textPKfileiduuidPKsha256textFKtagiduuidPKtag_bindingiduuidPKcomponent_iduuidFKlocation_iduuidFKoutpost_iduuidFKsystem_iduuidFKtag_iduuidFKaudit_logiduuidPKactor_user_iduuidFKreal_actor_user_iduuidFKretired_sampleidbigintPK
  • identity: who can act and with what: users (people and machine users), user groups, grants, roles and the impersonation trail. System slots, their typed guards and a standard’s choices render here too.
  • fleet: what is monitored: locations and their types’ contracts, systems and membership, components and their dependency edges, and the endpoints a component is reached through.
  • catalog: what the fleet is typed by: vendors, products, drivers, component types, system types and standards, their contracts, and the shadow rows an admin’s fork of a shipped row lives in.
  • telemetry: the five lanes (metrics and properties, events, commands, log lines), their catalogs, the rules and alarms raised off them, and the notification lane.
  • collection: where telemetry is gathered: outposts, their tasks and self-logs, webhook tokens, identity bindings and the inboxes of unclaimed sources.
  • config: what parameterizes everything above: settings, variables and secrets, label rules, credentials and OAuth clients.
  • content: blobs, files and tag bindings.
  • audit: the audit log, every privileged mutation and sign-in, and the samples a writer-class ruling retired.