Skip to main content

Alert Configuration Examples

Here are some example configurations which you can copy, change parameters, and quickly create alert in few clicks.

Example-1 - StarTree Threshold

{
"name": "Sample-alert-name", //change this before you try
"description": "Using StarTree ThirdEye Threshold alert",
"template": {
"name": "startree-threshold"
},
"templateProperties": {
"dataSource": "Sample-datasource", //change this before you try
"dataset": "sample-dateset", //change this before you try
"timeColumn": "time-column-from-pinot-schema", //change this before you try
"timeColumnFormat": "timezone-format-from-pinot-schema", //change this before you try. You can get this info from Pinot schema. Just copy and paste
"aggregationFunction": "sample-metric-name", //change this before you try
"aggregationColumn": "orders",
"monitoringGranularity": "P1D",
"max": "500", //Adjust this and preview to get best results
"min": "100" //Adjust this and preview to get best results
},
"cron": "0 0 0/2 1/1 * ? *"
}

Example-2 - StarTree Holtwinter

{
"name": "Sample-alert-name", //change this before you try
"description": "Uses template startree-holt-winters.",
"template": {
"name": "startree-holt-winters"
},
"templateProperties": {
"dataSource": "Sample-datasource", //change this before you try
"dataset": "sample-dateset", //change this before you try
"timeColumn": "time-column-from-pinot-schema", //change this before you try
"timeColumnFormat": "timezone-format-from-pinot-schema", //change this before you try. You can get this info from Pinot schema. Just copy and paste
"aggregationFunction": "sum",
"aggregationColumn": "sample-metric-name", //change this before you try
"seasonalityPeriod": "P7D", //Adjust this and preview to get best results
"lookback": "P120D", //Adjust this and preview to get best results
"monitoringGranularity": "P1D", //Adjust this and preview to get best results
"sensitivity": "3" //Adjust this and preview to get best results
},
"cron": "0 0 0 1/1 * ? *"
}