rulesets_ScoreRule

APIs.ioEngineeringPlatform
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-rulesets-scorerule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/rulesets_ScoreRule",
  "title": "rulesets_ScoreRule",
  "allOf": [
    {
      "$ref": "#/components/schemas/rulesets_Rule"
    },
    {
      "properties": {
        "action": {
          "enum": [
            "score"
          ]
        },
        "action_parameters": {
          "example": {
            "increment": 3
          },
          "minProperties": 1,
          "properties": {
            "increment": {
              "description": "Increment contains the delta to change the score and can be either positive or negative.",
              "example": 3,
              "title": "Increment",
              "type": "integer"
            }
          }
        },
        "description": {
          "example": "Increment score when the IP address is not 1.1.1.1"
        }
      },
      "title": "Score rule"
    }
  ]
}