-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
348 lines (332 loc) · 11.8 KB
/
openapi.yaml
File metadata and controls
348 lines (332 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
openapi: 3.0.1
info:
title: ControlUp for Desktops Device Management API
description: |
API for querying device performance, health scores, and device information from ControlUp for Desktops.
This API enables Microsoft Security Copilot to answer questions about device performance,
identify devices with poor performance scores, and find devices associated with specific users.
Key concepts:
- dex_score: Performance score stored as 0-10000 (represents 0-10 scale * 1000 multiplier)
Higher values indicate BETTER performance, lower values indicate WORSE performance
- 10000 (10.0) = Perfect performance
- 7000-10000 (7.0-10.0) = Good to excellent performance
- 4000-7000 (4.0-7.0) = Fair performance
- 0-4000 (0-4.0) = Poor performance, needs attention
**Transformation**: Divide by 1000 to convert to UI-friendly 0-10 scale (e.g., 6500 → 6.5)
- Devices with dex_score < 7000 (< 7.0 on 0-10 scale) are considered to have poor performance
- Devices can be filtered by various criteria including performance scores and user associations
version: 1.0.0
contact:
name: ControlUp Support
url: https://support.controlup.com
servers:
- url: https://app.controlup.com/api
description: ControlUp for Desktops API. You'll also need your organization ID (orgId) for some endpoints.
tags:
- name: Devices
description: Device management and performance queries
paths:
/devices:
get:
tags:
- Devices
summary: List devices with optional filtering
description: |
Returns a list of devices managed by ControlUp for Desktops. Supports filtering by various criteria
including performance scores (dex_score), device name, platform, and user associations.
To find devices with poor performance, filter by dex_score < 7000 (which represents < 7.0 on the 0-10 scale).
When presenting results to users, divide dex_score by 1000 to show the 0-10 scale (e.g., 6500 → 6.5).
To find devices by user, use filter_field=console_user or filter_field=last_console_user.
To find devices by name, use filter_field=name with filter_type=contains (for partial match) or filter_type=eq (for exact match).
operationId: listDevices
parameters:
- name: size
in: query
description: Number of rows per page (max 10000)
schema:
type: integer
default: 10000
maximum: 10000
- name: page
in: query
description: Page number (starts at 1)
schema:
type: integer
default: 1
- name: filter_field
in: query
description: Field to filter on. Common values: 'dex_score' (performance score), 'name' (device name), 'console_user' (current user), 'last_console_user' (last user), 'platform' (platform code)
schema:
type: string
example: name
- name: filter_type
in: query
description: Filter comparison type. For device names, use 'contains' (partial match) or 'eq' (exact match). For numeric fields like dex_score, use 'gte', 'lte', 'gt', 'lt', 'eq'.
schema:
type: string
enum: [gte, lte, eq, ne, gt, lt, contains, starts_with, ends_with]
example: contains
- name: filter_value
in: query
description: Value to filter by. For device names, this is the name or partial name to search for.
schema:
type: string
example: DESKTOP-ABC123
- name: _source
in: query
description: Comma-separated list of fields to return
schema:
type: string
example: "_id,name,dex_score,platform,console_user"
responses:
'200':
description: List of devices
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceListResponse'
'401':
description: Unauthorized - Invalid or missing API key
'500':
description: Internal server error
/devices/{deviceId}:
get:
tags:
- Devices
summary: Get device details
description: |
Returns comprehensive information about a specific device including its dex_score,
hardware specifications, OS information, and current status.
operationId: getDeviceById
parameters:
- name: deviceId
in: path
required: true
description: Unique device identifier
schema:
type: string
responses:
'200':
description: Device details
content:
application/json:
schema:
$ref: '#/components/schemas/Device'
'404':
description: Device not found
'401':
description: Unauthorized - Invalid or missing API key
'500':
description: Internal server error
/devices/{deviceId}/snapshot/performance:
get:
tags:
- Devices
summary: Get device performance snapshot
description: |
Returns detailed performance metrics for a device including CPU usage, memory usage,
disk activity, GPU usage, and performance trends over time.
operationId: getDevicePerformance
parameters:
- name: deviceId
in: path
required: true
description: Unique device identifier
schema:
type: string
- name: fromDate
in: query
description: Start date for performance data (ISO 8601 format)
schema:
type: string
format: date-time
- name: toDate
in: query
description: End date for performance data (ISO 8601 format)
schema:
type: string
format: date-time
responses:
'200':
description: Performance metrics
content:
application/json:
schema:
$ref: '#/components/schemas/PerformanceSnapshot'
'404':
description: Device not found
'401':
description: Unauthorized - Invalid or missing API key
'500':
description: Internal server error
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: |
Bearer token authentication using ControlUp API key.
According to ControlUp API documentation (https://api.controlup.io/reference/how-to-make-api-requests-1),
API keys are provided as bearer tokens in the Authorization header.
Format: Authorization: Bearer {your-api-key}
schemas:
Device:
type: object
description: Device information including performance score and status
properties:
_id:
type: string
description: Unique device identifier
example: "lchs9wH4h2EKvgTVv8rd"
name:
type: string
description: Device name
example: "DESKTOP-ABC123"
dex_score:
type: number
description: |
Performance score stored as 0-10000 (represents 0-10 scale * 1000 multiplier).
Higher values indicate BETTER performance, lower values indicate WORSE performance.
**Transformation to 0-10 scale**: Divide by 1000 to get the UI-friendly 0-10 scale.
- 10000 / 1000 = 10.0 = Perfect performance
- 7000-10000 / 1000 = 7.0-10.0 = Good to excellent performance
- 4000-7000 / 1000 = 4.0-7.0 = Fair performance
- 0-4000 / 1000 = 0-4.0 = Poor performance, needs attention
Scores below 7000 (7.0 on 0-10 scale) typically indicate performance issues.
**For Copilot responses**: When presenting to users, divide by 1000 and round to 1 decimal place
for readability (e.g., 6500 → 6.5, 8500 → 8.5).
example: 6500
minimum: 0
maximum: 10000
# Note: Actual API returns 0-10000, but for user-facing responses, divide by 1000 to get 0-10 scale
platform:
type: integer
description: Platform code (1=Windows, 2=macOS, 3=Linux)
example: 1
_platform_name:
type: string
description: Platform name
example: "MSWIN"
agent_version:
type: string
description: ControlUp agent version
example: "2.171.0"
is_online:
type: boolean
description: Whether the device is currently online
example: true
console_user:
type: string
nullable: true
description: Current logged-in user
example: "DOMAIN\\john.doe"
last_console_user:
type: string
nullable: true
description: Last logged-in user
example: "DOMAIN\\john.doe"
_created:
type: string
format: date-time
description: Device registration timestamp
example: "2022-01-03T16:47:53.391Z"
_updated:
type: string
format: date-time
description: Last update timestamp
example: "2024-12-15T10:30:00.000Z"
os_name:
type: string
nullable: true
description: Operating system name
example: "Windows 11"
os_version_string:
type: string
nullable: true
description: OS version
example: "10.0.22621"
hw_manufacturer:
type: string
nullable: true
description: Hardware manufacturer
example: "Dell Inc."
hw_model:
type: string
nullable: true
description: Hardware model
example: "Latitude 5420"
group:
type: string
nullable: true
description: Device group assignment
example: "Sales Team"
DeviceListResponse:
type: object
description: Response containing a list of devices
properties:
rows:
type: array
description: Array of device objects
items:
$ref: '#/components/schemas/Device'
rows_available:
type: integer
description: Total number of devices matching the query
example: 150
page_size:
type: integer
description: Number of devices per page
example: 10000
start_row:
type: integer
description: First row number on current page
example: 1
end_row:
type: integer
description: Last row number on current page
example: 150
PerformanceSnapshot:
type: object
description: Detailed performance metrics for a device
properties:
device_id:
type: string
description: Device identifier
cpu_load:
type: array
description: CPU load percentage over time
items:
type: number
minimum: 0
maximum: 100
memory_available_percentage:
type: array
description: Available memory percentage over time
items:
type: number
minimum: 0
maximum: 100
disk_usage:
type: array
description: Disk usage percentage over time
items:
type: number
minimum: 0
maximum: 100
gpu_usage:
type: array
nullable: true
description: GPU usage percentage over time (if available)
items:
type: number
minimum: 0
maximum: 100
timestamps:
type: array
description: Timestamps corresponding to each metric sample
items:
type: string
format: date-time
security:
- bearerAuth: []