Skip to content

Summary Types

James Lott edited this page Apr 12, 2017 · 3 revisions

The schema for the API database provides a campaign_summary table which is intended to hold data for a multitude of data analysis types. Each record in this table provides a summary_type field; this field is a symbolic piece of information which allows the consumer to interpret the meaning of the summary_level and the summary_value fields. Each summary_type and the meaning which it provides the summary_level and summary_value fields is documented in this page.

  • donation_histogram: This summary_type organizes campaign contributions into buckets based on the amount of each contribution.
    • summary_level: The upper boundary of the bucket (the lower boundary being either the next lowest summary_level or 0; currently, we don't quite remember whether or not the upper boundary is inclusive)
    • summary_value: The number of donations which are within this bucket

Clone this wiki locally