Internal

Catalog sync from the ops catalog (#5034)

Changed on

The metrics writer's catalog sync. A new (metric_key, version) is inserted; an existing one with identical content is a no-op; with other content it is refused (version_conflict): a change needs a new version. A line change (comparators, lines or path) against the key's latest stored version is refused (line_change_without_approval) unless the new version is approved with lines_approved_by and lines_approved_on, or both versions are still proposed. Every row must pass the catalog rules (invalid_definition). All or nothing. Mounted only when COMPANY_METRICS_WRITER_SERVICE_ACCOUNT and COMPANY_METRICS_WRITER_AUDIENCE are set; the only credential is the writer's Google-signed ID token.

put/internal/company-metrics/definitions

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Request body

object required
definitions, CompanyMetricDefinition[] required

Response

Synced

object required
success, true required
data, object required

Changes