Skip to content

Commit 64c8a51

Browse files
committed
Add collection and schema
1 parent 1da0cb5 commit 64c8a51

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

collections/event_logs_schema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"x-cs-indexable-fields": [
4+
{ "field": "/event_id", "type": "string", "fql_name": "event_id" },
5+
{ "field": "/timestamp", "type": "integer", "fql_name": "timestamp" }
6+
],
7+
"type": "object",
8+
"properties": {
9+
"event_id": {
10+
"type": "string",
11+
"description": "Unique identifier for the event (used as the object key)"
12+
},
13+
"data": {
14+
"type": "object",
15+
"description": "Event data payload from the request"
16+
},
17+
"timestamp": {
18+
"type": "integer",
19+
"description": "Unix timestamp when the event was recorded"
20+
}
21+
},
22+
"required": [
23+
"event_id",
24+
"data",
25+
"timestamp"
26+
]
27+
}

manifest.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ ui:
1919
navigation: {}
2020
api_integrations: []
2121
rtr_scripts: []
22-
collections: []
22+
collections:
23+
- name: event_logs
24+
description: Event Logs
25+
schema: collections/event_logs_schema.json
26+
permissions: []
27+
workflow_integration:
28+
system_action: false
29+
tags:
30+
- Functions
2331
auth:
2432
scopes:
2533
- devices:read
@@ -171,8 +179,8 @@ functions:
171179
disruptive: false
172180
system_action: false
173181
tags:
174-
- 5af6e037cd7649a1baa7f8b222259f72
175-
- Multiple
182+
- 5af6e037cd7649a1baa7f8b222259f72
183+
- Multiple
176184
permissions: []
177185
language: python
178186
- id: 86c21f8136204c30bcffccfab707d939
@@ -194,8 +202,8 @@ functions:
194202
disruptive: false
195203
system_action: false
196204
tags:
197-
- 5af6e037cd7649a1baa7f8b222259f72
198-
- Multiple
205+
- 5af6e037cd7649a1baa7f8b222259f72
206+
- Multiple
199207
permissions: []
200208
language: python
201209
workflows: []

0 commit comments

Comments
 (0)