Skip to content

Commit e369277

Browse files
committed
fix data stream naming and timeframes
1 parent eca0154 commit e369277

23 files changed

Lines changed: 67 additions & 61 deletions

plugins/NinjaOne/v1/dataStreams/alerts.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,5 @@
126126
"pattern": ".*"
127127
}
128128
],
129-
"timeframes": [
130-
"none"
131-
]
129+
"timeframes": false
132130
}

plugins/NinjaOne/v1/dataStreams/backupJobs.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
"expandInnerObjects": false,
2626
"endpointPath": "/v2/backup/jobs",
2727
"postRequestScript": "backupJobs.js",
28-
"getArgs": [],
28+
"getArgs": [
29+
{
30+
"key": "stf",
31+
"value": "{{timeframe.start}}"
32+
}
33+
],
2934
"headers": []
3035
},
3136
"metadata": [
@@ -171,6 +176,17 @@
171176
}
172177
],
173178
"timeframes": [
179+
"last1hour",
180+
"last12hours",
181+
"last24hours",
182+
"last7days",
183+
"last30days",
184+
"thisMonth",
185+
"thisQuarter",
186+
"thisYear",
187+
"lastMonth",
188+
"lastQuarter",
189+
"lastYear",
174190
"none"
175191
]
176192
}

plugins/NinjaOne/v1/dataStreams/deviceGroups.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,5 @@
8888
"pattern": ".*"
8989
}
9090
],
91-
"timeframes": [
92-
"none"
93-
]
91+
"timeframes": false
9492
}

plugins/NinjaOne/v1/dataStreams/deviceHealth.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deviceHealth",
3-
"displayName": "Device Health",
3+
"displayName": "Devices (Health)",
44
"tags": ["Monitoring"],
55
"description": "Device health overview including threats, patches, and vulnerabilities",
66
"baseDataSourceName": "httpRequestUnscoped",
@@ -222,7 +222,5 @@
222222
"pattern": ".*"
223223
}
224224
],
225-
"timeframes": [
226-
"none"
227-
]
225+
"timeframes": false
228226
}

plugins/NinjaOne/v1/dataStreams/devices.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,5 @@
176176
"pattern": ".*"
177177
}
178178
],
179-
"timeframes": [
180-
"none"
181-
]
179+
"timeframes": false
182180
}

plugins/NinjaOne/v1/dataStreams/disks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "disks",
3-
"displayName": "Disks",
3+
"displayName": "Devices (Disks)",
44
"tags": ["Monitoring"],
55
"description": "Physical disk inventory with SMART status",
66
"baseDataSourceName": "httpRequestUnscoped",

plugins/NinjaOne/v1/dataStreams/health.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "health",
3-
"displayName": "Health",
3+
"displayName": "Devices (Health Scoped)",
44
"tags": ["Monitoring"],
55
"description": "Device health status",
66
"baseDataSourceName": "httpRequestScoped",
@@ -54,7 +54,5 @@
5454
"pattern": ".*"
5555
}
5656
],
57-
"timeframes": [
58-
"none"
59-
]
57+
"timeframes": false
6058
}

plugins/NinjaOne/v1/dataStreams/jobs.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,5 @@
277277
"pattern": ".*"
278278
}
279279
],
280-
"timeframes": [
281-
"none"
282-
]
280+
"timeframes": false
283281
}

plugins/NinjaOne/v1/dataStreams/locationDevices.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "locationDevices",
3-
"displayName": "Location Devices",
3+
"displayName": "Devices (Location)",
44
"tags": ["Monitoring"],
55
"description": "Devices for a specific location",
66
"baseDataSourceName": "httpRequestScoped",
@@ -68,7 +68,5 @@
6868
"pattern": ".*"
6969
}
7070
],
71-
"timeframes": [
72-
"none"
73-
]
71+
"timeframes": false
7472
}

plugins/NinjaOne/v1/dataStreams/locations.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,5 @@
8282
"pattern": ".*"
8383
}
8484
],
85-
"timeframes": [
86-
"none"
87-
]
85+
"timeframes": false
8886
}

0 commit comments

Comments
 (0)