Recap - the config file so far

Here is an example of how your configuration file should look once you have defined all fields, verses, and notifications.
You can easily download your config file and compare, via the "configurations" page by clicking "Download as JSON".

{
  "21234f0c-asf32-4239-b456-3t4e4345319g": {
    "LOAN_APPLICATION_TUTORIAL": {
      "fields": {
        "occupation": {
          "type": "string",
          "function": "identity",
          "args": []
        },
        "city": {
          "type": "string",
          "function": "concat_strings",
          "args": [
            "_"
          ],
          "sources": [
            {
              "names": [
                "city"
              ],
              "default_value": null
            },
            {
              "names": [
                "state"
              ],
              "default_value": null
            }
          ]
        },
        "state": {
          "type": "string"
        },
        "purpose": {
          "type": "string"
        },
        "credit_score": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 0.02
            }
          }
        },
        "loan_taken": {
          "type": "boolean"
        },
        "return_until": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 1000000
            }
          }
        },
        "offered_amount": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 700
            }
          }
        },
        "approved_amount": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 700
            }
          }
        },
        "feature_0": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 60000
            }
          }
        },
        "feature_1": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 0.4
            }
          }
        },
        "feature_2": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 30
            }
          }
        },
        "feature_3": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 6000
            }
          }
        },
        "feature_4": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 0.01
            }
          }
        },
        "feature_5": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 0.2
            }
          }
        },
        "feature_6": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 20
            }
          }
        },
        "feature_7": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 1
            }
          }
        },
        "feature_8": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 50
            }
          }
        },
        "feature_9": {
          "type": "numeric",
          "segmentations": {
            "original": {
              "default": true,
              "bucket_size": 20
            }
          }
        },
        "stage": {
          "type": "string"
        },
        "model_version": {
          "type": "string"
        },
        "loan_paid_back": {
          "type": "boolean"
        },
        "credit_label_delta": {
          "type": "numeric",
          "function": "delta",
          "args": [
            null
          ],
          "sources": [
            {
              "names": [
                "loan_paid_back"
              ]
            },
            {
              "names": [
                "risk_score"
              ]
            }
          ],
          "segmentations": {
            "gvrew": {
              "discrete": true,
              "default": true
            }
          }
        },
        "credit_lable_delta_abs": {
          "type": "numeric",
          "function": "abs_value",
          "args": [],
          "sources": [
            {
              "names": [
                "credit_label_delta"
              ]
            }
          ],
          "segmentations": {
            "vewve": {
              "discrete": true,
              "default": true
            }
          }
        },
        "offered_approved_delta": {
          "type": "numeric",
          "function": "delta",
          "args": [
            null
          ],
          "sources": [
            {
              "names": [
                "offered_amount"
              ]
            },
            {
              "names": [
                "approved_amount"
              ]
            }
          ],
          "segmentations": {
            "verwvwev": {
              "discrete": true,
              "default": true
            }
          }
        },
        "offered_approved_delta_normalized": {
          "type": "numeric",
          "function": "divide",
          "args": [],
          "sources": [
            {
              "names": [
                "offered_approved_delta"
              ]
            },
            {
              "names": [
                "offered_amount"
              ]
            }
          ],
          "segmentations": {
            "vewvw": {
              "discrete": true,
              "default": true
            }
          }
        }
      },
      "stanzas": {
        "general": {
          "description": "",
          "metrics": [
            "credit_score",
            "offered_amount",
            "approved_amount",
            "credit_label_delta",
            "offered_approved_delta_normalized"
          ],
          "segment_by": [
            "occupation",
            "purpose",
            "stage",
            "model_version",
            "city"
          ],
          "baseline_segment": {
            "stage": [
              {
                "value": "inference"
              }
            ]
          },
          "min_segment_size_fraction": 0.005,
          "verses": [
            {
              "type": "AverageDrift",
              "name": "general_AverageDrift",
              "target_set_period": "2w",
              "benchmark_set_period": "6w",
              "min_anomaly_level": 0.2
            },
            {
              "type": "AverageOutlier",
              "name": "general_AverageOutlier",
              "min_anomaly_level": 0.3,
              "time_resolution": "1w"
            },
            {
              "type": "AverageSuddenChange",
              "name": "general_AverageSuddenChange",
              "min_anomaly_level": 2,
              "min_culprit_size": 5,
              "time_series_points": 30
            },
            {
              "type": "SegmentSizeDrift",
              "name": "general_SegmentSizeDrift",
              "trend_directions": [
                "desc"
              ],
              "time_resolution": ""
            }
          ]
        }
      },
      "notifications": {
        "general": {
          "emails": [
            "[email protected]"
          ],
          "slack_webhooks": [],
          "teams_webhooks": [],
          "pagerduty_emails": [],
          "contains": "score"
        }
      }
    }
  }
}

🚧

Since "metrics", "segment_by" and "min_segment_size_fraction" have the same values in all verses in this stanza, you can set them once in the stanza level, and they will apply to all verses in this stanza.