Skip to content

Commit

Permalink
Merge pull request #982 from rmouritzen-splunk/observables
Browse files Browse the repository at this point in the history
Add new ways to define observables in metaschema
  • Loading branch information
rmouritzen-splunk authored Mar 12, 2024
2 parents 82e13ee + 5f73be3 commit ba1cb34
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Thankyou! -->

### Misc
1. New Extension registration for Sedara. #951
2. Add new ways to define observables to metaschema. #982

<!-- All available sections in the Changelog:
Expand Down
3 changes: 3 additions & 0 deletions metaschema/dictionary-attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
"is_array": {
"type": "boolean",
"description": "A flag used when the attribute represents an array of values rather than a single value."
},
"observable": {
"$ref": "observable.schema.json"
}
},
"additionalProperties": false
Expand Down
10 changes: 10 additions & 0 deletions metaschema/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
"description": "A unique identifier for this event, must be unique within the category.",
"minimum": 0,
"maximum": 999
},
"observables": {
"type": "object",
"description": "Defines class-specific observables by attribute path.",
"patternProperties": {
"^[a-z0-9_]+(\\.[a-z0-9_]+)*$": {
"$ref": "observable.schema.json"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down

0 comments on commit ba1cb34

Please sign in to comment.