Skip to main content

Corrections from complete sources

When a source returns a complete file or report for a period, a run can replace the records that were loaded for that period. If the replacement has no billable records, the Charge job clears the period. Other records stay.

You check the result under Data, a section that appears only when Production Data is turned on for your organization.

Daily files​

Add completeSources to the coverage of the Extract job, here with one file for each UTC day:

coverage:
requested:
start: ${{ inputs.period_start }}
end: ${{ inputs.period_end }}
timezone: UTC
completeSources:
- request: daily_usage
kind: daily-file
timeField: occurred_at
day: ${{ matrix.day }}
  • The request is an HTTP GET, or an exact S3 or Azure Blob file request, without pagination or polling. Its matrix requests every day from period_start up to, but not including, period_end.
  • The file path holds exactly one date as YYYY-MM-DD, equal to day. The extension is .csv, .json, .ndjson, or .parquet.
  • An empty day is a CSV header without records, an empty JSON array, an empty NDJSON body, or an empty Parquet file. One missing or partial file means that the period is not replaced.
  • The Load job maps timeField directly to a DATE or TIMESTAMPTZ column. A record outside the period makes the Load job fail.

Selected resources​

To replace only named resources, add three fields:

resourceField: subscription_id
resources: ${{ inputs.subscription_ids }}
resource: ${{ matrix.subscription_id }}
  • resources is the complete list of names. resource is the name for one response, and a complete segment of the file path.
  • The Load job maps resourceField directly to a text column.
  • A Charge job clears a period only when every source covers all resources and the complete billing window.

Azure Cost Details reports​

Use kind: azure-cost-manifest for an uncompressed CSV Cost Details report from the public Azure management endpoint. Set request to the request that downloads each blob, manifestRequest to the request for the completed operation results, requestScope to the ARM scope, and timeField to the date field. Leave out day.

  • Both boundaries must be midnight in UTC. The end date of Azure is inclusive: for 1 October, set start and end to 2026-10-01.
  • Every listed blob must be downloaded completely.

Run and verify a correction​

  1. Set up the complete source and the Load job mappings in the draft, and publish the workflow.
  2. Start a run with the period and the resources to correct.
  3. Check the extraction batch in Source data and the results of later jobs.

The Extract, Load, and Transform jobs must all finish in that run. Database queries and paginated APIs do not support this. For the separate Correct data action, see Production data.