{
  aggregations: {
    projects_started_per_month: {
      aggregations: {
        commits: {
          sum: {
            field: numberOfCommits
          }
        },
        cumulative_commits: {
          cumulative_sum: {
            buckets_path: commits
          }
        }
      },
      date_histogram: {
        calendar_interval: month,
        field: startedOn
      }
    }
  },
  query: {
    term: {
      type: {
        value: project
      }
    }
  },
  size: 0
}