Skip to content

Commit 46747f5

Browse files
authored
Merge pull request #34 from squaredup/ninjaone
NinjaOne LCP
2 parents f6c8a9c + b39f990 commit 46747f5

72 files changed

Lines changed: 9531 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

plugins/NinjaOne/v1/cspell.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"words": ["ninjarmm", "ninjaone", "bitlocker", "antivirus", "vulnerability", "vulnerabilities", "quarantined", "quarantinedthreatscount", "loggedin", "submask"]
3+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"name": "Organization",
4+
"sourceType": "Organization",
5+
"icon": "building",
6+
"singular": "Organization",
7+
"plural": "Organizations"
8+
},
9+
{
10+
"name": "Device",
11+
"sourceType": "Device",
12+
"icon": "desktop",
13+
"singular": "Device",
14+
"plural": "Devices"
15+
},
16+
{
17+
"name": "Location",
18+
"sourceType": "Location",
19+
"icon": "map-marker-alt",
20+
"singular": "Location",
21+
"plural": "Locations"
22+
},
23+
{
24+
"name": "Ticket Board",
25+
"sourceType": "Ticket Board",
26+
"icon": "kanban",
27+
"singular": "Ticket Board",
28+
"plural": "Ticket Boards"
29+
}
30+
]
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"name": "activities",
3+
"displayName": "Activities",
4+
"tags": ["Monitoring"],
5+
"baseDataSourceName": "httpRequestUnscoped",
6+
"config": {
7+
"httpMethod": "get",
8+
"paging": {
9+
"mode": "none"
10+
},
11+
"expandInnerObjects": true,
12+
"endpointPath": "/v2/activities",
13+
"pathToData": "activities",
14+
"getArgs": [
15+
{
16+
"key": "after",
17+
"value": "{{timeframe.start}}"
18+
},
19+
{
20+
"key": "before",
21+
"value": "{{timeframe.end}}"
22+
},
23+
{
24+
"key": "pageSize",
25+
"value": "1000"
26+
}
27+
],
28+
"headers": []
29+
},
30+
"metadata": [
31+
{
32+
"name": "activityTime",
33+
"displayName": "Activity Time",
34+
"shape": [
35+
"date",
36+
{
37+
"timeZone": "Etc/UTC"
38+
}
39+
]
40+
},
41+
{
42+
"name": "subject",
43+
"displayName": "Activity",
44+
"shape": "string",
45+
"role": "label"
46+
},
47+
{
48+
"name": "id",
49+
"displayName": "Activity ID",
50+
"shape": "number",
51+
"role": "id",
52+
"visible": false
53+
},
54+
{
55+
"name": "message",
56+
"displayName": "Message",
57+
"shape": "string"
58+
},
59+
{
60+
"name": "activityType",
61+
"displayName": "Activity Type",
62+
"shape": "string"
63+
},
64+
{
65+
"name": "type",
66+
"displayName": "Type Description",
67+
"shape": "string"
68+
},
69+
{
70+
"name": "sourceName",
71+
"displayName": "Source",
72+
"shape": "string"
73+
},
74+
{
75+
"name": "activityResult",
76+
"displayName": "Result",
77+
"shape": "string"
78+
},
79+
{
80+
"name": "severity",
81+
"displayName": "Severity",
82+
"shape": "string"
83+
},
84+
{
85+
"name": "deviceId",
86+
"displayName": "Device ID",
87+
"shape": "number",
88+
"visible": false
89+
},
90+
{
91+
"name": "userId",
92+
"displayName": "User ID",
93+
"shape": "number",
94+
"visible": false
95+
},
96+
{
97+
"pattern": ".*"
98+
}
99+
],
100+
"timeframes": [
101+
"last1hour",
102+
"last12hours",
103+
"last24hours",
104+
"last7days",
105+
"last30days",
106+
"thisMonth",
107+
"thisQuarter",
108+
"thisYear",
109+
"lastMonth",
110+
"lastQuarter",
111+
"lastYear",
112+
"none"
113+
]
114+
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"name": "alerts",
3+
"displayName": "Alerts",
4+
"tags": ["Monitoring"],
5+
"description": "Active alerts and triggered conditions",
6+
"baseDataSourceName": "httpRequestUnscoped",
7+
"config": {
8+
"httpMethod": "get",
9+
"paging": {
10+
"mode": "none"
11+
},
12+
"expandInnerObjects": true,
13+
"endpointPath": "/v2/alerts",
14+
"pathToData": "",
15+
"getArgs": [],
16+
"headers": []
17+
},
18+
"metadata": [
19+
{
20+
"name": "conditionHealthStatus",
21+
"displayName": "Health Status",
22+
"shape": [
23+
"state",
24+
{
25+
"map": {
26+
"error": ["UNHEALTHY"],
27+
"warning": ["NEEDS_ATTENTION"],
28+
"success": ["HEALTHY"],
29+
"unknown": ["UNKNOWN"]
30+
}
31+
}
32+
]
33+
},
34+
{
35+
"name": "uid",
36+
"displayName": "Alert ID",
37+
"shape": "string",
38+
"role": "id",
39+
"visible": false
40+
},
41+
{
42+
"name": "sourceName",
43+
"displayName": "Alert Name",
44+
"shape": "string",
45+
"role": "label"
46+
},
47+
{
48+
"name": "message",
49+
"displayName": "Message",
50+
"shape": "string"
51+
},
52+
{
53+
"name": "subject",
54+
"displayName": "Subject",
55+
"shape": "string"
56+
},
57+
{
58+
"name": "severity",
59+
"displayName": "Severity",
60+
"shape": "string"
61+
},
62+
{
63+
"name": "sourceType",
64+
"displayName": "Source Type",
65+
"shape": "string"
66+
},
67+
{
68+
"name": "createTime",
69+
"displayName": "Created At",
70+
"shape": [
71+
"date",
72+
{
73+
"timeZone": "Etc/UTC"
74+
}
75+
]
76+
},
77+
{
78+
"name": "updateTime",
79+
"displayName": "Updated At",
80+
"shape": [
81+
"date",
82+
{
83+
"timeZone": "Etc/UTC"
84+
}
85+
]
86+
},
87+
{
88+
"name": "device_id",
89+
"displayName": "Device ID",
90+
"shape": "string",
91+
"visible": false
92+
},
93+
{
94+
"name": "device_displayName",
95+
"displayName": "Device",
96+
"shape": "string"
97+
},
98+
{
99+
"name": "device_organizationId",
100+
"displayName": "Organization ID",
101+
"shape": "string",
102+
"visible": false
103+
},
104+
{
105+
"name": "device_references_organization_name",
106+
"displayName": "Organization",
107+
"shape": "string"
108+
},
109+
{
110+
"name": "device_locationId",
111+
"displayName": "Location ID",
112+
"shape": "string",
113+
"visible": false
114+
},
115+
{
116+
"name": "device_references_location_name",
117+
"displayName": "Location",
118+
"shape": "string"
119+
},
120+
{
121+
"name": "device_offline",
122+
"displayName": "Device Offline",
123+
"shape": "boolean"
124+
},
125+
{
126+
"pattern": ".*"
127+
}
128+
],
129+
"timeframes": false
130+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"name": "antivirusStatus",
3+
"displayName": "Antivirus Status",
4+
"tags": ["Security"],
5+
"description": "Antivirus product status and definition updates",
6+
"baseDataSourceName": "httpRequestUnscoped",
7+
"config": {
8+
"httpMethod": "get",
9+
"paging": {
10+
"mode": "token",
11+
"pageSize": {
12+
"realm": "queryArg",
13+
"path": "pageSize",
14+
"value": "1000"
15+
},
16+
"in": {
17+
"realm": "payload",
18+
"path": "cursor.name"
19+
},
20+
"out": {
21+
"realm": "queryArg",
22+
"path": "cursor"
23+
}
24+
},
25+
"expandInnerObjects": false,
26+
"endpointPath": "/v2/queries/antivirus-status",
27+
"pathToData": "results",
28+
"getArgs": [
29+
{
30+
"key": "ts",
31+
"value": "{{timeframe.end}}"
32+
}
33+
],
34+
"headers": []
35+
},
36+
"metadata": [
37+
{
38+
"name": "productState",
39+
"displayName": "Product State",
40+
"shape": [
41+
"state",
42+
{
43+
"map": {
44+
"error": ["disabled", "off"],
45+
"warning": ["partial"],
46+
"success": ["enabled", "on"],
47+
"unknown": []
48+
}
49+
}
50+
]
51+
},
52+
{
53+
"name": "productName",
54+
"displayName": "Product Name",
55+
"shape": "string",
56+
"role": "label"
57+
},
58+
{
59+
"name": "definitionStatus",
60+
"displayName": "Definition Status",
61+
"shape": "string"
62+
},
63+
{
64+
"name": "version",
65+
"displayName": "Version",
66+
"shape": "string"
67+
},
68+
{
69+
"name": "deviceId",
70+
"displayName": "Device ID",
71+
"shape": "string",
72+
"role": "id",
73+
"visible": false
74+
},
75+
{
76+
"name": "timestamp",
77+
"displayName": "Last Updated",
78+
"shape": [
79+
"date",
80+
{
81+
"timeZone": "Etc/UTC"
82+
}
83+
]
84+
},
85+
{
86+
"pattern": ".*"
87+
}
88+
],
89+
"timeframes": [
90+
"last1hour",
91+
"last12hours",
92+
"last24hours",
93+
"last7days",
94+
"last30days",
95+
"thisMonth",
96+
"thisQuarter",
97+
"thisYear",
98+
"lastMonth",
99+
"lastQuarter",
100+
"lastYear",
101+
"none"
102+
]
103+
}

0 commit comments

Comments
 (0)