Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/NinjaOne/v1/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"words": ["ninjarmm", "ninjaone", "bitlocker", "antivirus", "vulnerability", "vulnerabilities", "quarantined", "quarantinedthreatscount", "loggedin", "submask"]
}
23 changes: 23 additions & 0 deletions plugins/NinjaOne/v1/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"name": "NinjaOne Organization",
"sourceType": "NinjaOne",
"icon": "building",
"singular": "Organization",
"plural": "Organizations"
},
{
"name": "NinjaOne Device",
"sourceType": "NinjaOne",
"icon": "desktop",
"singular": "Device",
"plural": "Devices"
},
{
"name": "NinjaOne Ticket Board",
"sourceType": "NinjaOne",
"icon": "kanban",
"singular": "Ticket Board",
"plural": "Ticket Boards"
}
]
30 changes: 30 additions & 0 deletions plugins/NinjaOne/v1/dataStreams/activities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "activities",
"displayName": "Activities",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"paging": {
"mode": "none"
},
"expandInnerObjects": false,
"endpointPath": "/v2/activities",
"pathToData": "activities",
"getArgs": [],
"headers": []
},
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear",
"none"
]
}
30 changes: 30 additions & 0 deletions plugins/NinjaOne/v1/dataStreams/alerts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "alerts",
"displayName": "Alerts",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"paging": {
"mode": "none"
},
"expandInnerObjects": false,
"endpointPath": "/v2/alerts",
"pathToData": "",
"getArgs": [],
"headers": []
},
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear",
"none"
]
}
84 changes: 84 additions & 0 deletions plugins/NinjaOne/v1/dataStreams/antivirusStatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"name": "antivirusStatus",
"displayName": "Antivirus Status",
"description": "Antivirus product status and definition updates",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"paging": {
"mode": "none"
},
"expandInnerObjects": false,
"endpointPath": "/v2/queries/antivirus-status",
"pathToData": "results",
"getArgs": [],
"headers": []
},
"metadata": [
{
"name": "productState",
"displayName": "Product State",
"shape": [
"state",
{
"map": {
"error": ["disabled", "off"],
"warning": ["partial"],
"success": ["enabled", "on"],
"unknown": []
}
}
]
},
{
"name": "productName",
"displayName": "Product Name",
"shape": "string",
"role": "label"
},
{
"name": "definitionStatus",
"displayName": "Definition Status",
"shape": "string"
},
{
"name": "version",
"displayName": "Version",
"shape": "string"
},
{
"name": "deviceId",
"displayName": "Device ID",
"shape": "string",
"role": "id",
"visible": false
},
{
"name": "timestamp",
"displayName": "Last Updated",
"shape": [
"date",
{
"timeZone": "Etc/UTC"
}
]
},
{
"pattern": ".*"
}
],
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear",
"none"
]
}
100 changes: 100 additions & 0 deletions plugins/NinjaOne/v1/dataStreams/antivirusThreats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"name": "antivirusThreats",
"displayName": "Antivirus Threats",
"description": "Detected antivirus threats with quarantine status",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"paging": {
"mode": "none"
},
"expandInnerObjects": false,
"endpointPath": "/v2/queries/antivirus-threats",
"pathToData": "results",
"getArgs": [],
"headers": []
},
"metadata": [
{
"name": "status",
"displayName": "Status",
"shape": [
"state",
{
"map": {
"error": ["active", "detected"],
"warning": ["quarantined", "remediation_failed"],
"success": ["removed", "cleaned"],
"unknown": []
}
}
]
},
{
"name": "name",
"displayName": "Threat Name",
"shape": "string",
"role": "label"
},
{
"name": "id",
"displayName": "ID",
"shape": "string",
"role": "id",
"visible": false
},
{
"name": "deviceId",
"displayName": "Device ID",
"shape": "string",
"visible": false
},
{
"name": "severity",
"displayName": "Severity",
"shape": "string"
},
{
"name": "category",
"displayName": "Category",
"shape": "string"
},
{
"name": "path",
"displayName": "File Path",
"shape": "string"
},
{
"name": "detectedAt",
"displayName": "Detected At",
"shape": [
"date",
{
"timeZone": "Etc/UTC"
}
]
},
{
"name": "actionTaken",
"displayName": "Action Taken",
"shape": "string"
},
{
"pattern": ".*"
}
],
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear",
"none"
]
}
99 changes: 99 additions & 0 deletions plugins/NinjaOne/v1/dataStreams/backupUsage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"name": "backupUsage",
"displayName": "Backup Usage",
"description": "Backup storage usage by organization and location",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"paging": {
"mode": "none"
},
"expandInnerObjects": false,
"endpointPath": "/v2/queries/backup/usage",
"pathToData": "results",
"getArgs": [],
"headers": []
},
"metadata": [
{
"name": "organizationId",
"displayName": "Organization ID",
"shape": "string",
"role": "id",
"visible": false
},
{
"name": "organizationName",
"displayName": "Organization",
"shape": "string",
"role": "label"
},
{
"name": "locationId",
"displayName": "Location ID",
"shape": "string"
},
{
"name": "locationName",
"displayName": "Location",
"shape": "string"
},
{
"name": "usedBytes",
"displayName": "Used (Bytes)",
"shape": [
"number",
{
"decimalPlaces": 0
}
]
},
{
"name": "includedBytes",
"displayName": "Included (Bytes)",
"shape": [
"number",
{
"decimalPlaces": 0
}
]
},
{
"name": "overageBytes",
"displayName": "Overage (Bytes)",
"shape": [
"number",
{
"decimalPlaces": 0
}
]
},
{
"name": "deviceCount",
"displayName": "Device Count",
"shape": [
"number",
{
"decimalPlaces": 0
}
]
},
{
"pattern": ".*"
}
],
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear",
"none"
]
}
Loading