netdata-swagger.yaml 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614
  1. openapi: 3.0.0
  2. info:
  3. title: Netdata API
  4. description: Real-time performance and health monitoring.
  5. version: 1.33.1
  6. paths:
  7. /info:
  8. get:
  9. summary: Get netdata basic information
  10. description: |
  11. The info endpoint returns basic information about netdata. It provides:
  12. * netdata version
  13. * netdata unique id
  14. * list of hosts mirrored (includes itself)
  15. * Operating System, Virtualization, K8s nodes and Container technology information
  16. * List of active collector plugins and modules
  17. * Streaming information
  18. * number of alarms in the host
  19. * number of alarms in normal state
  20. * number of alarms in warning state
  21. * number of alarms in critical state
  22. responses:
  23. "200":
  24. description: netdata basic information.
  25. content:
  26. application/json:
  27. schema:
  28. $ref: "#/components/schemas/info"
  29. "503":
  30. description: netdata daemon not ready (used for health checks).
  31. /charts:
  32. get:
  33. summary: Get a list of all charts available at the server
  34. description: The charts endpoint returns a summary about all charts stored in the
  35. netdata server.
  36. responses:
  37. "200":
  38. description: An array of charts.
  39. content:
  40. application/json:
  41. schema:
  42. $ref: "#/components/schemas/chart_summary"
  43. /chart:
  44. get:
  45. summary: Get info about a specific chart
  46. description: The chart endpoint returns detailed information about a chart.
  47. parameters:
  48. - name: chart
  49. in: query
  50. description: The id of the chart as returned by the /charts call.
  51. required: true
  52. schema:
  53. type: string
  54. format: as returned by /charts
  55. default: system.cpu
  56. responses:
  57. "200":
  58. description: A javascript object with detailed information about the chart.
  59. content:
  60. application/json:
  61. schema:
  62. $ref: "#/components/schemas/chart"
  63. "400":
  64. description: No chart id was supplied in the request.
  65. "404":
  66. description: No chart with the given id is found.
  67. /contexts:
  68. get:
  69. summary: Get a list of all contexts available at the server
  70. description: The contexts endpoint returns a summary about all contexts stored in the
  71. netdata server.
  72. parameters:
  73. - name: options
  74. in: query
  75. description: Options that affect data generation.
  76. required: false
  77. allowEmptyValue: true
  78. schema:
  79. type: array
  80. items:
  81. type: string
  82. enum:
  83. - full
  84. - all
  85. - charts
  86. - dimensions
  87. - labels
  88. - uuids
  89. - queue
  90. - flags
  91. - deleted
  92. - deepscan
  93. default:
  94. - full
  95. - name: after
  96. in: query
  97. description: limit the results on context having data after this timestamp.
  98. required: false
  99. schema:
  100. type: number
  101. format: integer
  102. - name: before
  103. in: query
  104. description: limit the results on context having data before this timestamp.
  105. required: false
  106. schema:
  107. type: number
  108. format: integer
  109. - name: chart_label_key
  110. in: query
  111. description: a simple pattern matching charts label keys (use comma or pipe as separator)
  112. required: false
  113. allowEmptyValue: true
  114. schema:
  115. type: string
  116. - name: chart_labels_filter
  117. in: query
  118. description: "a simple pattern matching charts label key and values (use colon for equality, comma or pipe
  119. as separator)"
  120. required: false
  121. allowEmptyValue: true
  122. schema:
  123. type: string
  124. - name: dimensions
  125. in: query
  126. description: a simple pattern matching dimensions (use comma or pipe as separator)
  127. required: false
  128. allowEmptyValue: true
  129. schema:
  130. type: string
  131. responses:
  132. "200":
  133. description: An array of contexts.
  134. content:
  135. application/json:
  136. schema:
  137. $ref: "#/components/schemas/context_summary"
  138. /context:
  139. get:
  140. summary: Get info about a specific context
  141. description: The context endpoint returns detailed information about a given context.
  142. parameters:
  143. - name: context
  144. in: query
  145. description: The id of the context as returned by the /contexts call.
  146. required: true
  147. schema:
  148. type: string
  149. format: as returned by /contexts
  150. default: system.cpu
  151. - name: options
  152. in: query
  153. description: Options that affect data generation.
  154. required: false
  155. allowEmptyValue: true
  156. schema:
  157. type: array
  158. items:
  159. type: string
  160. enum:
  161. - full
  162. - all
  163. - charts
  164. - dimensions
  165. - labels
  166. - uuids
  167. - queue
  168. - flags
  169. - deleted
  170. - deepscan
  171. default:
  172. - full
  173. - name: after
  174. in: query
  175. description: limit the results on context having data after this timestamp.
  176. required: false
  177. schema:
  178. type: number
  179. format: integer
  180. - name: before
  181. in: query
  182. description: limit the results on context having data before this timestamp.
  183. required: false
  184. schema:
  185. type: number
  186. format: integer
  187. - name: chart_label_key
  188. in: query
  189. description: a simple pattern matching charts label keys (use comma or pipe as separator)
  190. required: false
  191. allowEmptyValue: true
  192. schema:
  193. type: string
  194. - name: chart_labels_filter
  195. in: query
  196. description: "a simple pattern matching charts label key and values (use colon for equality, comma or pipe
  197. as separator)"
  198. required: false
  199. allowEmptyValue: true
  200. schema:
  201. type: string
  202. - name: dimensions
  203. in: query
  204. description: a simple pattern matching dimensions (use comma or pipe as separator)
  205. required: false
  206. allowEmptyValue: true
  207. schema:
  208. type: string
  209. responses:
  210. "200":
  211. description: A javascript object with detailed information about the context.
  212. content:
  213. application/json:
  214. schema:
  215. $ref: "#/components/schemas/context"
  216. "400":
  217. description: No context id was supplied in the request.
  218. "404":
  219. description: No context with the given id is found.
  220. /alarm_variables:
  221. get:
  222. summary: List variables available to configure alarms for a chart
  223. description: Returns the basic information of a chart and all the variables that can
  224. be used in alarm and template health configurations for the particular
  225. chart or family.
  226. parameters:
  227. - name: chart
  228. in: query
  229. description: The id of the chart as returned by the /charts call.
  230. required: true
  231. schema:
  232. type: string
  233. format: as returned by /charts
  234. default: system.cpu
  235. responses:
  236. "200":
  237. description: A javascript object with information about the chart and the
  238. available variables.
  239. content:
  240. application/json:
  241. schema:
  242. $ref: "#/components/schemas/alarm_variables"
  243. "400":
  244. description: Bad request - the body will include a message stating what is wrong.
  245. "404":
  246. description: No chart with the given id is found.
  247. "500":
  248. description: Internal server error. This usually means the server is out of
  249. memory.
  250. /data:
  251. get:
  252. summary: Get collected data for a specific chart
  253. description: The data endpoint returns data stored in the round robin database of a
  254. chart.
  255. parameters:
  256. - name: chart
  257. in: query
  258. description: The id of the chart as returned by the /charts call. Note chart or context must be specified
  259. required: false
  260. allowEmptyValue: false
  261. schema:
  262. type: string
  263. format: as returned by /charts
  264. default: system.cpu
  265. - name: context
  266. in: query
  267. description: The context of the chart as returned by the /charts call. Note chart or context must be specified
  268. required: false
  269. allowEmptyValue: false
  270. schema:
  271. type: string
  272. format: as returned by /charts
  273. - name: dimension
  274. in: query
  275. description: Zero, one or more dimension ids or names, as returned by the /chart
  276. call, separated with comma or pipe. Netdata simple patterns are
  277. supported.
  278. required: false
  279. allowEmptyValue: false
  280. schema:
  281. type: array
  282. items:
  283. type: string
  284. format: as returned by /charts
  285. - name: after
  286. in: query
  287. description: "This parameter can either be an absolute timestamp specifying the
  288. starting point of the data to be returned, or a relative number of
  289. seconds (negative, relative to parameter: before). Netdata will
  290. assume it is a relative number if it is less that 3 years (in seconds).
  291. If not specified the default is -600 seconds. Netdata will adapt this
  292. parameter to the boundaries of the round robin database unless the allow_past
  293. option is specified."
  294. required: true
  295. allowEmptyValue: false
  296. schema:
  297. type: number
  298. format: integer
  299. default: -600
  300. - name: before
  301. in: query
  302. description: This parameter can either be an absolute timestamp specifying the
  303. ending point of the data to be returned, or a relative number of
  304. seconds (negative), relative to the last collected timestamp.
  305. Netdata will assume it is a relative number if it is less than 3
  306. years (in seconds). Netdata will adapt this parameter to the
  307. boundaries of the round robin database. The default is zero (i.e.
  308. the timestamp of the last value collected).
  309. required: false
  310. schema:
  311. type: number
  312. format: integer
  313. default: 0
  314. - name: points
  315. in: query
  316. description: The number of points to be returned. If not given, or it is <= 0, or
  317. it is bigger than the points stored in the round robin database for
  318. this chart for the given duration, all the available collected
  319. values for the given duration will be returned.
  320. required: true
  321. allowEmptyValue: false
  322. schema:
  323. type: number
  324. format: integer
  325. default: 20
  326. - name: chart_label_key
  327. in: query
  328. description: Specify the chart label keys that need to match for context queries as comma separated values.
  329. At least one matching key is needed to match the corresponding chart.
  330. required: false
  331. allowEmptyValue: false
  332. schema:
  333. type: string
  334. format: key1,key2,key3
  335. - name: chart_labels_filter
  336. in: query
  337. description: Specify the chart label keys and values to match for context queries. All keys/values need to
  338. match for the chart to be included in the query. The labels are specified as key1:value1,key2:value2
  339. required: false
  340. allowEmptyValue: false
  341. schema:
  342. type: string
  343. format: key1:value1,key2:value2,key3:value3
  344. - name: group
  345. in: query
  346. description: The grouping method. If multiple collected values are to be grouped
  347. in order to return fewer points, this parameters defines the method
  348. of grouping. methods supported "min", "max", "average", "sum",
  349. "incremental-sum". "max" is actually calculated on the absolute
  350. value collected (so it works for both positive and negative
  351. dimensions to return the most extreme value in either direction).
  352. required: true
  353. allowEmptyValue: false
  354. schema:
  355. type: string
  356. enum:
  357. - min
  358. - max
  359. - average
  360. - median
  361. - stddev
  362. - sum
  363. - incremental-sum
  364. - ses
  365. - des
  366. - cv
  367. - countif
  368. - percentile
  369. - percentile25
  370. - percentile50
  371. - percentile75
  372. - percentile80
  373. - percentile90
  374. - percentile95
  375. - percentile97
  376. - percentile98
  377. - percentile99
  378. - trimmed-mean
  379. - trimmed-mean1
  380. - trimmed-mean2
  381. - trimmed-mean3
  382. - trimmed-mean5
  383. - trimmed-mean10
  384. - trimmed-mean15
  385. - trimmed-mean20
  386. - trimmed-mean25
  387. - trimmed-median
  388. - trimmed-median1
  389. - trimmed-median2
  390. - trimmed-median3
  391. - trimmed-median5
  392. - trimmed-median10
  393. - trimmed-median15
  394. - trimmed-median20
  395. - trimmed-median25
  396. default: average
  397. - name: group_options
  398. in: query
  399. description: When the group function supports additional parameters, this field
  400. can be used to pass them to it. Currently only "countif" supports this.
  401. required: false
  402. allowEmptyValue: false
  403. schema:
  404. type: string
  405. - name: gtime
  406. in: query
  407. description: The grouping number of seconds. This is used in conjunction with
  408. group=average to change the units of metrics (ie when the data is
  409. per-second, setting gtime=60 will turn them to per-minute).
  410. required: false
  411. allowEmptyValue: false
  412. schema:
  413. type: number
  414. format: integer
  415. default: 0
  416. - name: timeout
  417. in: query
  418. description: Specify a timeout value in milliseconds after which the agent will
  419. abort the query and return a 503 error. A value of 0 indicates no timeout.
  420. required: false
  421. allowEmptyValue: false
  422. schema:
  423. type: number
  424. format: integer
  425. default: 0
  426. - name: format
  427. in: query
  428. description: The format of the data to be returned.
  429. required: true
  430. allowEmptyValue: false
  431. schema:
  432. type: string
  433. enum:
  434. - json
  435. - jsonp
  436. - csv
  437. - tsv
  438. - tsv-excel
  439. - ssv
  440. - ssvcomma
  441. - datatable
  442. - datasource
  443. - html
  444. - markdown
  445. - array
  446. - csvjsonarray
  447. default: json
  448. - name: options
  449. in: query
  450. description: Options that affect data generation.
  451. required: false
  452. allowEmptyValue: false
  453. schema:
  454. type: array
  455. items:
  456. type: string
  457. enum:
  458. - nonzero
  459. - flip
  460. - jsonwrap
  461. - min2max
  462. - seconds
  463. - milliseconds
  464. - abs
  465. - absolute
  466. - absolute-sum
  467. - null2zero
  468. - objectrows
  469. - google_json
  470. - percentage
  471. - unaligned
  472. - match-ids
  473. - match-names
  474. - allow_past
  475. - anomaly-bit
  476. default:
  477. - seconds
  478. - jsonwrap
  479. - name: callback
  480. in: query
  481. description: For JSONP responses, the callback function name.
  482. required: false
  483. allowEmptyValue: true
  484. schema:
  485. type: string
  486. - name: filename
  487. in: query
  488. description: "Add Content-Disposition: attachment; filename= header to
  489. the response, that will instruct the browser to save the response
  490. with the given filename."
  491. required: false
  492. allowEmptyValue: true
  493. schema:
  494. type: string
  495. - name: tqx
  496. in: query
  497. description: "[Google Visualization
  498. API](https://developers.google.com/chart/interactive/docs/dev/imple\
  499. menting_data_source?hl=en) formatted parameter."
  500. required: false
  501. allowEmptyValue: true
  502. schema:
  503. type: string
  504. responses:
  505. "200":
  506. description: The call was successful. The response includes the data in the
  507. format requested. Swagger2.0 does not process the discriminator
  508. field to show polymorphism. The response will be one of the
  509. sub-types of the data-schema according to the chosen format, e.g.
  510. json -> data_json.
  511. content:
  512. application/json:
  513. schema:
  514. $ref: "#/components/schemas/data"
  515. "400":
  516. description: Bad request - the body will include a message stating what is wrong.
  517. "404":
  518. description: Chart or context is not found. The supplied chart or context will be reported.
  519. "500":
  520. description: Internal server error. This usually means the server is out of
  521. memory.
  522. /badge.svg:
  523. get:
  524. summary: Generate a badge in form of SVG image for a chart (or dimension)
  525. description: Successful responses are SVG images.
  526. parameters:
  527. - name: chart
  528. in: query
  529. description: The id of the chart as returned by the /charts call.
  530. required: true
  531. allowEmptyValue: false
  532. schema:
  533. type: string
  534. format: as returned by /charts
  535. default: system.cpu
  536. - name: alarm
  537. in: query
  538. description: The name of an alarm linked to the chart.
  539. required: false
  540. allowEmptyValue: true
  541. schema:
  542. type: string
  543. format: any text
  544. - name: dimension
  545. in: query
  546. description: Zero, one or more dimension ids, as returned by the /chart call.
  547. required: false
  548. allowEmptyValue: false
  549. schema:
  550. type: array
  551. items:
  552. type: string
  553. format: as returned by /charts
  554. - name: after
  555. in: query
  556. description: This parameter can either be an absolute timestamp specifying the
  557. starting point of the data to be returned, or a relative number of
  558. seconds, to the last collected timestamp. Netdata will assume it is
  559. a relative number if it is smaller than the duration of the round
  560. robin database for this chart. So, if the round robin database is
  561. 3600 seconds, any value from -3600 to 3600 will trigger relative
  562. arithmetics. Netdata will adapt this parameter to the boundaries of
  563. the round robin database.
  564. required: true
  565. allowEmptyValue: false
  566. schema:
  567. type: number
  568. format: integer
  569. default: -600
  570. - name: before
  571. in: query
  572. description: This parameter can either be an absolute timestamp specifying the
  573. ending point of the data to be returned, or a relative number of
  574. seconds, to the last collected timestamp. Netdata will assume it is
  575. a relative number if it is smaller than the duration of the round
  576. robin database for this chart. So, if the round robin database is
  577. 3600 seconds, any value from -3600 to 3600 will trigger relative
  578. arithmetics. Netdata will adapt this parameter to the boundaries of
  579. the round robin database.
  580. required: false
  581. schema:
  582. type: number
  583. format: integer
  584. default: 0
  585. - name: group
  586. in: query
  587. description: The grouping method. If multiple collected values are to be grouped
  588. in order to return fewer points, this parameters defines the method
  589. of grouping. methods are supported "min", "max", "average", "sum",
  590. "incremental-sum". "max" is actually calculated on the absolute
  591. value collected (so it works for both positive and negative
  592. dimensions to return the most extreme value in either direction).
  593. required: true
  594. allowEmptyValue: false
  595. schema:
  596. type: string
  597. enum:
  598. - min
  599. - max
  600. - average
  601. - median
  602. - stddev
  603. - sum
  604. - incremental-sum
  605. - ses
  606. - des
  607. - cv
  608. - countif
  609. - percentile
  610. - percentile25
  611. - percentile50
  612. - percentile75
  613. - percentile80
  614. - percentile90
  615. - percentile95
  616. - percentile97
  617. - percentile98
  618. - percentile99
  619. - trimmed-mean
  620. - trimmed-mean1
  621. - trimmed-mean2
  622. - trimmed-mean3
  623. - trimmed-mean5
  624. - trimmed-mean10
  625. - trimmed-mean15
  626. - trimmed-mean20
  627. - trimmed-mean25
  628. - trimmed-median
  629. - trimmed-median1
  630. - trimmed-median2
  631. - trimmed-median3
  632. - trimmed-median5
  633. - trimmed-median10
  634. - trimmed-median15
  635. - trimmed-median20
  636. - trimmed-median25
  637. default: average
  638. - name: options
  639. in: query
  640. description: Options that affect data generation.
  641. required: false
  642. allowEmptyValue: true
  643. schema:
  644. type: array
  645. items:
  646. type: string
  647. enum:
  648. - abs
  649. - absolute
  650. - display-absolute
  651. - absolute-sum
  652. - null2zero
  653. - percentage
  654. - unaligned
  655. - anomaly-bit
  656. default:
  657. - absolute
  658. - name: label
  659. in: query
  660. description: A text to be used as the label.
  661. required: false
  662. allowEmptyValue: true
  663. schema:
  664. type: string
  665. format: any text
  666. - name: units
  667. in: query
  668. description: A text to be used as the units.
  669. required: false
  670. allowEmptyValue: true
  671. schema:
  672. type: string
  673. format: any text
  674. - name: label_color
  675. in: query
  676. description: "A color to be used for the background of the label side(left side) of the badge.
  677. One of predefined colors or specific color in hex `RGB` or `RRGGBB` format (without preceding `#` character).
  678. If value wrong or not given default color will be used."
  679. required: false
  680. allowEmptyValue: true
  681. schema:
  682. oneOf:
  683. - type: string
  684. enum:
  685. - green
  686. - brightgreen
  687. - yellow
  688. - yellowgreen
  689. - orange
  690. - red
  691. - blue
  692. - grey
  693. - gray
  694. - lightgrey
  695. - lightgray
  696. - type: string
  697. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  698. - name: value_color
  699. in: query
  700. description: "A color to be used for the background of the value *(right)* part of badge. You can set
  701. multiple using a pipe with a condition each, like this:
  702. `color<value|color:null` The following operators are
  703. supported: >, <, >=, <=, =, :null (to check if no value exists).
  704. Each color can be specified in same manner as for `label_color` parameter.
  705. Currently only integers are supported as values."
  706. required: false
  707. allowEmptyValue: true
  708. schema:
  709. type: string
  710. format: any text
  711. - name: text_color_lbl
  712. in: query
  713. description: "Font color for label *(left)* part of the badge. One of predefined colors or as HTML hexadecimal
  714. color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default
  715. color will be used."
  716. required: false
  717. allowEmptyValue: true
  718. schema:
  719. oneOf:
  720. - type: string
  721. enum:
  722. - green
  723. - brightgreen
  724. - yellow
  725. - yellowgreen
  726. - orange
  727. - red
  728. - blue
  729. - grey
  730. - gray
  731. - lightgrey
  732. - lightgray
  733. - type: string
  734. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  735. - name: text_color_val
  736. in: query
  737. description: "Font color for value *(right)* part of the badge. One of predefined colors or as HTML
  738. hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value
  739. given default color will be used."
  740. required: false
  741. allowEmptyValue: true
  742. schema:
  743. oneOf:
  744. - type: string
  745. enum:
  746. - green
  747. - brightgreen
  748. - yellow
  749. - yellowgreen
  750. - orange
  751. - red
  752. - blue
  753. - grey
  754. - gray
  755. - lightgrey
  756. - lightgray
  757. - type: string
  758. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  759. - name: multiply
  760. in: query
  761. description: Multiply the value with this number for rendering it at the image
  762. (integer value required).
  763. required: false
  764. allowEmptyValue: true
  765. schema:
  766. type: number
  767. format: integer
  768. - name: divide
  769. in: query
  770. description: Divide the value with this number for rendering it at the image
  771. (integer value required).
  772. required: false
  773. allowEmptyValue: true
  774. schema:
  775. type: number
  776. format: integer
  777. - name: scale
  778. in: query
  779. description: Set the scale of the badge (greater or equal to 100).
  780. required: false
  781. allowEmptyValue: true
  782. schema:
  783. type: number
  784. format: integer
  785. - name: fixed_width_lbl
  786. in: query
  787. description: "This parameter overrides auto-sizing of badge and creates it with fixed width.
  788. This parameter determines the size of the label's left side *(label/name)*.
  789. You must set this parameter together with `fixed_width_val` otherwise it will be ignored.
  790. You should set the label/value widths wide enough to provide space for all the possible values/contents of
  791. the badge you're requesting. In case the text cannot fit the space given it will be clipped.
  792. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`."
  793. required: false
  794. allowEmptyValue: false
  795. schema:
  796. type: number
  797. format: integer
  798. - name: fixed_width_val
  799. in: query
  800. description: "This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter
  801. determines the size of the label's right side *(value)*. You must set this parameter together with
  802. `fixed_width_lbl` otherwise it will be ignored. You should set the label/value widths wide enough to
  803. provide space for all the possible values/contents of the badge you're requesting. In case the text cannot
  804. fit the space given it will be clipped. The `scale` parameter still applies on the values you give to
  805. `fixed_width_lbl` and `fixed_width_val`."
  806. required: false
  807. allowEmptyValue: false
  808. schema:
  809. type: number
  810. format: integer
  811. responses:
  812. "200":
  813. description: The call was successful. The response should be an SVG image.
  814. "400":
  815. description: Bad request - the body will include a message stating what is wrong.
  816. "404":
  817. description: No chart with the given id is found.
  818. "500":
  819. description: Internal server error. This usually means the server is out of
  820. memory.
  821. /allmetrics:
  822. get:
  823. summary: Get a value of all the metrics maintained by netdata
  824. description: The allmetrics endpoint returns the latest value of all charts and
  825. dimensions stored in the netdata server.
  826. parameters:
  827. - name: format
  828. in: query
  829. description: The format of the response to be returned.
  830. required: true
  831. schema:
  832. type: string
  833. enum:
  834. - shell
  835. - prometheus
  836. - prometheus_all_hosts
  837. - json
  838. default: shell
  839. - name: filter
  840. in: query
  841. description: Allows to filter charts out using simple patterns.
  842. required: false
  843. schema:
  844. type: string
  845. format: any text
  846. - name: variables
  847. in: query
  848. description: When enabled, netdata will expose various system
  849. configuration metrics.
  850. required: false
  851. schema:
  852. type: string
  853. enum:
  854. - yes
  855. - no
  856. default: no
  857. - name: help
  858. in: query
  859. description: Enable or disable HELP lines in prometheus output.
  860. required: false
  861. schema:
  862. type: string
  863. enum:
  864. - yes
  865. - no
  866. default: no
  867. - name: types
  868. in: query
  869. description: Enable or disable TYPE lines in prometheus output.
  870. required: false
  871. schema:
  872. type: string
  873. enum:
  874. - yes
  875. - no
  876. default: no
  877. - name: timestamps
  878. in: query
  879. description: Enable or disable timestamps in prometheus output.
  880. required: false
  881. schema:
  882. type: string
  883. enum:
  884. - yes
  885. - no
  886. default: yes
  887. - name: names
  888. in: query
  889. description: When enabled netdata will report dimension names. When disabled
  890. netdata will report dimension IDs. The default is controlled in
  891. netdata.conf.
  892. required: false
  893. schema:
  894. type: string
  895. enum:
  896. - yes
  897. - no
  898. default: yes
  899. - name: oldunits
  900. in: query
  901. description: When enabled, netdata will show metric names for the default
  902. source=average as they appeared before 1.12, by using the legacy
  903. unit naming conventions.
  904. required: false
  905. schema:
  906. type: string
  907. enum:
  908. - yes
  909. - no
  910. default: yes
  911. - name: hideunits
  912. in: query
  913. description: When enabled, netdata will not include the units in the metric
  914. names, for the default source=average.
  915. required: false
  916. schema:
  917. type: string
  918. enum:
  919. - yes
  920. - no
  921. default: yes
  922. - name: server
  923. in: query
  924. description: Set a distinct name of the client querying prometheus metrics.
  925. Netdata will use the client IP if this is not set.
  926. required: false
  927. schema:
  928. type: string
  929. format: any text
  930. - name: prefix
  931. in: query
  932. description: Prefix all prometheus metrics with this string.
  933. required: false
  934. schema:
  935. type: string
  936. format: any text
  937. - name: data
  938. in: query
  939. description: Select the prometheus response data source. There is a setting in
  940. netdata.conf for the default.
  941. required: false
  942. schema:
  943. type: string
  944. enum:
  945. - as-collected
  946. - average
  947. - sum
  948. default: average
  949. responses:
  950. "200":
  951. description: All the metrics returned in the format requested.
  952. "400":
  953. description: The format requested is not supported.
  954. /alarms:
  955. get:
  956. summary: Get a list of active or raised alarms on the server
  957. description: The alarms endpoint returns the list of all raised or enabled alarms on
  958. the netdata server. Called without any parameters, the raised alarms in
  959. state WARNING or CRITICAL are returned. By passing "?all", all the
  960. enabled alarms are returned.
  961. parameters:
  962. - name: all
  963. in: query
  964. description: If passed, all enabled alarms are returned.
  965. required: false
  966. allowEmptyValue: true
  967. schema:
  968. type: boolean
  969. - name: active
  970. in: query
  971. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  972. required: false
  973. allowEmptyValue: true
  974. schema:
  975. type: boolean
  976. responses:
  977. "200":
  978. description: An object containing general info and a linked list of alarms.
  979. content:
  980. application/json:
  981. schema:
  982. $ref: "#/components/schemas/alarms"
  983. /alarms_values:
  984. get:
  985. summary: Get a list of active or raised alarms on the server
  986. description: "The alarms_values endpoint returns the list of all raised or enabled alarms on
  987. the netdata server. Called without any parameters, the raised alarms in
  988. state WARNING or CRITICAL are returned. By passing '?all', all the
  989. enabled alarms are returned.
  990. This option output differs from `/alarms` in the number of variables delivered. This endpoint gives
  991. to user `id`, `value`, `last_updated` time, and alarm `status`."
  992. parameters:
  993. - name: all
  994. in: query
  995. description: If passed, all enabled alarms are returned.
  996. required: false
  997. allowEmptyValue: true
  998. schema:
  999. type: boolean
  1000. - name: active
  1001. in: query
  1002. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  1003. required: false
  1004. allowEmptyValue: true
  1005. schema:
  1006. type: boolean
  1007. responses:
  1008. "200":
  1009. description: An object containing general info and a linked list of alarms.
  1010. content:
  1011. application/json:
  1012. schema:
  1013. $ref: "#/components/schemas/alarms_values"
  1014. /alarm_log:
  1015. get:
  1016. summary: Retrieves the entries of the alarm log
  1017. description: Returns an array of alarm_log entries, with historical information on
  1018. raised and cleared alarms.
  1019. parameters:
  1020. - name: after
  1021. in: query
  1022. description: Passing the parameter after=UNIQUEID returns all the events in the
  1023. alarm log that occurred after UNIQUEID. An automated series of calls
  1024. would call the interface once without after=, store the last
  1025. UNIQUEID of the returned set, and give it back to get incrementally
  1026. the next events.
  1027. required: false
  1028. schema:
  1029. type: integer
  1030. responses:
  1031. "200":
  1032. description: An array of alarm log entries.
  1033. content:
  1034. application/json:
  1035. schema:
  1036. type: array
  1037. items:
  1038. $ref: "#/components/schemas/alarm_log_entry"
  1039. /alarm_count:
  1040. get:
  1041. summary: Get an overall status of the chart
  1042. description: Checks multiple charts with the same context and counts number of alarms
  1043. with given status.
  1044. parameters:
  1045. - in: query
  1046. name: context
  1047. description: Specify context which should be checked.
  1048. required: false
  1049. allowEmptyValue: true
  1050. schema:
  1051. type: array
  1052. items:
  1053. type: string
  1054. default:
  1055. - system.cpu
  1056. - in: query
  1057. name: status
  1058. description: Specify alarm status to count.
  1059. required: false
  1060. allowEmptyValue: true
  1061. schema:
  1062. type: string
  1063. enum:
  1064. - REMOVED
  1065. - UNDEFINED
  1066. - UNINITIALIZED
  1067. - CLEAR
  1068. - RAISED
  1069. - WARNING
  1070. - CRITICAL
  1071. default: RAISED
  1072. responses:
  1073. "200":
  1074. description: An object containing a count of alarms with given status for given
  1075. contexts.
  1076. content:
  1077. application/json:
  1078. schema:
  1079. type: array
  1080. items:
  1081. type: number
  1082. "500":
  1083. description: Internal server error. This usually means the server is out of
  1084. memory.
  1085. /manage/health:
  1086. get:
  1087. summary: "Accesses the health management API to control health checks and
  1088. notifications at runtime."
  1089. description: "Available from Netdata v1.12 and above, protected via bearer
  1090. authorization. Especially useful for maintenance periods, the API allows
  1091. you to disable health checks completely, silence alarm notifications, or
  1092. Disable/Silence specific alarms that match selectors on alarm/template
  1093. name, chart, context, host and family. For the simple disable/silence
  1094. all scenarios, only the cmd parameter is required. The other parameters
  1095. are used to define alarm selectors. For more information and examples,
  1096. refer to the netdata documentation."
  1097. parameters:
  1098. - name: cmd
  1099. in: query
  1100. description: "DISABLE ALL: No alarm criteria are evaluated, nothing is written in
  1101. the alarm log. SILENCE ALL: No notifications are sent. RESET: Return
  1102. to the default state. DISABLE/SILENCE: Set the mode to be used for
  1103. the alarms matching the criteria of the alarm selectors. LIST: Show
  1104. active configuration."
  1105. required: false
  1106. schema:
  1107. type: string
  1108. enum:
  1109. - DISABLE ALL
  1110. - SILENCE ALL
  1111. - DISABLE
  1112. - SILENCE
  1113. - RESET
  1114. - LIST
  1115. - name: alarm
  1116. in: query
  1117. description: The expression provided will match both `alarm` and `template` names.
  1118. schema:
  1119. type: string
  1120. - name: chart
  1121. in: query
  1122. description: Chart ids/names, as shown on the dashboard. These will match the
  1123. `on` entry of a configured `alarm`.
  1124. schema:
  1125. type: string
  1126. - name: context
  1127. in: query
  1128. description: Chart context, as shown on the dashboard. These will match the `on`
  1129. entry of a configured `template`.
  1130. schema:
  1131. type: string
  1132. - name: hosts
  1133. in: query
  1134. description: The hostnames that will need to match.
  1135. schema:
  1136. type: string
  1137. - name: families
  1138. in: query
  1139. description: The alarm families.
  1140. schema:
  1141. type: string
  1142. responses:
  1143. "200":
  1144. description: A plain text response based on the result of the command.
  1145. "403":
  1146. description: Bearer authentication error.
  1147. /aclk:
  1148. get:
  1149. summary: Get information about current ACLK state
  1150. description: "ACLK endpoint returns detailed information
  1151. about current state of ACLK (Agent to Cloud communication)."
  1152. responses:
  1153. "200":
  1154. description: JSON object with ACLK information.
  1155. content:
  1156. application/json:
  1157. schema:
  1158. $ref: "#/components/schemas/aclk_state"
  1159. /metric_correlations:
  1160. get:
  1161. summary: "Analyze all the metrics to find their correlations"
  1162. description: "THIS ENDPOINT IS OBSOLETE. Use the /weights endpoint.
  1163. Given two time-windows (baseline, highlight), it goes
  1164. through all the available metrics, querying both windows and tries to find
  1165. how these two windows relate to each other. It supports
  1166. multiple algorithms to do so. The result is a list of all
  1167. metrics evaluated, weighted for 0.0 (the two windows are
  1168. more different) to 1.0 (the two windows are similar).
  1169. The algorithm adjusts automatically the baseline window to be
  1170. a power of two multiple of the highlighted (1, 2, 4, 8, etc)."
  1171. parameters:
  1172. - name: baseline_after
  1173. in: query
  1174. description: This parameter can either be an absolute timestamp specifying the
  1175. starting point of baseline window, or a relative number of
  1176. seconds (negative, relative to parameter baseline_before). Netdata will
  1177. assume it is a relative number if it is less that 3 years (in seconds).
  1178. required: false
  1179. allowEmptyValue: false
  1180. schema:
  1181. type: number
  1182. format: integer
  1183. default: -300
  1184. - name: baseline_before
  1185. in: query
  1186. description: This parameter can either be an absolute timestamp specifying the
  1187. ending point of the baseline window, or a relative number of
  1188. seconds (negative), relative to the last collected timestamp.
  1189. Netdata will assume it is a relative number if it is less than 3
  1190. years (in seconds).
  1191. required: false
  1192. schema:
  1193. type: number
  1194. format: integer
  1195. default: -60
  1196. - name: after
  1197. in: query
  1198. description: This parameter can either be an absolute timestamp specifying the
  1199. starting point of highlighted window, or a relative number of
  1200. seconds (negative, relative to parameter highlight_before). Netdata will
  1201. assume it is a relative number if it is less that 3 years (in seconds).
  1202. required: false
  1203. allowEmptyValue: false
  1204. schema:
  1205. type: number
  1206. format: integer
  1207. default: -60
  1208. - name: before
  1209. in: query
  1210. description: This parameter can either be an absolute timestamp specifying the
  1211. ending point of the highlighted window, or a relative number of
  1212. seconds (negative), relative to the last collected timestamp.
  1213. Netdata will assume it is a relative number if it is less than 3
  1214. years (in seconds).
  1215. required: false
  1216. schema:
  1217. type: number
  1218. format: integer
  1219. default: 0
  1220. - name: points
  1221. in: query
  1222. description: The number of points to be evaluated for the highlighted window.
  1223. The baseline window will be adjusted automatically to receive a proportional
  1224. amount of points.
  1225. required: false
  1226. allowEmptyValue: false
  1227. schema:
  1228. type: number
  1229. format: integer
  1230. default: 500
  1231. - name: method
  1232. in: query
  1233. description: the algorithm to run
  1234. required: false
  1235. schema:
  1236. type: string
  1237. enum:
  1238. - ks2
  1239. - volume
  1240. default: ks2
  1241. - name: timeout
  1242. in: query
  1243. description: Cancel the query if to takes more that this amount of milliseconds.
  1244. required: false
  1245. allowEmptyValue: false
  1246. schema:
  1247. type: number
  1248. format: integer
  1249. default: 60000
  1250. - name: options
  1251. in: query
  1252. description: Options that affect data generation.
  1253. required: false
  1254. allowEmptyValue: false
  1255. schema:
  1256. type: array
  1257. items:
  1258. type: string
  1259. enum:
  1260. - min2max
  1261. - abs
  1262. - absolute
  1263. - absolute-sum
  1264. - null2zero
  1265. - percentage
  1266. - unaligned
  1267. - allow_past
  1268. - nonzero
  1269. - anomaly-bit
  1270. - raw
  1271. default:
  1272. - null2zero
  1273. - allow_past
  1274. - nonzero
  1275. - unaligned
  1276. - name: group
  1277. in: query
  1278. description: The grouping method. If multiple collected values are to be grouped
  1279. in order to return fewer points, this parameters defines the method
  1280. of grouping. methods supported "min", "max", "average", "sum",
  1281. "incremental-sum". "max" is actually calculated on the absolute
  1282. value collected (so it works for both positive and negative
  1283. dimensions to return the most extreme value in either direction).
  1284. required: true
  1285. allowEmptyValue: false
  1286. schema:
  1287. type: string
  1288. enum:
  1289. - min
  1290. - max
  1291. - average
  1292. - median
  1293. - stddev
  1294. - sum
  1295. - incremental-sum
  1296. - ses
  1297. - des
  1298. - cv
  1299. - countif
  1300. - percentile
  1301. - percentile25
  1302. - percentile50
  1303. - percentile75
  1304. - percentile80
  1305. - percentile90
  1306. - percentile95
  1307. - percentile97
  1308. - percentile98
  1309. - percentile99
  1310. - trimmed-mean
  1311. - trimmed-mean1
  1312. - trimmed-mean2
  1313. - trimmed-mean3
  1314. - trimmed-mean5
  1315. - trimmed-mean10
  1316. - trimmed-mean15
  1317. - trimmed-mean20
  1318. - trimmed-mean25
  1319. - trimmed-median
  1320. - trimmed-median1
  1321. - trimmed-median2
  1322. - trimmed-median3
  1323. - trimmed-median5
  1324. - trimmed-median10
  1325. - trimmed-median15
  1326. - trimmed-median20
  1327. - trimmed-median25
  1328. default: average
  1329. - name: group_options
  1330. in: query
  1331. description: When the group function supports additional parameters, this field
  1332. can be used to pass them to it. Currently only "countif" supports this.
  1333. required: false
  1334. allowEmptyValue: false
  1335. schema:
  1336. type: string
  1337. responses:
  1338. "200":
  1339. description: JSON object with weights for each chart and dimension.
  1340. content:
  1341. application/json:
  1342. schema:
  1343. $ref: "#/components/schemas/metric_correlations"
  1344. "400":
  1345. description: The given parameters are invalid.
  1346. "403":
  1347. description: metrics correlations are not enabled on this Netdata Agent.
  1348. "404":
  1349. description: No charts could be found, or the method
  1350. that correlated the metrics did not produce any result.
  1351. "504":
  1352. description: Timeout - the query took too long and has been cancelled.
  1353. /function:
  1354. get:
  1355. summary: "Execute a collector function."
  1356. parameters:
  1357. - name: function
  1358. in: query
  1359. description: The name of the function, as returned by the collector.
  1360. required: true
  1361. allowEmptyValue: false
  1362. schema:
  1363. type: string
  1364. - name: timeout
  1365. in: query
  1366. description: The timeout in seconds to wait for the function to complete.
  1367. required: false
  1368. schema:
  1369. type: number
  1370. format: integer
  1371. default: 10
  1372. responses:
  1373. "200":
  1374. description: The collector function has been executed successfully. Each collector may return a different type of content.
  1375. "400":
  1376. description: The request was rejected by the collector.
  1377. "404":
  1378. description: The requested function is not found.
  1379. "500":
  1380. description: Other internal error, getting this error means there is a bug in Netdata.
  1381. "503":
  1382. description: The collector to execute the function is not currently available.
  1383. "504":
  1384. description: Timeout while waiting for the collector to execute the function.
  1385. "591":
  1386. description: The collector sent a response, but it was invalid or corrupted.
  1387. /functions:
  1388. get:
  1389. summary: Get a list of all registered collector functions.
  1390. description: Collector functions are programs that can be executed on demand.
  1391. responses:
  1392. "200":
  1393. description: A JSON object containing one object per supported function.
  1394. /weights:
  1395. get:
  1396. summary: "Analyze all the metrics using an algorithm and score them accordingly"
  1397. description: "This endpoint goes through all metrics and scores them according to an algorithm."
  1398. parameters:
  1399. - name: baseline_after
  1400. in: query
  1401. description: This parameter can either be an absolute timestamp specifying the
  1402. starting point of baseline window, or a relative number of
  1403. seconds (negative, relative to parameter baseline_before). Netdata will
  1404. assume it is a relative number if it is less that 3 years (in seconds).
  1405. This parameter is used in KS2 and VOLUME algorithms.
  1406. required: false
  1407. allowEmptyValue: false
  1408. schema:
  1409. type: number
  1410. format: integer
  1411. default: -300
  1412. - name: baseline_before
  1413. in: query
  1414. description: This parameter can either be an absolute timestamp specifying the
  1415. ending point of the baseline window, or a relative number of
  1416. seconds (negative), relative to the last collected timestamp.
  1417. Netdata will assume it is a relative number if it is less than 3
  1418. years (in seconds).
  1419. This parameter is used in KS2 and VOLUME algorithms.
  1420. required: false
  1421. schema:
  1422. type: number
  1423. format: integer
  1424. default: -60
  1425. - name: after
  1426. in: query
  1427. description: This parameter can either be an absolute timestamp specifying the
  1428. starting point of highlighted window, or a relative number of
  1429. seconds (negative, relative to parameter highlight_before). Netdata will
  1430. assume it is a relative number if it is less that 3 years (in seconds).
  1431. required: false
  1432. allowEmptyValue: false
  1433. schema:
  1434. type: number
  1435. format: integer
  1436. default: -60
  1437. - name: before
  1438. in: query
  1439. description: This parameter can either be an absolute timestamp specifying the
  1440. ending point of the highlighted window, or a relative number of
  1441. seconds (negative), relative to the last collected timestamp.
  1442. Netdata will assume it is a relative number if it is less than 3
  1443. years (in seconds).
  1444. required: false
  1445. schema:
  1446. type: number
  1447. format: integer
  1448. default: 0
  1449. - name: context
  1450. in: query
  1451. description: A simple pattern matching the contexts to evaluate.
  1452. required: false
  1453. allowEmptyValue: false
  1454. schema:
  1455. type: string
  1456. - name: points
  1457. in: query
  1458. description: The number of points to be evaluated for the highlighted window.
  1459. The baseline window will be adjusted automatically to receive a proportional
  1460. amount of points.
  1461. This parameter is only used by the KS2 algorithm.
  1462. required: false
  1463. allowEmptyValue: false
  1464. schema:
  1465. type: number
  1466. format: integer
  1467. default: 500
  1468. - name: method
  1469. in: query
  1470. description: the algorithm to run
  1471. required: false
  1472. schema:
  1473. type: string
  1474. enum:
  1475. - ks2
  1476. - volume
  1477. - anomaly-rate
  1478. default: anomaly-rate
  1479. - name: tier
  1480. in: query
  1481. description: Use the specified database tier
  1482. required: false
  1483. allowEmptyValue: false
  1484. schema:
  1485. type: number
  1486. format: integer
  1487. - name: timeout
  1488. in: query
  1489. description: Cancel the query if to takes more that this amount of milliseconds.
  1490. required: false
  1491. allowEmptyValue: false
  1492. schema:
  1493. type: number
  1494. format: integer
  1495. default: 60000
  1496. - name: options
  1497. in: query
  1498. description: Options that affect data generation.
  1499. required: false
  1500. allowEmptyValue: false
  1501. schema:
  1502. type: array
  1503. items:
  1504. type: string
  1505. enum:
  1506. - min2max
  1507. - abs
  1508. - absolute
  1509. - absolute-sum
  1510. - null2zero
  1511. - percentage
  1512. - unaligned
  1513. - nonzero
  1514. - anomaly-bit
  1515. - raw
  1516. default:
  1517. - null2zero
  1518. - nonzero
  1519. - unaligned
  1520. - name: group
  1521. in: query
  1522. description: The grouping method. If multiple collected values are to be grouped
  1523. in order to return fewer points, this parameters defines the method
  1524. of grouping. methods supported "min", "max", "average", "sum",
  1525. "incremental-sum". "max" is actually calculated on the absolute
  1526. value collected (so it works for both positive and negative
  1527. dimensions to return the most extreme value in either direction).
  1528. required: true
  1529. allowEmptyValue: false
  1530. schema:
  1531. type: string
  1532. enum:
  1533. - min
  1534. - max
  1535. - average
  1536. - median
  1537. - stddev
  1538. - sum
  1539. - incremental-sum
  1540. - ses
  1541. - des
  1542. - cv
  1543. - countif
  1544. - percentile
  1545. - percentile25
  1546. - percentile50
  1547. - percentile75
  1548. - percentile80
  1549. - percentile90
  1550. - percentile95
  1551. - percentile97
  1552. - percentile98
  1553. - percentile99
  1554. - trimmed-mean
  1555. - trimmed-mean1
  1556. - trimmed-mean2
  1557. - trimmed-mean3
  1558. - trimmed-mean5
  1559. - trimmed-mean10
  1560. - trimmed-mean15
  1561. - trimmed-mean20
  1562. - trimmed-mean25
  1563. - trimmed-median
  1564. - trimmed-median1
  1565. - trimmed-median2
  1566. - trimmed-median3
  1567. - trimmed-median5
  1568. - trimmed-median10
  1569. - trimmed-median15
  1570. - trimmed-median20
  1571. - trimmed-median25
  1572. default: average
  1573. - name: group_options
  1574. in: query
  1575. description: When the group function supports additional parameters, this field
  1576. can be used to pass them to it. Currently only "countif" supports this.
  1577. required: false
  1578. allowEmptyValue: false
  1579. schema:
  1580. type: string
  1581. responses:
  1582. "200":
  1583. description: JSON object with weights for each context, chart and dimension.
  1584. content:
  1585. application/json:
  1586. schema:
  1587. $ref: "#/components/schemas/weights"
  1588. "400":
  1589. description: The given parameters are invalid.
  1590. "403":
  1591. description: metrics correlations are not enabled on this Netdata Agent.
  1592. "404":
  1593. description: No charts could be found, or the method
  1594. that correlated the metrics did not produce any result.
  1595. "504":
  1596. description: Timeout - the query took too long and has been cancelled.
  1597. servers:
  1598. - url: https://registry.my-netdata.io/api/v1
  1599. - url: http://registry.my-netdata.io/api/v1
  1600. components:
  1601. schemas:
  1602. info:
  1603. type: object
  1604. properties:
  1605. version:
  1606. type: string
  1607. description: netdata version of the server.
  1608. example: 1.11.1_rolling
  1609. uid:
  1610. type: string
  1611. description: netdata unique id of the server.
  1612. example: 24e9fe3c-f2ac-11e8-bafc-0242ac110002
  1613. mirrored_hosts:
  1614. type: array
  1615. description: List of hosts mirrored of the server (include itself).
  1616. items:
  1617. type: string
  1618. example:
  1619. - host1.example.com
  1620. - host2.example.com
  1621. mirrored_hosts_status:
  1622. type: array
  1623. description: >-
  1624. List of details of hosts mirrored to this served (including self).
  1625. Indexes correspond to indexes in "mirrored_hosts".
  1626. items:
  1627. type: object
  1628. description: Host data
  1629. properties:
  1630. guid:
  1631. type: string
  1632. format: uuid
  1633. nullable: false
  1634. description: Host unique GUID from `netdata.public.unique.id`.
  1635. example: 245e4bff-3b34-47c1-a6e5-5c535a9abfb2
  1636. reachable:
  1637. type: boolean
  1638. nullable: false
  1639. description: Current state of streaming. Always true for localhost/self.
  1640. claim_id:
  1641. type: string
  1642. format: uuid
  1643. nullable: true
  1644. description: >-
  1645. Cloud GUID/identifier in case the host is claimed.
  1646. If child status unknown or unclaimed this field is set to `null`
  1647. example: c3b2a66a-3052-498c-ac52-7fe9e8cccb0c
  1648. os_name:
  1649. type: string
  1650. description: Operating System Name.
  1651. example: Manjaro Linux
  1652. os_id:
  1653. type: string
  1654. description: Operating System ID.
  1655. example: manjaro
  1656. os_id_like:
  1657. type: string
  1658. description: Known OS similar to this OS.
  1659. example: arch
  1660. os_version:
  1661. type: string
  1662. description: Operating System Version.
  1663. example: 18.0.4
  1664. os_version_id:
  1665. type: string
  1666. description: Operating System Version ID.
  1667. example: unknown
  1668. os_detection:
  1669. type: string
  1670. description: OS parameters detection method.
  1671. example: Mixed
  1672. kernel_name:
  1673. type: string
  1674. description: Kernel Name.
  1675. example: Linux
  1676. kernel_version:
  1677. type: string
  1678. description: Kernel Version.
  1679. example: 4.19.32-1-MANJARO
  1680. is_k8s_node:
  1681. type: boolean
  1682. description: Netdata is running on a K8s node.
  1683. example: false
  1684. architecture:
  1685. type: string
  1686. description: Kernel architecture.
  1687. example: x86_64
  1688. virtualization:
  1689. type: string
  1690. description: Virtualization Type.
  1691. example: kvm
  1692. virt_detection:
  1693. type: string
  1694. description: Virtualization detection method.
  1695. example: systemd-detect-virt
  1696. container:
  1697. type: string
  1698. description: Container technology.
  1699. example: docker
  1700. container_detection:
  1701. type: string
  1702. description: Container technology detection method.
  1703. example: dockerenv
  1704. stream_compression:
  1705. type: boolean
  1706. description: Stream transmission compression method.
  1707. example: true
  1708. labels:
  1709. type: object
  1710. description: List of host labels.
  1711. properties:
  1712. app:
  1713. type: string
  1714. description: Host label.
  1715. example: netdata
  1716. collectors:
  1717. type: array
  1718. items:
  1719. type: object
  1720. description: Array of collector plugins and modules.
  1721. properties:
  1722. plugin:
  1723. type: string
  1724. description: Collector plugin.
  1725. example: python.d.plugin
  1726. module:
  1727. type: string
  1728. description: Module of the collector plugin.
  1729. example: dockerd
  1730. alarms:
  1731. type: object
  1732. description: Number of alarms in the server.
  1733. properties:
  1734. normal:
  1735. type: integer
  1736. description: Number of alarms in normal state.
  1737. warning:
  1738. type: integer
  1739. description: Number of alarms in warning state.
  1740. critical:
  1741. type: integer
  1742. description: Number of alarms in critical state.
  1743. chart_summary:
  1744. type: object
  1745. properties:
  1746. hostname:
  1747. type: string
  1748. description: The hostname of the netdata server.
  1749. version:
  1750. type: string
  1751. description: netdata version of the server.
  1752. release_channel:
  1753. type: string
  1754. description: The release channel of the build on the server.
  1755. example: nightly
  1756. timezone:
  1757. type: string
  1758. description: The current timezone on the server.
  1759. os:
  1760. type: string
  1761. description: The netdata server host operating system.
  1762. enum:
  1763. - macos
  1764. - linux
  1765. - freebsd
  1766. history:
  1767. type: number
  1768. description: The duration, in seconds, of the round robin database maintained by
  1769. netdata.
  1770. memory_mode:
  1771. type: string
  1772. description: The name of the database memory mode on the server.
  1773. update_every:
  1774. type: number
  1775. description: The default update frequency of the netdata server. All charts have
  1776. an update frequency equal or bigger than this.
  1777. charts:
  1778. type: object
  1779. description: An object containing all the chart objects available at the netdata
  1780. server. This is used as an indexed array. The key of each chart
  1781. object is the id of the chart.
  1782. additionalProperties:
  1783. $ref: "#/components/schemas/chart"
  1784. charts_count:
  1785. type: number
  1786. description: The number of charts.
  1787. dimensions_count:
  1788. type: number
  1789. description: The total number of dimensions.
  1790. alarms_count:
  1791. type: number
  1792. description: The number of alarms.
  1793. rrd_memory_bytes:
  1794. type: number
  1795. description: The size of the round robin database in bytes.
  1796. chart:
  1797. type: object
  1798. properties:
  1799. id:
  1800. type: string
  1801. description: The unique id of the chart.
  1802. name:
  1803. type: string
  1804. description: The name of the chart.
  1805. type:
  1806. type: string
  1807. description: The type of the chart. Types are not handled by netdata. You can use
  1808. this field for anything you like.
  1809. family:
  1810. type: string
  1811. description: The family of the chart. Families are not handled by netdata. You
  1812. can use this field for anything you like.
  1813. title:
  1814. type: string
  1815. description: The title of the chart.
  1816. priority:
  1817. type: number
  1818. description: The relative priority of the chart. Netdata does not care about
  1819. priorities. This is just an indication of importance for the chart
  1820. viewers to sort charts of higher priority (lower number) closer to
  1821. the top. Priority sorting should only be used among charts of the
  1822. same type or family.
  1823. enabled:
  1824. type: boolean
  1825. description: True when the chart is enabled. Disabled charts do not currently
  1826. collect values, but they may have historical values available.
  1827. units:
  1828. type: string
  1829. description: The unit of measurement for the values of all dimensions of the
  1830. chart.
  1831. data_url:
  1832. type: string
  1833. description: The absolute path to get data values for this chart. You are
  1834. expected to use this path as the base when constructing the URL to
  1835. fetch data values for this chart.
  1836. chart_type:
  1837. type: string
  1838. description: The chart type.
  1839. enum:
  1840. - line
  1841. - area
  1842. - stacked
  1843. duration:
  1844. type: number
  1845. description: The duration, in seconds, of the round robin database maintained by
  1846. netdata.
  1847. first_entry:
  1848. type: number
  1849. description: The UNIX timestamp of the first entry (the oldest) in the round
  1850. robin database.
  1851. last_entry:
  1852. type: number
  1853. description: The UNIX timestamp of the latest entry in the round robin database.
  1854. update_every:
  1855. type: number
  1856. description: The update frequency of this chart, in seconds. One value every this
  1857. amount of time is kept in the round robin database.
  1858. dimensions:
  1859. type: object
  1860. description: "An object containing all the chart dimensions available for the
  1861. chart. This is used as an indexed array. For each pair in the
  1862. dictionary: the key is the id of the dimension and the value is a
  1863. dictionary containing the name."
  1864. additionalProperties:
  1865. type: object
  1866. properties:
  1867. name:
  1868. type: string
  1869. description: The name of the dimension
  1870. chart_variables:
  1871. type: object
  1872. additionalProperties:
  1873. $ref: "#/components/schemas/chart_variables"
  1874. green:
  1875. type: number
  1876. nullable: true
  1877. description: Chart health green threshold.
  1878. red:
  1879. type: number
  1880. nullable: true
  1881. description: Chart health red threshold.
  1882. context_summary:
  1883. type: object
  1884. properties:
  1885. hostname:
  1886. type: string
  1887. description: The hostname of the netdata server.
  1888. machine_guid:
  1889. type: string
  1890. description: The unique installation id of this netdata server.
  1891. node_id:
  1892. type: string
  1893. description: The unique node id of this netdata server at the hub.
  1894. example: nightly
  1895. claim_id:
  1896. type: string
  1897. description: The unique handshake id of this netdata server and the hub.
  1898. host_labels:
  1899. type: object
  1900. description: The host labels associated with this netdata server.
  1901. context:
  1902. type: object
  1903. description: "An object containing all the context objects available at the netdata server.
  1904. This is used as an indexed array. The key of each context object is the id of the context."
  1905. additionalProperties:
  1906. $ref: "#/components/schemas/context"
  1907. context:
  1908. type: object
  1909. properties:
  1910. version:
  1911. type: string
  1912. description: "The version of this context.
  1913. The number are not sequential, but bigger numbers depict a newer object."
  1914. hub_version:
  1915. type: string
  1916. description: The version of this context, as known by hub.
  1917. family:
  1918. type: string
  1919. description: "The family of the context. When multiple charts of a context have different families,
  1920. the netdata server replaces the different parts with [x], so that the context can have only one family."
  1921. title:
  1922. type: string
  1923. description: "The title of the context. When multiple charts of a context have different titles,
  1924. the netdata server replaces the different parts with [x], so that the context can have only one title."
  1925. priority:
  1926. type: number
  1927. description: "The relative priority of the context. When multiple contexts have different priorities,
  1928. the minimum among them is selected as the priority of the context."
  1929. units:
  1930. type: string
  1931. description: "The unit of measurement for the values of all dimensions of the context. If multiple charts
  1932. of context have different units, the latest collected is selected."
  1933. chart_type:
  1934. type: string
  1935. description: The chart type.
  1936. enum:
  1937. - line
  1938. - area
  1939. - stacked
  1940. first_time_t:
  1941. type: number
  1942. description: The UNIX timestamp of the first entry (the oldest) in the database.
  1943. last_time_t:
  1944. type: number
  1945. description: The UNIX timestamp of the latest entry in the database.
  1946. charts:
  1947. type: object
  1948. description: "An object containing all the charts available for the chart. This is used as an indexed array.
  1949. For each pair in the dictionary, the key is the id of the chart and the value provides all details about
  1950. the chart."
  1951. alarm_variables:
  1952. type: object
  1953. properties:
  1954. chart:
  1955. type: string
  1956. description: The unique id of the chart.
  1957. chart_name:
  1958. type: string
  1959. description: The name of the chart.
  1960. cnart_context:
  1961. type: string
  1962. description: The context of the chart. It is shared across multiple monitored
  1963. software or hardware instances and used in alarm templates.
  1964. family:
  1965. type: string
  1966. description: The family of the chart.
  1967. host:
  1968. type: string
  1969. description: The host containing the chart.
  1970. chart_variables:
  1971. type: object
  1972. additionalProperties:
  1973. $ref: "#/components/schemas/chart_variables"
  1974. family_variables:
  1975. type: object
  1976. properties:
  1977. varname1:
  1978. type: number
  1979. format: float
  1980. varname2:
  1981. type: number
  1982. format: float
  1983. host_variables:
  1984. type: object
  1985. properties:
  1986. varname1:
  1987. type: number
  1988. format: float
  1989. varname2:
  1990. type: number
  1991. format: float
  1992. chart_variables:
  1993. type: object
  1994. properties:
  1995. varname1:
  1996. type: number
  1997. format: float
  1998. varname2:
  1999. type: number
  2000. format: float
  2001. data:
  2002. type: object
  2003. discriminator:
  2004. propertyName: format
  2005. description: Response will contain the appropriate subtype, e.g. data_json depending
  2006. on the requested format.
  2007. properties:
  2008. api:
  2009. type: number
  2010. description: The API version this conforms to, currently 1.
  2011. id:
  2012. type: string
  2013. description: The unique id of the chart.
  2014. name:
  2015. type: string
  2016. description: The name of the chart.
  2017. update_every:
  2018. type: number
  2019. description: The update frequency of this chart, in seconds. One value every this
  2020. amount of time is kept in the round robin database (independently of
  2021. the current view).
  2022. view_update_every:
  2023. type: number
  2024. description: The current view appropriate update frequency of this chart, in
  2025. seconds. There is no point to request chart refreshes, using the
  2026. same settings, more frequently than this.
  2027. first_entry:
  2028. type: number
  2029. description: The UNIX timestamp of the first entry (the oldest) in the round
  2030. robin database (independently of the current view).
  2031. last_entry:
  2032. type: number
  2033. description: The UNIX timestamp of the latest entry in the round robin database
  2034. (independently of the current view).
  2035. after:
  2036. type: number
  2037. description: The UNIX timestamp of the first entry (the oldest) returned in this
  2038. response.
  2039. before:
  2040. type: number
  2041. description: The UNIX timestamp of the latest entry returned in this response.
  2042. min:
  2043. type: number
  2044. description: The minimum value returned in the current view. This can be used to
  2045. size the y-series of the chart.
  2046. max:
  2047. type: number
  2048. description: The maximum value returned in the current view. This can be used to
  2049. size the y-series of the chart.
  2050. dimension_names:
  2051. description: The dimension names of the chart as returned in the current view.
  2052. type: array
  2053. items:
  2054. type: string
  2055. dimension_ids:
  2056. description: The dimension IDs of the chart as returned in the current view.
  2057. type: array
  2058. items:
  2059. type: string
  2060. latest_values:
  2061. description: The latest values collected for the chart (independently of the
  2062. current view).
  2063. type: array
  2064. items:
  2065. type: string
  2066. view_latest_values:
  2067. description: The latest values returned with this response.
  2068. type: array
  2069. items:
  2070. type: string
  2071. dimensions:
  2072. type: number
  2073. description: The number of dimensions returned.
  2074. points:
  2075. type: number
  2076. description: The number of rows / points returned.
  2077. format:
  2078. type: string
  2079. description: The format of the result returned.
  2080. chart_variables:
  2081. type: object
  2082. additionalProperties:
  2083. $ref: "#/components/schemas/chart_variables"
  2084. data_json:
  2085. description: Data response in json format.
  2086. allOf:
  2087. - $ref: "#/components/schemas/data"
  2088. - properties:
  2089. result:
  2090. type: object
  2091. properties:
  2092. labels:
  2093. description: The dimensions retrieved from the chart.
  2094. type: array
  2095. items:
  2096. type: string
  2097. data:
  2098. description: The data requested, one element per sample with each element
  2099. containing the values of the dimensions described in the
  2100. labels value.
  2101. type: array
  2102. items:
  2103. type: number
  2104. description: The result requested, in the format requested.
  2105. data_flat:
  2106. description: Data response in csv / tsv / tsv-excel / ssv / ssv-comma / markdown /
  2107. html formats.
  2108. allOf:
  2109. - $ref: "#/components/schemas/data"
  2110. - properties:
  2111. result:
  2112. type: string
  2113. data_array:
  2114. description: Data response in array format.
  2115. allOf:
  2116. - $ref: "#/components/schemas/data"
  2117. - properties:
  2118. result:
  2119. type: array
  2120. items:
  2121. type: number
  2122. data_csvjsonarray:
  2123. description: Data response in csvjsonarray format.
  2124. allOf:
  2125. - $ref: "#/components/schemas/data"
  2126. - properties:
  2127. result:
  2128. description: The first inner array contains strings showing the labels of
  2129. each column, each subsequent array contains the values for each
  2130. point in time.
  2131. type: array
  2132. items:
  2133. type: array
  2134. items: {}
  2135. data_datatable:
  2136. description: Data response in datatable / datasource formats (suitable for Google
  2137. Charts).
  2138. allOf:
  2139. - $ref: "#/components/schemas/data"
  2140. - properties:
  2141. result:
  2142. type: object
  2143. properties:
  2144. cols:
  2145. type: array
  2146. items:
  2147. type: object
  2148. properties:
  2149. id:
  2150. description: Always empty - for future use.
  2151. label:
  2152. description: The dimension returned from the chart.
  2153. pattern:
  2154. description: Always empty - for future use.
  2155. type:
  2156. description: The type of data in the column / chart-dimension.
  2157. p:
  2158. description: Contains any annotations for the column.
  2159. required:
  2160. - id
  2161. - label
  2162. - pattern
  2163. - type
  2164. rows:
  2165. type: array
  2166. items:
  2167. type: object
  2168. properties:
  2169. c:
  2170. type: array
  2171. items:
  2172. properties:
  2173. v:
  2174. description: "Each value in the row is represented by an
  2175. object named `c` with five v fields: data, null,
  2176. null, 0, the value. This format is fixed by the
  2177. Google Charts API."
  2178. alarms:
  2179. type: object
  2180. properties:
  2181. hostname:
  2182. type: string
  2183. latest_alarm_log_unique_id:
  2184. type: integer
  2185. format: int32
  2186. status:
  2187. type: boolean
  2188. now:
  2189. type: integer
  2190. format: int32
  2191. alarms:
  2192. type: object
  2193. properties:
  2194. chart-name.alarm-name:
  2195. type: object
  2196. properties:
  2197. id:
  2198. type: integer
  2199. format: int32
  2200. name:
  2201. type: string
  2202. description: Full alarm name.
  2203. chart:
  2204. type: string
  2205. family:
  2206. type: string
  2207. active:
  2208. type: boolean
  2209. description: Will be false only if the alarm is disabled in the
  2210. configuration.
  2211. disabled:
  2212. type: boolean
  2213. description: Whether the health check for this alarm has been disabled
  2214. via a health command API DISABLE command.
  2215. silenced:
  2216. type: boolean
  2217. description: Whether notifications for this alarm have been silenced via
  2218. a health command API SILENCE command.
  2219. exec:
  2220. type: string
  2221. recipient:
  2222. type: string
  2223. source:
  2224. type: string
  2225. units:
  2226. type: string
  2227. info:
  2228. type: string
  2229. status:
  2230. type: string
  2231. last_status_change:
  2232. type: integer
  2233. format: int32
  2234. last_updated:
  2235. type: integer
  2236. format: int32
  2237. next_update:
  2238. type: integer
  2239. format: int32
  2240. update_every:
  2241. type: integer
  2242. format: int32
  2243. delay_up_duration:
  2244. type: integer
  2245. format: int32
  2246. delay_down_duration:
  2247. type: integer
  2248. format: int32
  2249. delay_max_duration:
  2250. type: integer
  2251. format: int32
  2252. delay_multiplier:
  2253. type: integer
  2254. format: int32
  2255. delay:
  2256. type: integer
  2257. format: int32
  2258. delay_up_to_timestamp:
  2259. type: integer
  2260. format: int32
  2261. value_string:
  2262. type: string
  2263. no_clear_notification:
  2264. type: boolean
  2265. lookup_dimensions:
  2266. type: string
  2267. db_after:
  2268. type: integer
  2269. format: int32
  2270. db_before:
  2271. type: integer
  2272. format: int32
  2273. lookup_method:
  2274. type: string
  2275. lookup_after:
  2276. type: integer
  2277. format: int32
  2278. lookup_before:
  2279. type: integer
  2280. format: int32
  2281. lookup_options:
  2282. type: string
  2283. calc:
  2284. type: string
  2285. calc_parsed:
  2286. type: string
  2287. warn:
  2288. type: string
  2289. warn_parsed:
  2290. type: string
  2291. crit:
  2292. type: string
  2293. crit_parsed:
  2294. type: string
  2295. warn_repeat_every:
  2296. type: integer
  2297. format: int32
  2298. crit_repeat_every:
  2299. type: integer
  2300. format: int32
  2301. green:
  2302. type: string
  2303. format: nullable
  2304. red:
  2305. type: string
  2306. format: nullable
  2307. value:
  2308. type: number
  2309. alarm_log_entry:
  2310. type: object
  2311. properties:
  2312. hostname:
  2313. type: string
  2314. unique_id:
  2315. type: integer
  2316. format: int32
  2317. alarm_id:
  2318. type: integer
  2319. format: int32
  2320. alarm_event_id:
  2321. type: integer
  2322. format: int32
  2323. name:
  2324. type: string
  2325. chart:
  2326. type: string
  2327. family:
  2328. type: string
  2329. processed:
  2330. type: boolean
  2331. updated:
  2332. type: boolean
  2333. exec_run:
  2334. type: integer
  2335. format: int32
  2336. exec_failed:
  2337. type: boolean
  2338. exec:
  2339. type: string
  2340. recipient:
  2341. type: string
  2342. exec_code:
  2343. type: integer
  2344. format: int32
  2345. source:
  2346. type: string
  2347. units:
  2348. type: string
  2349. when:
  2350. type: integer
  2351. format: int32
  2352. duration:
  2353. type: integer
  2354. format: int32
  2355. non_clear_duration:
  2356. type: integer
  2357. format: int32
  2358. status:
  2359. type: string
  2360. old_status:
  2361. type: string
  2362. delay:
  2363. type: integer
  2364. format: int32
  2365. delay_up_to_timestamp:
  2366. type: integer
  2367. format: int32
  2368. updated_by_id:
  2369. type: integer
  2370. format: int32
  2371. updates_id:
  2372. type: integer
  2373. format: int32
  2374. value_string:
  2375. type: string
  2376. old_value_string:
  2377. type: string
  2378. silenced:
  2379. type: string
  2380. info:
  2381. type: string
  2382. value:
  2383. type: number
  2384. nullable: true
  2385. old_value:
  2386. type: number
  2387. nullable: true
  2388. alarms_values:
  2389. type: object
  2390. properties:
  2391. hostname:
  2392. type: string
  2393. alarms:
  2394. type: object
  2395. description: HashMap with keys being alarm names
  2396. additionalProperties:
  2397. type: object
  2398. properties:
  2399. id:
  2400. type: integer
  2401. value:
  2402. type: integer
  2403. last_updated:
  2404. type: integer
  2405. format: int32
  2406. status:
  2407. type: string
  2408. enum:
  2409. - REMOVED
  2410. - UNDEFINED
  2411. - UNINITIALIZED
  2412. - CLEAR
  2413. - RAISED
  2414. - WARNING
  2415. - CRITICAL
  2416. - UNKNOWN
  2417. aclk_state:
  2418. type: object
  2419. properties:
  2420. aclk-available:
  2421. type: string
  2422. description: "Describes whether this agent is capable of connection to the Cloud.
  2423. False means agent has been built without ACLK component either on purpose (user choice)
  2424. or due to missing dependency."
  2425. aclk-version:
  2426. type: integer
  2427. description: Describes which ACLK version is currently used.
  2428. protocols-supported:
  2429. type: array
  2430. description: List of supported protocols for communication with Cloud.
  2431. items:
  2432. type: string
  2433. agent-claimed:
  2434. type: boolean
  2435. description: Informs whether this agent has been added to a space in the cloud (User has to perform claiming).
  2436. If false (user didn't perform claiming) agent will never attempt any cloud connection.
  2437. claimed_id:
  2438. type: string
  2439. format: uuid
  2440. description: Unique ID this agent uses to identify when connecting to cloud
  2441. online:
  2442. type: boolean
  2443. description: Informs if this agent was connected to the cloud at the time this request has been processed.
  2444. used-cloud-protocol:
  2445. type: string
  2446. description: Informs which protocol is used to communicate with cloud
  2447. enum:
  2448. - Old
  2449. - New
  2450. metric_correlations:
  2451. type: object
  2452. properties:
  2453. after:
  2454. description: the start time of the highlighted window
  2455. type: integer
  2456. before:
  2457. description: the end time of the highlighted window
  2458. type: integer
  2459. duration:
  2460. description: the duration of the highlighted window
  2461. type: integer
  2462. points:
  2463. description: the points of the highlighted window
  2464. type: integer
  2465. baseline_after:
  2466. description: the start time of the baseline window
  2467. type: integer
  2468. baseline_before:
  2469. description: the end time of the baseline window
  2470. type: integer
  2471. baseline_duration:
  2472. description: the duration of the baseline window
  2473. type: integer
  2474. baseline_points:
  2475. description: the points of the baseline window
  2476. type: integer
  2477. group:
  2478. description: the grouping method across time
  2479. type: string
  2480. method:
  2481. description: the correlation method used
  2482. type: string
  2483. options:
  2484. description: a comma separated list of the query options set
  2485. type: string
  2486. correlated_dimensions:
  2487. description: the number of dimensions returned in the result
  2488. total_dimensions_count:
  2489. description: the total number of dimensions evaluated
  2490. type: integer
  2491. statistics:
  2492. type: object
  2493. properties:
  2494. query_time_ms:
  2495. type: number
  2496. db_queries:
  2497. type: integer
  2498. db_points_read:
  2499. type: integer
  2500. query_result_points:
  2501. type: integer
  2502. binary_searches:
  2503. type: integer
  2504. correlated_charts:
  2505. type: object
  2506. description: An object containing chart objects with their metrics correlations.
  2507. properties:
  2508. chart-id1:
  2509. type: object
  2510. properties:
  2511. context:
  2512. type: string
  2513. dimensions:
  2514. type: object
  2515. properties:
  2516. dimension1-name:
  2517. type: number
  2518. dimension2-name:
  2519. type: number
  2520. chart-id2:
  2521. type: object
  2522. properties:
  2523. context:
  2524. type: string
  2525. dimensions:
  2526. type: object
  2527. properties:
  2528. dimension1-name:
  2529. type: number
  2530. dimension2-name:
  2531. type: number
  2532. weights:
  2533. type: object
  2534. properties:
  2535. after:
  2536. description: the start time of the highlighted window
  2537. type: integer
  2538. before:
  2539. description: the end time of the highlighted window
  2540. type: integer
  2541. duration:
  2542. description: the duration of the highlighted window
  2543. type: integer
  2544. points:
  2545. description: the points of the highlighted window
  2546. type: integer
  2547. baseline_after:
  2548. description: the start time of the baseline window
  2549. type: integer
  2550. baseline_before:
  2551. description: the end time of the baseline window
  2552. type: integer
  2553. baseline_duration:
  2554. description: the duration of the baseline window
  2555. type: integer
  2556. baseline_points:
  2557. description: the points of the baseline window
  2558. type: integer
  2559. group:
  2560. description: the grouping method across time
  2561. type: string
  2562. method:
  2563. description: the correlation method used
  2564. type: string
  2565. options:
  2566. description: a comma separated list of the query options set
  2567. type: string
  2568. correlated_dimensions:
  2569. description: the number of dimensions returned in the result
  2570. total_dimensions_count:
  2571. description: the total number of dimensions evaluated
  2572. type: integer
  2573. statistics:
  2574. type: object
  2575. properties:
  2576. query_time_ms:
  2577. type: number
  2578. db_queries:
  2579. type: integer
  2580. db_points_read:
  2581. type: integer
  2582. query_result_points:
  2583. type: integer
  2584. binary_searches:
  2585. type: integer
  2586. contexts:
  2587. description: A dictionary of weighted context objects.
  2588. type: object
  2589. additionalProperties:
  2590. $ref: '#/components/schemas/weighted_context'
  2591. weighted_context:
  2592. type: object
  2593. properties:
  2594. weight:
  2595. description: The average weight of the context.
  2596. type: number
  2597. charts:
  2598. description: A dictionary of weighted chart objects.
  2599. type: object
  2600. additionalProperties:
  2601. $ref: '#/components/schemas/weighted_chart'
  2602. weighted_chart:
  2603. type: object
  2604. properties:
  2605. weight:
  2606. description: The average weight of the context.
  2607. type: number
  2608. dimensions:
  2609. description: A dictionary of weighted dimensions.
  2610. type: object
  2611. additionalProperties:
  2612. $ref: '#/components/schemas/weighted_dimension'
  2613. weighted_dimension:
  2614. type: number