{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-rule-execution-filter-schema.json",
  "title": "RuleExecutionFilter",
  "description": "This has the query to list the RuleExecution",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-anomalies-ignorelist-rule-api-openapi.yml#/components/schemas/RuleExecutionFilter",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "accountId"
    },
    "targetAccount": {
      "type": "array",
      "description": "Account Name",
      "items": {
        "type": "string",
        "description": "Account Name"
      }
    },
    "executionStatus": {
      "type": "string",
      "description": "Execution Status",
      "enum": [
        "FAILED",
        "ENQUEUED",
        "PARTIAL_SUCCESS",
        "SUCCESS"
      ]
    },
    "region": {
      "type": "array",
      "description": "region",
      "items": {
        "type": "string",
        "description": "region"
      }
    },
    "cloudProvider": {
      "type": "string",
      "description": "cloudProvider",
      "enum": [
        "AWS",
        "AZURE",
        "GCP"
      ]
    },
    "cloudProviders": {
      "type": "array",
      "description": "cloudProviders",
      "items": {
        "type": "string",
        "description": "cloudProviders",
        "enum": [
          "AWS",
          "AZURE",
          "GCP"
        ]
      }
    },
    "ruleIds": {
      "type": "array",
      "description": "ruleId",
      "items": {
        "type": "string",
        "description": "ruleId"
      }
    },
    "ruleSetIds": {
      "type": "array",
      "description": "rulePackId",
      "items": {
        "type": "string",
        "description": "rulePackId"
      }
    },
    "executionIds": {
      "type": "array",
      "description": "executionIds",
      "items": {
        "type": "string",
        "description": "executionIds"
      }
    },
    "ruleEnforcementId": {
      "type": "array",
      "description": "ruleEnforcementId",
      "items": {
        "type": "string",
        "description": "ruleEnforcementId"
      }
    },
    "ruleEnforcementRecommendationId": {
      "type": "array",
      "description": "ruleEnforcementRecommendationId",
      "items": {
        "type": "string",
        "description": "ruleEnforcementRecommendationId"
      }
    },
    "time": {
      "type": "array",
      "description": "Time",
      "items": {
        "$ref": "#/$defs/CCMTimeFilter"
      }
    },
    "limit": {
      "type": "integer",
      "description": "limit",
      "format": "int32"
    },
    "offset": {
      "type": "integer",
      "description": "offset",
      "format": "int32"
    },
    "savings": {
      "type": "number",
      "description": "savings",
      "format": "double"
    },
    "ruleExecutionSortType": {
      "type": "string",
      "description": "ruleExecutionSortType",
      "enum": [
        "COST",
        "LAST_UPDATED_AT",
        "RESOURCE_COUNT"
      ]
    },
    "sortOrder": {
      "type": "string",
      "description": "sortOrder",
      "enum": [
        "ASCENDING",
        "DESCENDING"
      ]
    },
    "resourceCountGreaterThanZero": {
      "type": "boolean",
      "description": "resourceCountGreaterThanZero"
    },
    "costType": {
      "type": "string",
      "description": "costType",
      "enum": [
        "POTENTIAL",
        "REALIZED"
      ]
    },
    "isDryRun": {
      "type": "boolean",
      "description": "isDryRun"
    },
    "ccmTagDTOS": {
      "type": "array",
      "description": "tags",
      "items": {
        "$ref": "#/$defs/CCMTagDTO"
      }
    },
    "ccmCostCategoryCostBucketsDTOS": {
      "type": "array",
      "description": "costCategoryDTOs",
      "items": {
        "$ref": "#/$defs/CCMCostCategoryCostBucketsDTO"
      }
    }
  },
  "$defs": {
    "CCMCostCategoryCostBucketsDTO": {
      "type": "object",
      "properties": {
        "costCategory": {
          "type": "string"
        },
        "costBucket": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "This object will contain cost category and it's bucket value"
    },
    "CCMTagDTO": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "description": "This object will contain tag key and value"
    },
    "CCMTimeFilter": {
      "type": "object",
      "properties": {
        "operator": {
          "type": "string",
          "description": "List of all possible Operators",
          "enum": [
            "NOT_IN",
            "IN",
            "EQUALS",
            "NOT_NULL",
            "NULL",
            "LIKE",
            "GREATER_THAN",
            "LESS_THAN",
            "GREATER_THAN_EQUALS_TO",
            "LESS_THAN_EQUALS_TO",
            "AFTER",
            "BEFORE"
          ]
        },
        "timestamp": {
          "type": "integer",
          "format": "int64"
        }
      },
      "description": "Time"
    }
  }
}