Skip to main content
This page provides a comprehensive schema reference for all data exported from Metronome to your data warehouse. Use this reference to understand the structure and contents of each table available in your exports. For SQL query examples, see the SQL cookbook.
NULLABLE COLUMNSDue to our export methodology, all columns may appear as nullable in your destination schema.

Core entities

Foundational data types and entities used throughout Metronome.

billable_metric

ColumnTypeDescription
idstringID of the billable metric
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
aggregatestringThe aggregation type
aggregate_keysjsonThe keys used for aggregation
group_keysjsonThe group by keys associated with this billable metric
namestringName of the billable metric
created_attimestampThe timestamp (UTC) of when the billable_metric was created
archived_attimestampThe timestamp (UTC) of when the billable_metric was archived
updated_attimestampThe timestamp (UTC) of when the billable_metric was last updated

credit_type

ColumnTypeDescription
_metronome_metadata_idstringMetronome metadata ID
idstringThe credit type ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
namestringThe name of the credit type
is_currencybooleanWhether or not the credit type is a currency, TRUE or FALSE
updated_attimestampThe timestamp (UTC) this row was last updated

Events

The full set of deduplicated raw events received by Metronome, regardless of whether or not they matched a billable metric.

events

ColumnTypeDescription
transaction_idstringThe unique ID of the event
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
customer_idstringThe ID of the customer the event applies to
timestamptimestampThe timestamp (UTC) of the event
event_typestringThe event type
propertiesjsonThe properties of the event
_metronome_metadata_idstringMetronome metadata ID
updated_attimestampThe timestamp (UTC) this row was last updated

Customers

Includes customer metadata stored in Metronome including their ingest aliases, which can be joined with the events table. The archived_at column is used to determine if the customer is active. The customer_billing_provider_configuration table adds further context on the billing provider for the customer.

customer

ColumnTypeDescription
idstringThe Metronome ID of the customer
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
namestringThe name of the customer
ingest_aliasesjsonThe ingest aliases of the customer
salesforce_account_idstringThe Salesforce account ID for the customer
billing_provider_typestringThe billing provider connected to the customer
billing_provider_customer_idstringThe billing provider ID of the customer
custom_fieldsjsonCustom fields attached to the customer
created_attimestampThe timestamp (UTC) of when the customer was created
updated_attimestampThe timestamp (UTC) of when the customer was last updated
archived_attimestampThe timestamp (UTC) of when the customer was archived, if applicable

customer_billing_provider_configuration

ColumnTypeDescription
idstringThe Metronome customer billing provider configuration ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
configurationstringThe configuration associated with the row
customer_idstringThe customer ID associated with this row
billing_providerstringThe billing provider associated with this row
created_attimestampThe timestamp (UTC) of when the customer billing provider configuration was created
updated_attimestampThe timestamp (UTC) this row was last updated

Invoicing

All invoice-related data including finalized invoices, drafts, and detailed breakdowns.

Finalized invoices

Includes all invoices to customers that have been finalized or voided. No further changes can be made to these invoices or their corresponding line items.

invoice

ColumnTypeDescription
idstringThe Metronome invoice ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
statusstringThe Metronome invoice status: FINALIZED or VOID
totaldecimalThe invoice total
credit_type_idstringThe credit type ID for the invoice
credit_type_namestringThe name of the credit type associated with the invoice
customer_idstringThe Metronome ID of the customer
plan_idstringDeprecated field - expect to be NULL
plan_namestringDeprecated field - expect to be NULL
contract_idstringThe contract ID associated with the invoice
billing_provider_invoice_idstringThe external invoice ID from the billing provider (e.g., Stripe)
billing_provider_typestringThe type of external system billing provider (e.g. Stripe)
billing_provider_invoice_created_attimestampThe timestamp (UTC) the external invoice was created by Metronome
billing_provider_invoice_external_statusstringThe status of the invoice in the external system (e.g. Stripe)
invoice_labelstringThe categorical label of the invoice
metadatajsonMetadata
start_timestamptimestampBeginning of the usage period that this invoice covers (UTC)
end_timestamptimestampEnd of the usage period that this invoice covers (UTC)
issued_attimestampThe timestamp (UTC) of when the invoice was issued
updated_attimestampThe timestamp (UTC) of when this row was last updated

line_item

ColumnTypeDescription
idstringThe line item ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
invoice_idstringThe Metronome invoice ID associated with the line item
credit_grant_idstringDeprecated field - expect to be NULL
credit_type_idstringThe credit type ID associated with the line item
credit_type_namestringThe name of the credit type associated with the line item
namestringThe line item description
quantitydecimalThe quantity associated with the line item; this will always be 1 for invoice adjustments
totaldecimalThe line item total
commit_idstringThe commit ID associated with the line item. Only present for Contract Invoices
product_idstringThe product ID associated with the line item; this will always be NULL for invoice adjustments
group_keystringThe group key associated with the line item
group_valuestringThe group value associated with the line item
unit_pricedecimalThe price associated with the line item
pricing_group_valuesjsonOptional pricing group values array
metadatajsonMetadata
subscription_idstringThe subscription ID associated with the line item. Only present for subscription charges.
is_proratedbooleanIndicates if the value is prorated over the period. For subscription charges only.
starting_attimestampThe timestamp (UTC) of when the line item is effective from (inclusive)
ending_beforetimestampThe timestamp (UTC) of when the line item is effective to (exclusive)
updated_attimestampThe timestamp (UTC) of when the line item was last updated

Draft invoices

