NSX-T Data Center REST API

SourceFieldEvaluation (type)

{
  "additionalProperties": false, 
  "description": "Source Field Evaluation represents an evaluation on resource fields. A source field evaluation will be evaluated against an Event Source which is of type Resource Operation. For instance, the attribute constraint could be related to the necessity that one of the source fields equals one of the specified values.", 
  "extends": {
    "$ref": "Evaluation
  }, 
  "id": "SourceFieldEvaluation", 
  "module_id": "PolicyReaction", 
  "polymorphic-type-descriptor": {
    "type-identifier": "SourceFieldEvaluation"
  }, 
  "properties": {
    "expected": {
      "description": "Expected values necessary to apply the specified operation on the source field value.", 
      "items": {
        "type": "string"
      }, 
      "maxItems": 1, 
      "minItems": 1, 
      "required": true, 
      "title": "Operator Arguments", 
      "type": "array"
    }, 
    "field_pointer": {
      "description": "Field in the form of a pointer, describing the location of the attribute within the source of the event.", 
      "required": true, 
      "title": "Field Pointer", 
      "type": "string"
    }, 
    "operator": {
      "description": "Logical operator.", 
      "enum": [
        "EQ", 
        "NOT_EQ"
      ], 
      "required": true, 
      "title": "Logical Operator", 
      "type": "string"
    }, 
    "resource_type": {
      "description": "Criterion Evaluation resource type.", 
      "enum": [
        "SourceFieldEvaluation"
      ], 
      "required": true, 
      "title": "Resource Type", 
      "type": "string"
    }
  }, 
  "title": "Source Field Evaluation", 
  "type": "object"
}