Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stackdriver Dashboards API create JSON payload example
{
"displayName": "Data Processing Dashboard",
"gridLayout": {
"columns": "2",
"widgets": [
{
"title": "Dataflow (traffic)",
"xyChart": {
"dataSets": [
{
"timeSeriesQuery": {
"timeSeriesFilter": {
"filter": "metric.type=\"dataflow.googleapis.com/job/elements_produced_count\" resource.type=\"dataflow_job\"",
"aggregation": {
"perSeriesAligner": "ALIGN_RATE",
"crossSeriesReducer": "REDUCE_SUM",
"groupByFields": [
"resource.label.\"job_name\""
]
}
},
"unitOverride": "1"
},
"plotType": "LINE",
"minAlignmentPeriod": "60s"
}
],
"timeshiftDuration": "0s",
"yAxis": {
"label": "y1Axis",
"scale": "LINEAR"
},
"chartOptions": {
"mode": "COLOR"
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.