Includes all invoices to customers that are in a draft state. These tables are daily snapshots of invoices based on each customer’s configuration and usage at a point-in-time during the day. The updated_at column is the time that the invoice row was calculated while the snapshot_time corresponds to the start of day (UTC). An invoice row will be populated once per day throughout a billing period until it is finalized or voided. If an invoice is in a DRAFT_INCOMPLETE state, it means that Metronome hasn’t fully computed the invoice. There will be no line items or total on the invoice. Exporting these invoices lets you know that the invoice exists, but Metronome has failed to compute it for some reason. Exporting incomplete invoices enables Metronome to send data to the specified destination as soon as possible. We expect these incomplete invoices to be hydrated in future snapshots.

draft_invoice

ColumnTypeDescription
_metronome_metadata_idstringUnique identifier for each draft invoice ID + snapshot_time pair
idstringThe Metronome invoice ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timetimestampThe timestamp (UTC) aligning with the start of the snapshot
statusstringThe Metronome invoice status: DRAFT or DRAFT_INCOMPLETE (see the invoice table for FINALIZED and VOID invoices)
totaldecimalThe invoice total
credit_type_idstringThe credit type ID for the invoice
credit_type_namestringThe name of the credit type associated with the invoice
customer_idstringThe Metronome ID of the customer
plan_idstringDeprecated field - expect to be NULL
plan_namestringDeprecated field - expect to be NULL
contract_idstringThe contract ID associated with the invoice
billable_statusstringBillable status of the invoice, BILLABLE or UNBILLABLE
billing_provider_invoice_idstringThe external invoice ID from the billing provider (e.g., Stripe)
billing_provider_invoice_created_attimestampThe timestamp (UTC) of when the external invoice was created by Metronome
labelstringThe categorical label of the invoice
start_timestamptimestampBeginning of the usage period that this invoice covers (UTC)
end_timestamptimestampEnd of the usage period that this invoice covers (UTC)
updated_attimestampThe timestamp (UTC) this row was last updated

draft_line_item

ColumnTypeDescription
_metronome_metadata_idstringOpaque unique identifier for each row
idstringThe line item ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timetimestampThe timestamp (UTC) aligning with the start of the snapshot
invoice_idstringThe Metronome invoice ID associated with the line item
credit_grant_idstringDeprecated field - expect to be NULL
credit_type_idstringThe credit type ID associated with the line item
credit_type_namestringThe name of the credit type associated with the line item
namestringThe line item description
quantitydecimalThe quantity associated with the line item; this will always be 1 for invoice adjustments
totaldecimalThe line item total
commit_idstringThe commit ID associated with the line item. Only present for Contract Invoices
product_idstringThe product ID associated with the line item; this will always be NULL for invoice adjustments
group_keystringThe group key associated with the line item
group_valuestringThe group value associated with the line item
unit_pricedecimalThe price associated with the line item
pricing_group_valuesjsonOptional pricing group values array
subscription_idstringThe subscription ID associated with the line item. Only present for subscription charges.
is_proratedbooleanIndicates if the value is prorated over the period. For subscription charges only.
metadatajsonMetadata
starting_attimestampThe timestamp (UTC) of when the line item is effective from (inclusive)
ending_beforetimestampThe timestamp (UTC) of when the line item is effective to (exclusive)
updated_attimestampThe timestamp (UTC) of when the line item was last updated

Invoice breakdowns

Invoice breakdowns are stored in four separate tables that are exported to your warehouse destination daily. The draft invoice data exports in snapshots that contains all month-to-date breakdown periods up to the snapshot timestamp. This ensures that any mid-billing period pricing and packaging changes, as well as backdated usage data, correctly reflect in the most recent draft invoice breakdown snapshot. Finalized invoice breakdowns export incrementally as invoices finalize.
INVOICE BREAKDOWN FILTERSTo reduce the volume of data exported to your data warehouse destination, you can filter invoice breakdown exports to ignore:
  • All $0 total and >0 quantity invoices and line items
  • All $0 and 0 quantity invoices and line items
To enable filters, contact your Metronome Solutions Architect.

breakdowns_invoices

ColumnTypeDescription
idstringThe Metronome invoice breakdown ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timestamptimestampThe timestamp (UTC) aligning with the start of the snapshot
invoice_idstringThe Metronome invoice ID associated with the breakdown
customer_idstringThe Metronome customer ID associated with the breakdown
transfer_idstringThe Metronome transfer ID for this invoice breakdown
credit_type_idstringThe ID of the credit type associated with the invoice
net_payment_term_daysintegerThe net payment term in days associated with the invoice
credit_type_namestringThe name of the credit type associated with the invoice
subtotaldecimalDeprecated field—expect to be NULL unless using Plans data model
totaldecimalThe total for the invoice
typestringThe invoice type
external_invoicejsonThe external invoice data
plan_idstringDeprecated field—expect to be NULL unless using Plans data model
contract_idstringThe contract ID associated with the invoice
amendment_idstringThe amendment ID associated with the invoice
custom_fieldsjsonCustom fields that apply to the invoice
billable_statusstringThe invoice’s billable status
window_sizestringThe size of the breakdown window—typically DAILY
metadatajsonMetadata
issued_attimestampThe timestamp (UTC) when this invoice was issued
invoice_start_timestamptimestampBeginning of the usage period that this invoice covers (UTC) (inclusive)
invoice_end_timestamptimestampEnd of the usage period that this invoice covers (UTC) (exclusive)
breakdown_start_timestamptimestampThe timestamp corresponding with the start of the breakdown window (inclusive)
breakdown_end_timestamptimestampThe timestamp corresponding with the end of the breakdown window (exclusive)
updated_attimestampThe timestamp (UTC) when this row last updated

breakdowns_line_items

