Skip to content

Instantly share code, notes, and snippets.

@dougmet
Created March 7, 2019 11:51
Show Gist options
  • Save dougmet/cdc5352cf0db87baf58d661d3b742919 to your computer and use it in GitHub Desktop.
Save dougmet/cdc5352cf0db87baf58d661d3b742919 to your computer and use it in GitHub Desktop.
Example of reporting json
{
"statuses": [
{
"value": "complete",
"translation_key": "status.reported_online"
},
{
"value": "notstarted",
"translation_key": "status.exploring_data_sources"
}
],
"goals": [
{
"goal": 1,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 8,
"percentage": 57
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 6,
"percentage": 43
}
],
"totals": {
"total": 14
}
},
{
"goal": 2,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 9,
"percentage": 69
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 4,
"percentage": 31
}
],
"totals": {
"total": 13
}
},
{
"goal": 3,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 22,
"percentage": 81
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 5,
"percentage": 19
}
],
"totals": {
"total": 27
}
},
{
"goal": 4,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 10,
"percentage": 91
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 1,
"percentage": 9
}
],
"totals": {
"total": 11
}
},
{
"goal": 5,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 14,
"percentage": 100
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 0,
"percentage": 0
}
],
"totals": {
"total": 14
}
},
{
"goal": 6,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 4,
"percentage": 36
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 7,
"percentage": 64
}
],
"totals": {
"total": 11
}
},
{
"goal": 7,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 6,
"percentage": 100
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 0,
"percentage": 0
}
],
"totals": {
"total": 6
}
},
{
"goal": 8,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 15,
"percentage": 88
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 2,
"percentage": 12
}
],
"totals": {
"total": 17
}
},
{
"goal": 9,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 11,
"percentage": 92
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 1,
"percentage": 8
}
],
"totals": {
"total": 12
}
},
{
"goal": 10,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 7,
"percentage": 64
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 4,
"percentage": 36
}
],
"totals": {
"total": 11
}
},
{
"goal": 11,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 10,
"percentage": 67
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 5,
"percentage": 33
}
],
"totals": {
"total": 15
}
},
{
"goal": 12,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 7,
"percentage": 54
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 6,
"percentage": 46
}
],
"totals": {
"total": 13
}
},
{
"goal": 13,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 7,
"percentage": 88
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 1,
"percentage": 12
}
],
"totals": {
"total": 8
}
},
{
"goal": 14,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 3,
"percentage": 30
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 7,
"percentage": 70
}
],
"totals": {
"total": 10
}
},
{
"goal": 15,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 10,
"percentage": 71
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 4,
"percentage": 29
}
],
"totals": {
"total": 14
}
},
{
"goal": 16,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 15,
"percentage": 65
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 8,
"percentage": 35
}
],
"totals": {
"total": 23
}
},
{
"goal": 17,
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 12,
"percentage": 48
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 13,
"percentage": 52
}
],
"totals": {
"total": 25
}
}
],
"overall": {
"statuses": [
{
"status": "complete",
"translation_key": "status.reported_online",
"count": 170,
"percentage": 70
},
{
"status": "notstarted",
"translation_key": "status.exploring_data_sources",
"count": 74,
"percentage": 30
}
],
"totals": {
"total": 244
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment