Some detectors can be used as postProcessors. A label is added to main detector anomalies if they are not flagged as an anomaly by the postProcessor detector. By default, the postProcessor detector is applied to the metric that was used for the detection. This corresponds to an AND operation of 2 detectors. A different metric can also be provided by passing an input current. The detector will run on this input.
{ "name": "root", "type": "PostProcessor", "params": { "type": "OFFSET_AGGREGATION", "component.ignore": "true", # filter anomaly in notifications an ui by default, "component.valueName": "Business KPI", # customize label "component.offsets": ["P7D", "P14D"], # parameter of the detector ... "component.aggregation": "MEDIAN" # parameter of the detector }, "inputs": [ { "sourcePlanNode": "anomalyDetector" } ]}
With side input
{ "name": "root", "type": "PostProcessor", "params": { "type": "OFFSET_AGGREGATION", "component.ignore": "true", "component.valueName": "GuardRail KPI", # customize label, "component.timestamp": "ts", # time column of the side input "component.metric": "sideMetric" # column in the side input to run detector on "component.offsets": ["P7D", "P14D"], # parameter of the detector ... "component.aggregation": "MEDIAN" # parameter of the detector }, "inputs": [ { "sourcePlanNode": "anomalyDetector" }, { "targetProperty": "current", "sourcePlanNode": "controlDataFetcher", "sourceProperty": "controlDataOutput" } ]}