ColumnTypeDescription
idstringThe Metronome line item breakdown ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timestamptimestampThe timestamp (UTC) aligning with the start of the snapshot
watermark_timestamptimestampThe timestamp indicating the latest modification to this row
invoice_breakdown_idstringThe Metronome invoice breakdown ID associated with the line item
namestringThe name of the line item associated with the breakdown
transfer_idstringThe Metronome transfer ID for this line item breakdown
group_keystringThe group key associated with the line item
group_valuestringThe group value associated with the line item
quantitydecimalThe quantity of this line item breakdown row—always 1 for invoice adjustments
totaldecimalThe total for the line item breakdown
unit_pricedecimalThe unit price for the line item
product_idstringThe ID of the product for the line item—always NULL for invoice adjustments
product_typestringThe type of product for the line item breakdown
credit_type_idstringThe credit type ID associated with the line item
credit_type_namestringThe name of the credit type associated with the line item
commit_idstringThe commit ID associated with the line item breakdown
commit_segment_idstringThe commit segment ID associated with the line item breakdown
commit_typestringThe commit type associated with the line item breakdown
subscription_idstringThe subscription ID associated with the line item breakdown—only present for subscription charges.
is_proratedbooleanIndicates if the value is prorated over the period. For subscription charges only.
line_item_idstringThe unique line item id that can be used to join with records in the line_item table
line_item_typestringThe unique line item type that defines the type of revenue represented in the line item
custom_fieldsjsonCustom fields that apply to the breakdown
pricing_group_valuesjsonThe pricing group values associated with the line item breakdown
presentation_group_valuesjsonThe presentation group values associated with the line item breakdown
billable_metric_idstringThe billable metric ID that applies to the line item breakdown
metadatajsonAdditional metadata in JSON format (see Metadata)
breakdown_start_timestamptimestampThe timestamp corresponding with the start of the breakdown window (inclusive)
breakdown_end_timestamptimestampThe timestamp corresponding with the end of the breakdown window (exclusive)
updated_attimestampThe timestamp (UTC) when this row last updated

breakdowns_draft_invoices

ColumnTypeDescription
idstringThe Metronome invoice breakdown ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timestamptimestampThe timestamp (UTC) aligning with the start of the snapshot
invoice_idstringThe Metronome invoice ID associated with the breakdown
customer_idstringThe Metronome customer ID associated with the breakdown
transfer_idstringThe Metronome transfer ID for this invoice breakdown
credit_type_idstringThe ID of the credit type associated with the invoice
net_payment_term_daysintegerThe net payment term in days associated with the invoice
credit_type_namestringThe name of the credit type associated with the invoice
subtotaldecimalDeprecated field—expect to be NULL unless using Plans data model
totaldecimalThe total for the invoice
typestringThe invoice type
external_invoicejsonThe external invoice data
plan_idstringDeprecated field—expect to be NULL unless using Plans data model
contract_idstringThe contract ID associated with the invoice
amendment_idstringThe amendment ID associated with the invoice
custom_fieldsjsonCustom fields that apply to the invoice
billable_statusstringThe invoice’s billable status
window_sizestringThe size of the breakdown window—typically DAILY
metadatajsonAdditional metadata in JSON format
issued_attimestampThe timestamp (UTC) when this invoice was issued
invoice_start_timestamptimestampBeginning of the usage period that this invoice covers (UTC) (inclusive)
invoice_end_timestamptimestampEnd of the usage period that this invoice covers (UTC) (exclusive)
breakdown_start_timestamptimestampThe timestamp corresponding with the start of the breakdown window (inclusive)
breakdown_end_timestamptimestampThe timestamp corresponding with the end of the breakdown window (exclusive)
updated_attimestampThe timestamp (UTC) when this row last updated

breakdowns_draft_line_items

ColumnTypeDescription
idstringThe Metronome line item breakdown ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_timestamptimestampThe timestamp (UTC) aligning with the start of the snapshot
watermark_timestamptimestampThe timestamp indicating the latest modification to this row
invoice_breakdown_idstringThe Metronome invoice breakdown ID associated with the line item
namestringThe name of the line item associated with the breakdown
transfer_idstringThe Metronome transfer ID for this line item breakdown
group_keystringThe group key associated with the line item
group_valuestringThe group value associated with the line item
quantitydecimalThe quantity of this line item breakdown row; always 1 for invoice adjustments
totaldecimalThe total for the line item breakdown
unit_pricedecimalThe unit price for the line item
product_idstringThe ID of the product for the line item; always NULL for invoice adjustments
product_typestringThe type of product for the line item breakdown
credit_type_idstringThe credit type ID associated with the line item
credit_type_namestringThe name of the credit type associated with the line item
commit_idstringThe commit ID associated with the line item breakdown
commit_segment_idstringThe commit segment ID associated with the line item breakdown
commit_typestringThe commit type associated with the line item breakdown
subscription_idstringThe subscription ID associated with the line item breakdown; only present for subscription charges.
is_proratedbooleanIndicates if the value is prorated over the period. For subscription charges only.
line_item_idstringThe unique line item id that can be used to join with records in the line_item table
line_item_typestringThe unique line item type that defines the type of revenue represented in the line item
custom_fieldsjsonCustom fields that apply to the breakdown
pricing_group_valuesjsonThe pricing group values associated with the line item breakdown
presentation_group_valuesjsonThe presentation group values associated with the line item breakdown
billable_metric_idstringThe billable metric ID that applies to the line item breakdown
metadatajsonAdditional metadata in JSON format (see Metadata)
breakdown_start_timestamptimestampThe timestamp corresponding with the start of the breakdown window (inclusive)
breakdown_end_timestamptimestampThe timestamp corresponding with the end of the breakdown window (exclusive)
updated_attimestampThe timestamp (UTC) when this row last updated

Contracts

Includes contract information. The archived_at column defines whether the contract has been archived or not.

contracts_contracts

ColumnTypeDescription
idstringID of the contract
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the contract row
namestringName of the contract
customer_idstringThe customer ID of the contract
rate_card_idstringThe rate card ID of the contract
starting_attimestampThe contract start timestamp (UTC)
ending_beforetimestampThe contract end timestamp (UTC). This timestamp is exclusive.
archived_attimestampThe timestamp (UTC) of when the contract was archived.
multiplier_override_prioritizationstringThe prioritization for a multiplier override. There are two options:
• Lowest multiplier (default): The lowest multiplier, aka the biggest discount, is used.
• Explicit: The override with the lowest priority will be prioritized.
net_payment_terms_daysintegerThe amount of time a customer has to pay a contract. For example, “net 30”
usage_statement_schedule_frequencystringThe usage statement generation frequency. For example, “monthly” or “quarterly”.
scheduled_charges_on_usage_invoicesstringValid values are ALL if scheduled invoices will be combined with usage invoices on the same date, otherwise null.
metadataMetadataJSON encoded object
created_attimestampThe timestamp (UTC) of when the contract was created
created_bystringThe entity the contract was created by
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_commits

The commits table only includes contract-level commits. It does not include customer-level commits or credits, or contract-level credits.
ColumnTypeDescription
idstringThe commit
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID of the row
contract_idstringThe contract ID of the commit
amendment_idstringThe amendment ID associated with the commit
typestringThe type of commit: postpaid or prepaid
namestringThe name of the commit
priorityfloatThe priority that defines the order in which commits should be applied
descriptionstringThe description of the commit
product_idstringThe product ID associated with the commit
amountfloatDeprecated (use the amount from the schedule items instead)
access_schedulejsonAccessSchedule
invoice_schedulejsonInvoiceSchedule The invoice_schedule is always set for “postpaid” commits, sometimes set for “prepaid” commits, and never for “credit”
rollover_fractionfloatThe fraction of the commit that was rolled over
rate_typestringEither COMMIT_RATE or LIST_RATE
applicable_product_idsjsonJSON encoded list of applicable product IDs
applicable_product_tagsjsonJSON encoded list of applicable product tags
specifiersjsonCommitSpecifier[] - JSON encoded list of applicable usage
ledgerjsonCommitLedgerEntry[]
rolled_over_from_commit_idstringThe commit ID the commit was rolled over from
rolled_over_from_contract_idstringThe contract ID the commit was rolled over from
recurring_commit_idstringThe ID of the parent config that created this commit (null if this commit was not created by a recurring commit)
metadatajsonMetadata
balancefloatThe current balance of the commit. This balance reflects the amount of commit that the customer has access to use at this moment. Expired and upcoming commit segments contribute 0 to the balance. The balance matches the sum of all ledger entries except when the sum of negative manual ledger entries exceeds the positive amount remaining on the commit. In that case, the balance is 0. All manual ledger entries associated with active commit segments are included in the balance, including future-dated manual ledger entries.
updated_attimestampThe timestamp (UTC) of when the commit was last updated

contracts_commits.AccessSchedule

interface AccessSchedule {
  credit_type_id: string;
  credit_type_name: string;
  schedule_items: Array<{
    id: string;
    /** ISO-8601 formatted timestamp */
    date: string;
    /** ISO-8601 formatted timestamp */
    end_date: string | null;
    /** Float */
    amount: number;
  }>;
}

contracts_commits.InvoiceSchedule

interface InvoiceSchedule {
  credit_type_id: string;
  credit_type_name: string;
  do_not_invoice: boolean;
  schedule_items: Array<{
    id: string;
    /** ISO-8601 formatted timestamp */
    date: string;
    /** Float */
    amount: number;
    invoice_id: string | null;
  }>;
  recurring_schedule: {
    /** ISO-8601 formatted timestamp */
    start_date: string;
    /** ISO-8601 formatted timestamp */
    end_date: string;
    /** Float */
    amount: number;
    amount_distribution: "divided" | "divided_rounded" | "each";
    frequency: "annual" | "monthly" | "quarterly" | "semi_annual";
    /** Float */
    quantity?: number;
    /** Float */
    unit_price?: number;
  } | null;
}

contracts_commits.CommitLedgerEntry

type LedgerEntry =
  | {
      /**
       * Represents the starting balance of a postpaid commit.
       */
      type: "postpaid_initial_balance";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
    }
  | {
      /**
       * Represents deductions from the remaining obligation of the
       * postpaid commit as the result of an invoice with usage that
       * applies to this commit.
       */
      type: "postpaid_automated_invoice_deduction";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      invoice_id: string;
    }
  | {
      /**
       * Represents a true-up invoice that was issued for this commit to
       * cover usage that was not covered by automated usage invoices.
       */
      type: "postpaid_trueup";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      invoice_id: string;
    }
  | {
      /**
       * Represents that a prepaid commit segment was started and the customer
       * now has access to the usage amount for that segment. These segments
       * are described in the access schedule of the prepaid commit.
       */
      type: "prepaid_segment_start";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      /**
       * Represents deductions from the prepaid commit segment caused by a
       * usage invoice that included usage applicable to this commit.
       */
      type: "prepaid_automated_invoice_deduction";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      /**
       * Represents unused usage from the prepaid commit which was rolled
       * over to a new contract.
       */
      type: "prepaid_rollover";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      new_contract_id: string;
      new_commit_id: string;
    }
  | {
      type: "prepaid_commit_canceled";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      type: "prepaid_commit_credited";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      /**
       * Represents commit amount that was unused and expired at the end of
       * a commit segment. Does not include usage that rolled over to a new
       * contract.
       */
      type: "prepaid_segment_expiration";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      type: "prepaid_manual";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      reason: string;
    }
  | {
      type: "postpaid_manual";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
    };

contracts_commits.CommitSpecifier

type CommitSpecifier = {
  product_id?: string;
  product_tags?: string[];
  presentation_group_values?: {
    [key: string]: string;
  };
  pricing_group_values?: {
    [key: string]: string;
  };
}

contracts_balances

ColumnTypeDescription
idstringThe ID of the balance
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID of the row
customer_idstringThe customer ID of the balance
contract_idstringThe contract ID of the balance
amendment_idstringThe amendment ID of the balance
typestringEither postpaid, prepaid, or credit
namestringThe name of the balance
priorityfloatThe priority that defines the order of balance application
descriptionstringThe description of the balance
product_idstringThe product ID associated with the balance
access_schedulejsonAccessSchedule
invoice_schedulejsonInvoiceSchedule - The invoice_schedule is always set for “postpaid” commits, sometimes set for “prepaid” commits, and never for “credit”
rollover_fractionfloatThe fraction of the balance that was rolled over
rate_typestringEither COMMIT_RATE or LIST_RATE
applicable_product_idsjsonJSON encoded list of applicable product IDs
applicable_product_tagsjsonJSON encoded list of applicable product tags
specifiersjsonCommitSpecifier[] - JSON encoded list of applicable usage
applicable_contract_idsjsonJSON encoded list of applicable contract IDs
invoice_contract_idstringThe invoice contract ID associated with the balance
ledgerjsonCommitLedgerEntry[]
rolled_over_from_commit_idstringThe commit ID the balance was rolled over from
rolled_over_from_contract_idstringThe contract ID the balance was rolled over from
recurring_commit_idstringThe ID of the parent config that created this commit / credit (null if this commit was not created by a recurring commit / credit)
metadatajsonMetadata
balancefloatThe current balance of the credit or commit. This balance reflects the amount of credit or commit that the customer has access to use at this moment. Expired and upcoming credit or commit segments contribute 0 to the balance. The balance matches the sum of all ledger entries except when the sum of negative manual ledger entries exceeds the positive amount remaining on the credit or commit. In that case, the balance is 0. All manual ledger entries associated with active credit or commit segments are included in the balance, including future-dated manual ledger entries.
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_balances.AccessSchedule

interface AccessSchedule {
  credit_type_id: string;
  credit_type_name: string;
  schedule_items: Array<{
    id: string;
    /** ISO-8601 formatted timestamp */
    date: string;
    /** ISO-8601 formatted timestamp */
    end_date: string | null;
    /** Float */
    amount: number;
  }>;
}

contracts_balances.InvoiceSchedule

interface InvoiceSchedule {
  credit_type_id: string;
  credit_type_name: string;
  do_not_invoice: boolean;
  schedule_items: Array<{
    id: string;
    /** ISO-8601 formatted timestamp */
    date: string;
    /** Float */
    amount: number;
    invoice_id: string | null;
  }>;
  recurring_schedule: {
    /** ISO-8601 formatted timestamp */
    start_date: string;
    /** ISO-8601 formatted timestamp */
    end_date: string;
    /** Float */
    amount: number;
    amount_distribution: "divided" | "divided_rounded" | "each";
    frequency: "annual" | "monthly" | "quarterly" | "semi_annual";
    /** Float */
    quantity?: number;
    /** Float */
    unit_price?: number;
  } | null;
}

contracts_balances.CommitLedgerEntry

type LedgerEntry =
  | {
      /**
       * Represents the starting balance of a postpaid commit.
       */
      type: "postpaid_initial_balance";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
    }
  | {
      /**
       * Represents deductions from the remaining obligation of the
       * postpaid commit as the result of an invoice with usage that
       * applies to this commit.
       */
      type: "postpaid_automated_invoice_deduction";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      invoice_id: string;
    }
  | {
      /**
       * Represents a true-up invoice that was issued for this commit to
       * cover usage that was not covered by automated usage invoices.
       */
      type: "postpaid_trueup";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      invoice_id: string;
    }
  | {
      /**
       * Represents that a prepaid commit segment was started and the customer
       * now has access to the usage amount for that segment. These segments
       * are described in the access schedule of the prepaid commit.
       */
      type: "prepaid_segment_start";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      /**
       * Represents deductions from the prepaid commit segment caused by a
       * usage invoice that included usage applicable to this commit.
       */
      type: "prepaid_automated_invoice_deduction";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      /**
       * Represents unused usage from the prepaid commit which was rolled
       * over to a new contract.
       */
      type: "prepaid_rollover";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      new_contract_id: string;
      new_commit_id: string;
    }
  | {
      type: "prepaid_commit_canceled";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      type: "prepaid_commit_credited";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      /**
       * Represents commit amount that was unused and expired at the end of
       * a commit segment. Does not include usage that rolled over to a new
       * contract.
       */
      type: "prepaid_segment_expiration";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      type: "prepaid_manual";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      reason: string;
    }
  | {
      type: "postpaid_manual";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
    }
  | {
      /**
       * Represents that a credit segment was started and the customer
       * now has access to the usage amount for that segment. These segments
       * are described in the access schedule of the credit.
       */
      type: "credit_segment_start";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      /**
       * Represents deductions from the credit segment caused by a
       * usage invoice that included usage applicable to this credit.
       */
      type: "credit_automated_invoice_deduction";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      type: "credit_commit_canceled";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      type: "credit_commit_credited";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      invoice_id: string;
    }
  | {
      /**
       * Represents credit amount that was unused and expired at the end of
       * a credit segment.
       */
      type: "credit_segment_expiration";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
    }
  | {
      type: "credit_manual";
      /** ISO-8601 formatted timestamp */
      timestamp: string;
      /** Float */
      amount: number;
      segment_id: string;
      reason: string;
    };

contracts_balances.CommitSpecifier

type CommitSpecifier = {
  product_id?: string;
  product_tags?: string[];
  presentation_group_values?: {
    [key: string]: string;
  };
  pricing_group_values?: {
    [key: string]: string;
  };
}
This includes any recurring commits and credits that are defined on contracts.

contracts_recurring_commits_and_credits

ColumnTypeDescription
idstringThe unique ID of the recurring commit/credit
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID of the row
contract_idstringThe contract ID of the recurring commit/credit
customer_idstringThe customer ID associated with the recurring commit/credit
typestringThe type: commit or credit
namestringThe name that’s passed down to created commits/credits
priorityfloatThe priority that’s passed down to created commits/credits
descriptionstringThe description that’s passed down to created commits/credits
product_idstringThe product ID that’s passed down to created commits/credits
access_amountjsonAccessAmount
invoice_amountjsonInvoiceAmount Not set for recurring credits, but optional for recurring commits
rollover_fractionfloatThe rollover amount that’s passed down to created commits/credits. Note that this controls rollover between contracts on contract transition, and not rollover from one period to the next.
rate_typestringThe rate type that’s passed down to created commits/credits
applicable_product_idsjsonThe applicable product IDs passed down to created commits/credits
applicable_product_tagsjsonThe applicable product tags passed down to created commits/credits
specifiersjsonCommitSpecifier[] - JSON encoded list of applicable usage
commit_durationjsonCommitDuration How long each created commit is valid for starting from the start date. Currently the unit is always PERIODS, representing the length of the contract’s billing periods (e.g. monthly, quarterly or annual)
prorationstringUsed to control whether the first or last billing periods are prorated. Valid values are NONE, FIRST, LAST, and FIRST_AND_LAST. Default is FIRST_AND_LAST.
recurrence_frequencystringIf set, commits or credits are created based on the frequency specified and begin to recur at the start date specified on the recurring commit or credit config. Accepted values are MONTHLY, QUARTERLY, and ANNUAL.
metadatajsonMetadata
subscription_configjsonSubscriptionConfig - Configuration for linked subscription
starting_attimestampThe timestamp (UTC) of when the recurring credit or commit starts (inclusive)
ending_beforetimestampThe timestamp (UTC) of when the recurring credit or commit ends (exclusive)
updated_attimestampThe timestamp (UTC) of when the recurring commit / credit was last updated

contracts_recurring_commits_and_credits.AccessAmount

interface AccessAmount {
  unit_price: number;
  quantity: number;
  credit_type_id: string;
  credit_type_name: string;
}

contracts_recurring_commits_and_credits.InvoiceAmount

interface InvoiceAmount {
  unit_price: number;
  quantity: number;
  credit_type_id: string;
  credit_type_name: string;
}

contracts_recurring_commits_and_credits.CommitDuration

enum CommitDurationUnit {
  PERIODS = "PERIODS",
}

interface CommitDuration {
  unit: CommitDurationUnit;
  value: number;
}

contracts_recurring_commits_and_credits.CommitSpecifier

type CommitSpecifier = {
  product_id?: string;
  product_tags?: string[];
  presentation_group_values?: {
    [key: string]: string;
  };
  pricing_group_values?: {
    [key: string]: string;
  };
}

contracts_recurring_commits_and_credits.SubscriptionConfig

enum SubscriptionAllocationForRecurringCommitEnum {
  POOLED = "pooled",
  INDIVIDUAL = "individual",
}

type SubscriptionConfig = {
  subscription_id: string;
  apply_seat_increase_config: {
    is_prorated: boolean;
  };
  allocation: SubscriptionAllocationForRecurringCommitEnum;
};
Usage filters change over time, so each row represents a distinct version of a usage filter. To determine the correct version of a usage filter at a given point in time, filter the table by:
  • contract_id
  • starting_at >= {TIME_PERIOD_START}
  • ending_before <= {TIME_PERIOD_END}
(Filter by all three qualifiers combined.)

contracts_usage_filter_schedule

ColumnTypeDescription
idstringThe Metronome ID of the contract usage filter
contract_idstringThe ID of the contract associated with the usage filter
starting_attimestampThe timestamp (UTC) of the starting timestamp the usage filter is active (inclusive)
ending_beforetimestampThe timestamp (UTC) of the ending timestamp the usage filter is active (inclusive)
group_keystringThe group key for the usage filter
group_valuesjsonGroup values for this usage filter row, stored in a JSON encoded list
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_billing_provider_configuration

This table is exported incrementally. Use the updated_at column to pull the latest updates.
ColumnTypeDescription
idstringThe Metronome contract billing provider configuration ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
contract_idstringThe Metronome contract ID associated with this row
customer_idstringThe customer ID associated with this row
billing_provider_config_idstringThe Metronome billing provider configuration ID associated with this row
updated_attimestampThe timestamp (UTC) this row was last updated

contracts_usage_filters

Usage filters change over time, so each row represents a distinct version of a usage filter. To determine the correct version of a usage filter at a given point in time:
  • Filter the table by contract_id and starting_at <= {TIME}
  • Select the row with the largest version
ColumnTypeDescription
idstringThe Metronome ID of the contract usage filter
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe ID of the snapshot this row was transferred during
contract_idstringThe ID of the contract associated with the usage filter
versionintegerThe version of the usage filter
starting_attimestampThe timestamp (UTC) of the starting timestamp the usage filter is active (inclusive)
group_keystringThe group key for the usage filter
group_valuesjsonGroup values for this usage filter row, stored in a JSON encoded list
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_prepaid_balance_threshold_configurations

ColumnTypeDescription
idstringSame as contract_id
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
contract_idstringThe contract ID associated with the prepaid balance threshold configuration
enabledbooleanWhether prepaid balance threshold billing is enabled
threshold_amountfloatThe prepaid balance threshold at which to trigger threshold commit creation
recharge_to_amountfloatThe amount to recharge the balance to when the threshold is reached
commit_namestringThe name to use as the line item of the threshold charge
commit_descriptionstringThe description used in the threshold commit
commit_product_idstringThe fixed product ID used for prepaid balance threshold commits
commit_applicable_product_idsjsonJSON encoded list of applicable product IDs for the commit
commit_applicable_product_tagsjsonJSON encoded list of applicable product tags for the commit
payment_gate_typestringThe payment gate type: STRIPE, EXTERNAL, or NONE
tax_typestringThe tax provider used: STRIPE, ANROK, PRECALCULATED, or NONE
stripe_payment_typestringThe payment type if using Stripe payment gate: PAYMENT_INTENT or INVOICE
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_spend_threshold_configurations

ColumnTypeDescription
idstringSame as contract_id
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
contract_idstringThe contract ID associated with the spend threshold configuration
enabledbooleanWhether spend threshold billing is enabled
threshold_amountfloatThe spend threshold at which to trigger threshold commit creation
commit_namestringThe name to use as the line item of the threshold charge
commit_descriptionstringThe description used in the threshold commit
commit_product_idstringThe ID of the fixed product used for spend threshold commits
payment_gate_typestringThe payment gate type: STRIPE, EXTERNAL, or NONE
tax_typestringThe tax provider used: STRIPE, ANROK, PRECALCULATED, or NONE
stripe_payment_typestringThe payment type if using Stripe payment gate: PAYMENT_INTENT or INVOICE
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_subscriptions

ColumnTypeDescription
idstringThe ID of the subscription
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
customer_idstringThe Metronome ID of the customer
contract_idstringThe current contract ID
product_idstringThe product ID of the subscription
namestringThe name of the subscription
descriptionstringThe description of the subscription
billing_frequencystringThe billing frequency of the subscription
collection_schedulestringThe collection schedule of the subscription
is_proratedbooleanWhether or not the subscription is prorated
invoice_behaviorstringThe invoice behavior of the subscription
quantity_schedulejsonThe quantity schedule of the subscription
fiat_credit_type_idstringThe fiat credit type ID used by the subscription
metadatajsonMetadata
starting_attimestampThe timestamp (UTC) of when the subscription starts
ending_beforetimestampThe timestamp (UTC) of when the subscription ends
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_scheduled_charges

ColumnTypeDescription
idstringThe ID of the scheduled charge
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
contract_idstringThe contract ID associated with the scheduled charge
amendment_idstringThe amendment ID associated with the scheduled charge
namestringThe name of the scheduled charge
descriptionstringThe description of the scheduled charge
product_idstringThe product ID associated with the scheduled charge
credit_type_idstringThe ID of the credit type or currency
credit_type_namestringThe name of the credit type or currency
schedulejsonSchedule
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_scheduled_charges.Schedule

interface Schedule {
  schedule_items: Array<{
    id: string;
    /** ISO-8601 formatted timestamp */
    date: string;
    /** Float */
    amount: number;
  }>;
  recurring_schedule: {
    /** ISO-8601 formatted timestamp */
    start_date: string;
    /** ISO-8601 formatted timestamp */
    end_date: string;
    /** Float */
    amount: number;
    amount_distribution: "divided" | "divided_rounded" | "each";
    frequency: "annual" | "monthly" | "quarterly" | "semi_annual";
    /** Float */
    quantity?: number;
    /** Float */
    unit_price?: number;
  } | null;
}

Contract modifications

Includes any modifications of contracts. The contracts_overrides table holds any overrides on top of an existing contract. The contracts_transitions and contracts_edits tables contain information about contracts ending, renewing, or changing.

contracts_overrides

ColumnTypeDescription
idstringThe ID of the override
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
contract_idstringThe contract ID of the override
amendment_idstringThe amendment ID of the override
product_idstringThe product ID of the override
entitledbooleanWhether or not the override is entitled
rate_typestringEither multiplier, overwrite_flat, or overwrite_percentage. NULL if this does not override the rate
multiplierfloatThe multiplier of the override
priorityfloatOnly defined for contracts with EXPLICIT multiplier override prioritization
new_ratejsonRate
credit_type_idstringOnly defined for “overwrite_flat”, “overwrite_tiered”, “overwrite_subscription”, or “overwrite_custom” rate types
credit_type_namestringOnly defined for “overwrite_flat”, “overwrite_tiered”, “overwrite_subscription”, or “overwrite_custom” rate types
applicable_product_tagsjsonJSON encoded list of strings
override_specifiersjsonOverrideSpecifier[]
targetstringEither COMMIT_RATE or LIST_RATE. Indicates which rate the override applies to
is_commit_specificbooleanWhether or not the override is commit specific
metadatajsonMetadata
tiered_overridejsonRates and tiers for tiered overrides
starting_attimestampThe timestamp (UTC) of when the override starts (inclusive)
ending_beforetimestampThe timestamp (UTC) of when the override ends (exclusive)
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_overrides.OverrideSpecifier

type OverrideSpecifier = {
  commit_ids?: string[];
  product_id?: string;
  product_tags?: string[];
  pricing_group_values?: Array<{
    name: string;
    value: string;
  }>;
  presentation_group_values?: Array<{
    name: string;
    value: string;
  }>;
  // If set, the override will only apply to usage that burns down commits / credits that were created by the specified recurring config
  recurring_commit_ids?: string[];
  recurring_credit_ids?: string[];
};

contracts_overrides.Rate

type Rate =
  | {
      type: "flat";
      unit_price: number;
    }
  | {
      type: "percentage";
      fraction: number;
      use_list_prices: boolean;
    }
  | {
      type: "subscription";
      unit_price: number;
      quantity: number;
    };

contracts_transitions

ColumnTypeDescription
idstringThe ID of the transition event
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
typestringEither “renewal” or “supersede”
contract_idstringThe current contract ID
from_contract_idstringThe contract ID that applies prior to the transition
to_contract_idstringThe contract ID that applies after the transition
datetimestampThe timestamp (UTC) of the transition
metadatajsonMetadata
updated_attimestampThe timestamp (UTC) at which this row was exported

contracts_edits

ColumnTypeDescription
idstringThe ID of the contract edit
contract_idstringThe contract ID of the edit
timestamptimestampThe timestamp (UTC) of the edit
editsjsonDetails of the edits made
metadatajsonMetadata
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
created_bystringThe entity the contract edit was created by
updated_attimestampThe timestamp (UTC) at which this row was exported
snapshot_idstringThe snapshot ID for the row

contracts_amendments

ColumnTypeDescription
idstringThe ID of the contract amendment
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe snapshot ID for the row
contract_idstringThe contract ID of the amendment
effective_attimestampThe timestamp (UTC) of when the contract amendment is effective starting at
metadatajsonMetadata
created_attimestampThe timestamp (UTC) of when the contract amendment was created
created_bystringThe entity the contract amendment was created by
updated_attimestampThe timestamp (UTC) at which this row was exported

Contract pricing

Includes all information about pricing for a contract.

contracts_rate_cards

ColumnTypeDescription
idstringThe Metronome contract rate card ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe ID of the snapshot this row was transferred during
credit_type_conversionsjsonThe credit type conversions associated with the row
metadatajsonMetadata
aliasesjsonList of aliases for the rate card
fiat_credit_type_idstringThe fiat credit type ID associated with the rate card
fiat_credit_type_namestringThe name of the fiat credit type associated with the rate card
descriptionstringThe description of the rate card
namestringThe name of the rate card
created_bystringThe creator of the rate card
created_attimestampThe timestamp (UTC) this row was created
updated_attimestampThe timestamp (UTC) this row was last updated
archived_attimestampThe timestmap (UTC) this row was archived if applicable

contracts_rate_card_entries

ColumnTypeDescription
idstringThe Metronome contract rate card entry ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
rate_card_idstringThe Metronome rate card ID associated with this entry
product_idstringThe product ID associated with this entry
versionintegerThe version of this rate card entry
entitledbooleanWhether or not the entry is entitled
ratestringThe rate that applies to the entry
commit_ratestringThe commit rate that applies to the entry (if applicable)
product_orderintegerThe product order associated with the entry
pricing_group_valuesjsonThe pricing group values that apply to the entry
snapshot_idstringThe ID of the snapshot this row was transferred during
metadatajsonMetadata
credit_type_idstringThe credit type ID associated with the rate card
credit_type_namestringThe name of the credit type associated with the rate card
billing_frequencystringThe billing frequency associated with the entry. For subscriptions only.
starting_attimestampThe timestamp (UTC) the rate card entry starts at (inclusive)
ending_beforetimestampThe timestamp (UTC) the rate card entry ends at (exclusive)
updated_attimestampThe timestamp (UTC) this row was last updated

contracts_product_list_item_versions

ColumnTypeDescription
idstringThe Metronome product list item version ID
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
snapshot_idstringThe ID of the snapshot this row was transferred during
product_list_item_idstringThe product list item ID associated with the row
typestringThe type of the product list item version
versionintegerThe version of the product list item
namestringThe name of the product list item version
is_refundablebooleanWhether or not the product list item version is refundable
billable_metric_idstringThe billable metric ID associated with the product list item version
composite_product_idsjsonThe list of composite product IDs associated with the row
tagsjsonThe list of tags associated with the row
composite_tagsjsonThe list of composite tags associated with the row
quantity_conversionjsonThe quantity conversion for the row
quantity_roundingjsonThe quantity rounding for the row
pricing_group_keyjsonThe pricing group key for the row
presentation_group_keyjsonThe presentation group key for the row
metadatajsonMetadata
starting_attimestampThe timestamp (UTC) the version is active starting at (inclusive)
created_attimestampThe timestamp (UTC) this row was created at
created_bystringThe entity this row was created by
updated_attimestampThe timestamp (UTC) this row was last updated

Alerts

Includes alerts and the history of customer alerts triggered.

alert

ColumnTypeDescription
idstringThe ID of the alert
namestringThe name of the alert
alert_typestringThe type of alert
thresholddecimalThe threshold to trigger the alert
webhooks_enabledbooleanIndicates if the alert is configured for webhooks
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
created_attimestampThe timestamp (UTC) of when the alert was created
disabled_attimestampThe timestamp (UTC) of when the alert was disabled
updated_attimestampThe timestamp (UTC) of when the alert was last updated
archived_attimestampThe timestamp (UTC) of when the alert was archived
group_valuesjsonThe group value filters associated with the alert

customer_alert_history

ColumnTypeDescription
idstringThe Metronome ID of the customer alert history
environment_typestringThe Metronome environment, SANDBOX or PRODUCTION
customer_idstringThe name of the customer associated with the alert history
alert_idstringThe alert ID associated with the row
alert_statusstringThe alert status associated with the row
additional_datajsonAdditional data about the alert
created_attimestampTimestamp (UTC) when the alert was evaluated and the status changed

Metadata

Many tables in the data export include a metadata column. Clients using Metronome have a variety of external systems and require different metadata to be stored. This metadata is client-specific and is stored as a JSON object in the metadata column of the table.
I