netdata-swagger.yaml 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688
  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. /alarm_variables:
  68. get:
  69. summary: List variables available to configure alarms for a chart
  70. description: Returns the basic information of a chart and all the variables that can
  71. be used in alarm and template health configurations for the particular
  72. chart or family.
  73. parameters:
  74. - name: chart
  75. in: query
  76. description: The id of the chart as returned by the /charts call.
  77. required: true
  78. schema:
  79. type: string
  80. format: as returned by /charts
  81. default: system.cpu
  82. responses:
  83. "200":
  84. description: A javascript object with information about the chart and the
  85. available variables.
  86. content:
  87. application/json:
  88. schema:
  89. $ref: "#/components/schemas/alarm_variables"
  90. "400":
  91. description: Bad request - the body will include a message stating what is wrong.
  92. "404":
  93. description: No chart with the given id is found.
  94. "500":
  95. description: Internal server error. This usually means the server is out of
  96. memory.
  97. /data:
  98. get:
  99. summary: Get collected data for a specific chart
  100. description: The data endpoint returns data stored in the round robin database of a
  101. chart.
  102. parameters:
  103. - name: chart
  104. in: query
  105. description: The id of the chart as returned by the /charts call. Note chart or context must be specified
  106. required: false
  107. allowEmptyValue: false
  108. schema:
  109. type: string
  110. format: as returned by /charts
  111. default: system.cpu
  112. - name: context
  113. in: query
  114. description: The context of the chart as returned by the /charts call. Note chart or context must be specified
  115. required: false
  116. allowEmptyValue: false
  117. schema:
  118. type: string
  119. format: as returned by /charts
  120. - name: dimension
  121. in: query
  122. description: Zero, one or more dimension ids or names, as returned by the /chart
  123. call, separated with comma or pipe. Netdata simple patterns are
  124. supported.
  125. required: false
  126. allowEmptyValue: false
  127. schema:
  128. type: array
  129. items:
  130. type: string
  131. format: as returned by /charts
  132. - name: after
  133. in: query
  134. description: "This parameter can either be an absolute timestamp specifying the
  135. starting point of the data to be returned, or a relative number of
  136. seconds (negative, relative to parameter: before). Netdata will
  137. assume it is a relative number if it is less that 3 years (in seconds).
  138. If not specified the default is -600 seconds. Netdata will adapt this
  139. parameter to the boundaries of the round robin database unless the allow_past
  140. option is specified."
  141. required: true
  142. allowEmptyValue: false
  143. schema:
  144. type: number
  145. format: integer
  146. default: -600
  147. - name: before
  148. in: query
  149. description: This parameter can either be an absolute timestamp specifying the
  150. ending point of the data to be returned, or a relative number of
  151. seconds (negative), relative to the last collected timestamp.
  152. Netdata will assume it is a relative number if it is less than 3
  153. years (in seconds). Netdata will adapt this parameter to the
  154. boundaries of the round robin database. The default is zero (i.e.
  155. the timestamp of the last value collected).
  156. required: false
  157. schema:
  158. type: number
  159. format: integer
  160. default: 0
  161. - name: points
  162. in: query
  163. description: The number of points to be returned. If not given, or it is <= 0, or
  164. it is bigger than the points stored in the round robin database for
  165. this chart for the given duration, all the available collected
  166. values for the given duration will be returned.
  167. required: true
  168. allowEmptyValue: false
  169. schema:
  170. type: number
  171. format: integer
  172. default: 20
  173. - name: chart_label_key
  174. in: query
  175. description: Specify the chart label keys that need to match for context queries as comma separated values.
  176. At least one matching key is needed to match the corresponding chart.
  177. required: false
  178. allowEmptyValue: false
  179. schema:
  180. type: string
  181. format: key1,key2,key3
  182. - name: chart_labels_filter
  183. in: query
  184. description: Specify the chart label keys and values to match for context queries. All keys/values need to
  185. match for the chart to be included in the query. The labels are specified as key1:value1,key2:value2
  186. required: false
  187. allowEmptyValue: false
  188. schema:
  189. type: string
  190. format: key1:value1,key2:value2,key3:value3
  191. - name: group
  192. in: query
  193. description: The grouping method. If multiple collected values are to be grouped
  194. in order to return fewer points, this parameters defines the method
  195. of grouping. methods supported "min", "max", "average", "sum",
  196. "incremental-sum". "max" is actually calculated on the absolute
  197. value collected (so it works for both positive and negative
  198. dimensions to return the most extreme value in either direction).
  199. required: true
  200. allowEmptyValue: false
  201. schema:
  202. type: string
  203. enum:
  204. - min
  205. - max
  206. - average
  207. - median
  208. - stddev
  209. - sum
  210. - incremental-sum
  211. default: average
  212. - name: gtime
  213. in: query
  214. description: The grouping number of seconds. This is used in conjunction with
  215. group=average to change the units of metrics (ie when the data is
  216. per-second, setting gtime=60 will turn them to per-minute).
  217. required: false
  218. allowEmptyValue: false
  219. schema:
  220. type: number
  221. format: integer
  222. default: 0
  223. - name: timeout
  224. in: query
  225. description: Specify a timeout value in milliseconds after which the agent will
  226. abort the query and return a 503 error. A value of 0 indicates no timeout.
  227. required: false
  228. allowEmptyValue: false
  229. schema:
  230. type: number
  231. format: integer
  232. default: 0
  233. - name: format
  234. in: query
  235. description: The format of the data to be returned.
  236. required: true
  237. allowEmptyValue: false
  238. schema:
  239. type: string
  240. enum:
  241. - json
  242. - jsonp
  243. - csv
  244. - tsv
  245. - tsv-excel
  246. - ssv
  247. - ssvcomma
  248. - datatable
  249. - datasource
  250. - html
  251. - markdown
  252. - array
  253. - csvjsonarray
  254. default: json
  255. - name: options
  256. in: query
  257. description: Options that affect data generation.
  258. required: false
  259. allowEmptyValue: false
  260. schema:
  261. type: array
  262. items:
  263. type: string
  264. enum:
  265. - nonzero
  266. - flip
  267. - jsonwrap
  268. - min2max
  269. - seconds
  270. - milliseconds
  271. - abs
  272. - absolute
  273. - absolute-sum
  274. - null2zero
  275. - objectrows
  276. - google_json
  277. - percentage
  278. - unaligned
  279. - match-ids
  280. - match-names
  281. - showcustomvars
  282. - allow_past
  283. default:
  284. - seconds
  285. - jsonwrap
  286. - name: callback
  287. in: query
  288. description: For JSONP responses, the callback function name.
  289. required: false
  290. allowEmptyValue: true
  291. schema:
  292. type: string
  293. - name: filename
  294. in: query
  295. description: "Add Content-Disposition: attachment; filename= header to
  296. the response, that will instruct the browser to save the response
  297. with the given filename."
  298. required: false
  299. allowEmptyValue: true
  300. schema:
  301. type: string
  302. - name: tqx
  303. in: query
  304. description: "[Google Visualization
  305. API](https://developers.google.com/chart/interactive/docs/dev/imple\
  306. menting_data_source?hl=en) formatted parameter."
  307. required: false
  308. allowEmptyValue: true
  309. schema:
  310. type: string
  311. responses:
  312. "200":
  313. description: The call was successful. The response includes the data in the
  314. format requested. Swagger2.0 does not process the discriminator
  315. field to show polymorphism. The response will be one of the
  316. sub-types of the data-schema according to the chosen format, e.g.
  317. json -> data_json.
  318. content:
  319. application/json:
  320. schema:
  321. $ref: "#/components/schemas/data"
  322. "400":
  323. description: Bad request - the body will include a message stating what is wrong.
  324. "404":
  325. description: Chart or context is not found. The supplied chart or context will be reported.
  326. "500":
  327. description: Internal server error. This usually means the server is out of
  328. memory.
  329. /badge.svg:
  330. get:
  331. summary: Generate a badge in form of SVG image for a chart (or dimension)
  332. description: Successful responses are SVG images.
  333. parameters:
  334. - name: chart
  335. in: query
  336. description: The id of the chart as returned by the /charts call.
  337. required: true
  338. allowEmptyValue: false
  339. schema:
  340. type: string
  341. format: as returned by /charts
  342. default: system.cpu
  343. - name: alarm
  344. in: query
  345. description: The name of an alarm linked to the chart.
  346. required: false
  347. allowEmptyValue: true
  348. schema:
  349. type: string
  350. format: any text
  351. - name: dimension
  352. in: query
  353. description: Zero, one or more dimension ids, as returned by the /chart call.
  354. required: false
  355. allowEmptyValue: false
  356. schema:
  357. type: array
  358. items:
  359. type: string
  360. format: as returned by /charts
  361. - name: after
  362. in: query
  363. description: This parameter can either be an absolute timestamp specifying the
  364. starting point of the data to be returned, or a relative number of
  365. seconds, to the last collected timestamp. Netdata will assume it is
  366. a relative number if it is smaller than the duration of the round
  367. robin database for this chart. So, if the round robin database is
  368. 3600 seconds, any value from -3600 to 3600 will trigger relative
  369. arithmetics. Netdata will adapt this parameter to the boundaries of
  370. the round robin database.
  371. required: true
  372. allowEmptyValue: false
  373. schema:
  374. type: number
  375. format: integer
  376. default: -600
  377. - name: before
  378. in: query
  379. description: This parameter can either be an absolute timestamp specifying the
  380. ending point of the data to be returned, or a relative number of
  381. seconds, to the last collected timestamp. Netdata will assume it is
  382. a relative number if it is smaller than the duration of the round
  383. robin database for this chart. So, if the round robin database is
  384. 3600 seconds, any value from -3600 to 3600 will trigger relative
  385. arithmetics. Netdata will adapt this parameter to the boundaries of
  386. the round robin database.
  387. required: false
  388. schema:
  389. type: number
  390. format: integer
  391. default: 0
  392. - name: group
  393. in: query
  394. description: The grouping method. If multiple collected values are to be grouped
  395. in order to return fewer points, this parameters defines the method
  396. of grouping. methods are supported "min", "max", "average", "sum",
  397. "incremental-sum". "max" is actually calculated on the absolute
  398. value collected (so it works for both positive and negative
  399. dimensions to return the most extreme value in either direction).
  400. required: true
  401. allowEmptyValue: false
  402. schema:
  403. type: string
  404. enum:
  405. - min
  406. - max
  407. - average
  408. - median
  409. - stddev
  410. - sum
  411. - incremental-sum
  412. default: average
  413. - name: options
  414. in: query
  415. description: Options that affect data generation.
  416. required: false
  417. allowEmptyValue: true
  418. schema:
  419. type: array
  420. items:
  421. type: string
  422. enum:
  423. - abs
  424. - absolute
  425. - display-absolute
  426. - absolute-sum
  427. - null2zero
  428. - percentage
  429. - unaligned
  430. default:
  431. - absolute
  432. - name: label
  433. in: query
  434. description: A text to be used as the label.
  435. required: false
  436. allowEmptyValue: true
  437. schema:
  438. type: string
  439. format: any text
  440. - name: units
  441. in: query
  442. description: A text to be used as the units.
  443. required: false
  444. allowEmptyValue: true
  445. schema:
  446. type: string
  447. format: any text
  448. - name: label_color
  449. in: query
  450. description: A color to be used for the background of the label side(left side) of the badge. One of predefined colors or specific color in hex `RGB` or `RRGGBB` format (without preceding `#` character). If value wrong or not given default color will be used.
  451. required: false
  452. allowEmptyValue: true
  453. schema:
  454. oneOf:
  455. - type: string
  456. enum:
  457. - green
  458. - brightgreen
  459. - yellow
  460. - yellowgreen
  461. - orange
  462. - red
  463. - blue
  464. - grey
  465. - gray
  466. - lightgrey
  467. - lightgray
  468. - type: string
  469. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  470. - name: value_color
  471. in: query
  472. description: "A color to be used for the background of the value *(right)* part of badge. You can set
  473. multiple using a pipe with a condition each, like this:
  474. `color<value|color:null` The following operators are
  475. supported: >, <, >=, <=, =, :null (to check if no value exists). Each color can be specified in same manner as for `label_color` parameter.
  476. Currently only integers are supported as values."
  477. required: false
  478. allowEmptyValue: true
  479. schema:
  480. type: string
  481. format: any text
  482. - name: text_color_lbl
  483. in: query
  484. description: Font color for label *(left)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.
  485. required: false
  486. allowEmptyValue: true
  487. schema:
  488. oneOf:
  489. - type: string
  490. enum:
  491. - green
  492. - brightgreen
  493. - yellow
  494. - yellowgreen
  495. - orange
  496. - red
  497. - blue
  498. - grey
  499. - gray
  500. - lightgrey
  501. - lightgray
  502. - type: string
  503. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  504. - name: text_color_val
  505. in: query
  506. description: Font color for value *(right)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.
  507. required: false
  508. allowEmptyValue: true
  509. schema:
  510. oneOf:
  511. - type: string
  512. enum:
  513. - green
  514. - brightgreen
  515. - yellow
  516. - yellowgreen
  517. - orange
  518. - red
  519. - blue
  520. - grey
  521. - gray
  522. - lightgrey
  523. - lightgray
  524. - type: string
  525. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  526. - name: multiply
  527. in: query
  528. description: Multiply the value with this number for rendering it at the image
  529. (integer value required).
  530. required: false
  531. allowEmptyValue: true
  532. schema:
  533. type: number
  534. format: integer
  535. - name: divide
  536. in: query
  537. description: Divide the value with this number for rendering it at the image
  538. (integer value required).
  539. required: false
  540. allowEmptyValue: true
  541. schema:
  542. type: number
  543. format: integer
  544. - name: scale
  545. in: query
  546. description: Set the scale of the badge (greater or equal to 100).
  547. required: false
  548. allowEmptyValue: true
  549. schema:
  550. type: number
  551. format: integer
  552. - name: fixed_width_lbl
  553. in: query
  554. description: This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's left side *(label/name)*. You must set this parameter together with `fixed_width_val` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.
  555. required: false
  556. allowEmptyValue: false
  557. schema:
  558. type: number
  559. format: integer
  560. - name: fixed_width_val
  561. in: query
  562. description: This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's right side *(value)*. You must set this parameter together with `fixed_width_lbl` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.
  563. required: false
  564. allowEmptyValue: false
  565. schema:
  566. type: number
  567. format: integer
  568. responses:
  569. "200":
  570. description: The call was successful. The response should be an SVG image.
  571. "400":
  572. description: Bad request - the body will include a message stating what is wrong.
  573. "404":
  574. description: No chart with the given id is found.
  575. "500":
  576. description: Internal server error. This usually means the server is out of
  577. memory.
  578. /allmetrics:
  579. get:
  580. summary: Get a value of all the metrics maintained by netdata
  581. description: The allmetrics endpoint returns the latest value of all charts and
  582. dimensions stored in the netdata server.
  583. parameters:
  584. - name: format
  585. in: query
  586. description: The format of the response to be returned.
  587. required: true
  588. schema:
  589. type: string
  590. enum:
  591. - shell
  592. - prometheus
  593. - prometheus_all_hosts
  594. - json
  595. default: shell
  596. - name: variables
  597. in: query
  598. description: When enabled, netdata will expose various system
  599. configuration metrics.
  600. required: false
  601. schema:
  602. type: string
  603. enum:
  604. - yes
  605. - no
  606. default: no
  607. - name: help
  608. in: query
  609. description: Enable or disable HELP lines in prometheus output.
  610. required: false
  611. schema:
  612. type: string
  613. enum:
  614. - yes
  615. - no
  616. default: no
  617. - name: types
  618. in: query
  619. description: Enable or disable TYPE lines in prometheus output.
  620. required: false
  621. schema:
  622. type: string
  623. enum:
  624. - yes
  625. - no
  626. default: no
  627. - name: timestamps
  628. in: query
  629. description: Enable or disable timestamps in prometheus output.
  630. required: false
  631. schema:
  632. type: string
  633. enum:
  634. - yes
  635. - no
  636. default: yes
  637. - name: names
  638. in: query
  639. description: When enabled netdata will report dimension names. When disabled
  640. netdata will report dimension IDs. The default is controlled in
  641. netdata.conf.
  642. required: false
  643. schema:
  644. type: string
  645. enum:
  646. - yes
  647. - no
  648. default: yes
  649. - name: oldunits
  650. in: query
  651. description: When enabled, netdata will show metric names for the default
  652. source=average as they appeared before 1.12, by using the legacy
  653. unit naming conventions.
  654. required: false
  655. schema:
  656. type: string
  657. enum:
  658. - yes
  659. - no
  660. default: yes
  661. - name: hideunits
  662. in: query
  663. description: When enabled, netdata will not include the units in the metric
  664. names, for the default source=average.
  665. required: false
  666. schema:
  667. type: string
  668. enum:
  669. - yes
  670. - no
  671. default: yes
  672. - name: server
  673. in: query
  674. description: Set a distinct name of the client querying prometheus metrics.
  675. Netdata will use the client IP if this is not set.
  676. required: false
  677. schema:
  678. type: string
  679. format: any text
  680. - name: prefix
  681. in: query
  682. description: Prefix all prometheus metrics with this string.
  683. required: false
  684. schema:
  685. type: string
  686. format: any text
  687. - name: data
  688. in: query
  689. description: Select the prometheus response data source. There is a setting in
  690. netdata.conf for the default.
  691. required: false
  692. schema:
  693. type: string
  694. enum:
  695. - as-collected
  696. - average
  697. - sum
  698. default: average
  699. responses:
  700. "200":
  701. description: All the metrics returned in the format requested.
  702. "400":
  703. description: The format requested is not supported.
  704. /alarms:
  705. get:
  706. summary: Get a list of active or raised alarms on the server
  707. description: The alarms endpoint returns the list of all raised or enabled alarms on
  708. the netdata server. Called without any parameters, the raised alarms in
  709. state WARNING or CRITICAL are returned. By passing "?all", all the
  710. enabled alarms are returned.
  711. parameters:
  712. - name: all
  713. in: query
  714. description: If passed, all enabled alarms are returned.
  715. required: false
  716. allowEmptyValue: true
  717. schema:
  718. type: boolean
  719. - name: active
  720. in: query
  721. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  722. required: false
  723. allowEmptyValue: true
  724. schema:
  725. type: boolean
  726. responses:
  727. "200":
  728. description: An object containing general info and a linked list of alarms.
  729. content:
  730. application/json:
  731. schema:
  732. $ref: "#/components/schemas/alarms"
  733. /alarms_values:
  734. get:
  735. summary: Get a list of active or raised alarms on the server
  736. description: The alarms_values endpoint returns the list of all raised or enabled alarms on
  737. the netdata server. Called without any parameters, the raised alarms in
  738. state WARNING or CRITICAL are returned. By passing "?all", all the
  739. enabled alarms are returned.
  740. This option output differs from `/alarms` in the number of variables delivered. This endpoint gives
  741. to user `id`, `value` and alarm `status`.
  742. parameters:
  743. - name: all
  744. in: query
  745. description: If passed, all enabled alarms are returned.
  746. required: false
  747. allowEmptyValue: true
  748. schema:
  749. type: boolean
  750. - name: active
  751. in: query
  752. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  753. required: false
  754. allowEmptyValue: true
  755. schema:
  756. type: boolean
  757. responses:
  758. "200":
  759. description: An object containing general info and a linked list of alarms.
  760. content:
  761. application/json:
  762. schema:
  763. $ref: "#/components/schemas/alarms_values"
  764. /alarm_log:
  765. get:
  766. summary: Retrieves the entries of the alarm log
  767. description: Returns an array of alarm_log entries, with historical information on
  768. raised and cleared alarms.
  769. parameters:
  770. - name: after
  771. in: query
  772. description: Passing the parameter after=UNIQUEID returns all the events in the
  773. alarm log that occurred after UNIQUEID. An automated series of calls
  774. would call the interface once without after=, store the last
  775. UNIQUEID of the returned set, and give it back to get incrementally
  776. the next events.
  777. required: false
  778. schema:
  779. type: integer
  780. responses:
  781. "200":
  782. description: An array of alarm log entries.
  783. content:
  784. application/json:
  785. schema:
  786. type: array
  787. items:
  788. $ref: "#/components/schemas/alarm_log_entry"
  789. /alarm_count:
  790. get:
  791. summary: Get an overall status of the chart
  792. description: Checks multiple charts with the same context and counts number of alarms
  793. with given status.
  794. parameters:
  795. - in: query
  796. name: context
  797. description: Specify context which should be checked.
  798. required: false
  799. allowEmptyValue: true
  800. schema:
  801. type: array
  802. items:
  803. type: string
  804. default:
  805. - system.cpu
  806. - in: query
  807. name: status
  808. description: Specify alarm status to count.
  809. required: false
  810. allowEmptyValue: true
  811. schema:
  812. type: string
  813. enum:
  814. - REMOVED
  815. - UNDEFINED
  816. - UNINITIALIZED
  817. - CLEAR
  818. - RAISED
  819. - WARNING
  820. - CRITICAL
  821. default: RAISED
  822. responses:
  823. "200":
  824. description: An object containing a count of alarms with given status for given
  825. contexts.
  826. content:
  827. application/json:
  828. schema:
  829. type: array
  830. items:
  831. type: number
  832. "500":
  833. description: Internal server error. This usually means the server is out of
  834. memory.
  835. /manage/health:
  836. get:
  837. summary: Accesses the health management API to control health checks and
  838. notifications at runtime.
  839. description: Available from Netdata v1.12 and above, protected via bearer
  840. authorization. Especially useful for maintenance periods, the API allows
  841. you to disable health checks completely, silence alarm notifications, or
  842. Disable/Silence specific alarms that match selectors on alarm/template
  843. name, chart, context, host and family. For the simple disable/silence
  844. all scenarios, only the cmd parameter is required. The other parameters
  845. are used to define alarm selectors. For more information and examples,
  846. refer to the netdata documentation.
  847. parameters:
  848. - name: cmd
  849. in: query
  850. description: "DISABLE ALL: No alarm criteria are evaluated, nothing is written in
  851. the alarm log. SILENCE ALL: No notifications are sent. RESET: Return
  852. to the default state. DISABLE/SILENCE: Set the mode to be used for
  853. the alarms matching the criteria of the alarm selectors. LIST: Show
  854. active configuration."
  855. required: false
  856. schema:
  857. type: string
  858. enum:
  859. - DISABLE ALL
  860. - SILENCE ALL
  861. - DISABLE
  862. - SILENCE
  863. - RESET
  864. - LIST
  865. - name: alarm
  866. in: query
  867. description: The expression provided will match both `alarm` and `template` names.
  868. schema:
  869. type: string
  870. - name: chart
  871. in: query
  872. description: Chart ids/names, as shown on the dashboard. These will match the
  873. `on` entry of a configured `alarm`.
  874. schema:
  875. type: string
  876. - name: context
  877. in: query
  878. description: Chart context, as shown on the dashboard. These will match the `on`
  879. entry of a configured `template`.
  880. schema:
  881. type: string
  882. - name: hosts
  883. in: query
  884. description: The hostnames that will need to match.
  885. schema:
  886. type: string
  887. - name: families
  888. in: query
  889. description: The alarm families.
  890. schema:
  891. type: string
  892. responses:
  893. "200":
  894. description: A plain text response based on the result of the command.
  895. "403":
  896. description: Bearer authentication error.
  897. /aclk:
  898. get:
  899. summary: Get information about current ACLK state
  900. description: aclk endpoint returns detailed information
  901. about current state of ACLK (Agent to Cloud communication).
  902. responses:
  903. "200":
  904. description: JSON object with ACLK information.
  905. content:
  906. application/json:
  907. schema:
  908. $ref: "#/components/schemas/aclk_state"
  909. servers:
  910. - url: https://registry.my-netdata.io/api/v1
  911. - url: http://registry.my-netdata.io/api/v1
  912. components:
  913. schemas:
  914. info:
  915. type: object
  916. properties:
  917. version:
  918. type: string
  919. description: netdata version of the server.
  920. example: 1.11.1_rolling
  921. uid:
  922. type: string
  923. description: netdata unique id of the server.
  924. example: 24e9fe3c-f2ac-11e8-bafc-0242ac110002
  925. mirrored_hosts:
  926. type: array
  927. description: List of hosts mirrored of the server (include itself).
  928. items:
  929. type: string
  930. example:
  931. - host1.example.com
  932. - host2.example.com
  933. mirrored_hosts_status:
  934. type: array
  935. description: >-
  936. List of details of hosts mirrored to this served (including self).
  937. Indexes correspond to indexes in "mirrored_hosts".
  938. items:
  939. type: object
  940. description: Host data
  941. properties:
  942. guid:
  943. type: string
  944. format: uuid
  945. nullable: false
  946. description: Host unique GUID from `netdata.public.unique.id`.
  947. example: 245e4bff-3b34-47c1-a6e5-5c535a9abfb2
  948. reachable:
  949. type: boolean
  950. nullable: false
  951. description: Current state of streaming. Always true for localhost/self.
  952. claim_id:
  953. type: string
  954. format: uuid
  955. nullable: true
  956. description: >-
  957. Cloud GUID/identifier in case the host is claimed.
  958. If child status unknown or unclaimed this field is set to `null`
  959. example: c3b2a66a-3052-498c-ac52-7fe9e8cccb0c
  960. os_name:
  961. type: string
  962. description: Operating System Name.
  963. example: Manjaro Linux
  964. os_id:
  965. type: string
  966. description: Operating System ID.
  967. example: manjaro
  968. os_id_like:
  969. type: string
  970. description: Known OS similar to this OS.
  971. example: arch
  972. os_version:
  973. type: string
  974. description: Operating System Version.
  975. example: 18.0.4
  976. os_version_id:
  977. type: string
  978. description: Operating System Version ID.
  979. example: unknown
  980. os_detection:
  981. type: string
  982. description: OS parameters detection method.
  983. example: Mixed
  984. kernel_name:
  985. type: string
  986. description: Kernel Name.
  987. example: Linux
  988. kernel_version:
  989. type: string
  990. description: Kernel Version.
  991. example: 4.19.32-1-MANJARO
  992. is_k8s_node:
  993. type: boolean
  994. description: Netdata is running on a K8s node.
  995. example: false
  996. architecture:
  997. type: string
  998. description: Kernel architecture.
  999. example: x86_64
  1000. virtualization:
  1001. type: string
  1002. description: Virtualization Type.
  1003. example: kvm
  1004. virt_detection:
  1005. type: string
  1006. description: Virtualization detection method.
  1007. example: systemd-detect-virt
  1008. container:
  1009. type: string
  1010. description: Container technology.
  1011. example: docker
  1012. container_detection:
  1013. type: string
  1014. description: Container technology detection method.
  1015. example: dockerenv
  1016. stream_compression:
  1017. type: boolean
  1018. description: Stream transmission compression method.
  1019. example: true
  1020. labels:
  1021. type: object
  1022. description: List of host labels.
  1023. properties:
  1024. app:
  1025. type: string
  1026. description: Host label.
  1027. example: netdata
  1028. collectors:
  1029. type: array
  1030. items:
  1031. type: object
  1032. description: Array of collector plugins and modules.
  1033. properties:
  1034. plugin:
  1035. type: string
  1036. description: Collector plugin.
  1037. example: python.d.plugin
  1038. module:
  1039. type: string
  1040. description: Module of the collector plugin.
  1041. example: dockerd
  1042. alarms:
  1043. type: object
  1044. description: Number of alarms in the server.
  1045. properties:
  1046. normal:
  1047. type: integer
  1048. description: Number of alarms in normal state.
  1049. warning:
  1050. type: integer
  1051. description: Number of alarms in warning state.
  1052. critical:
  1053. type: integer
  1054. description: Number of alarms in critical state.
  1055. chart_summary:
  1056. type: object
  1057. properties:
  1058. hostname:
  1059. type: string
  1060. description: The hostname of the netdata server.
  1061. version:
  1062. type: string
  1063. description: netdata version of the server.
  1064. release_channel:
  1065. type: string
  1066. description: The release channel of the build on the server.
  1067. example: nightly
  1068. timezone:
  1069. type: string
  1070. description: The current timezone on the server.
  1071. os:
  1072. type: string
  1073. description: The netdata server host operating system.
  1074. enum:
  1075. - macos
  1076. - linux
  1077. - freebsd
  1078. history:
  1079. type: number
  1080. description: The duration, in seconds, of the round robin database maintained by
  1081. netdata.
  1082. memory_mode:
  1083. type: string
  1084. description: The name of the database memory mode on the server.
  1085. update_every:
  1086. type: number
  1087. description: The default update frequency of the netdata server. All charts have
  1088. an update frequency equal or bigger than this.
  1089. charts:
  1090. type: object
  1091. description: An object containing all the chart objects available at the netdata
  1092. server. This is used as an indexed array. The key of each chart
  1093. object is the id of the chart.
  1094. additionalProperties:
  1095. $ref: "#/components/schemas/chart"
  1096. charts_count:
  1097. type: number
  1098. description: The number of charts.
  1099. dimensions_count:
  1100. type: number
  1101. description: The total number of dimensions.
  1102. alarms_count:
  1103. type: number
  1104. description: The number of alarms.
  1105. rrd_memory_bytes:
  1106. type: number
  1107. description: The size of the round robin database in bytes.
  1108. chart:
  1109. type: object
  1110. properties:
  1111. id:
  1112. type: string
  1113. description: The unique id of the chart.
  1114. name:
  1115. type: string
  1116. description: The name of the chart.
  1117. type:
  1118. type: string
  1119. description: The type of the chart. Types are not handled by netdata. You can use
  1120. this field for anything you like.
  1121. family:
  1122. type: string
  1123. description: The family of the chart. Families are not handled by netdata. You
  1124. can use this field for anything you like.
  1125. title:
  1126. type: string
  1127. description: The title of the chart.
  1128. priority:
  1129. type: number
  1130. description: The relative priority of the chart. Netdata does not care about
  1131. priorities. This is just an indication of importance for the chart
  1132. viewers to sort charts of higher priority (lower number) closer to
  1133. the top. Priority sorting should only be used among charts of the
  1134. same type or family.
  1135. enabled:
  1136. type: boolean
  1137. description: True when the chart is enabled. Disabled charts do not currently
  1138. collect values, but they may have historical values available.
  1139. units:
  1140. type: string
  1141. description: The unit of measurement for the values of all dimensions of the
  1142. chart.
  1143. data_url:
  1144. type: string
  1145. description: The absolute path to get data values for this chart. You are
  1146. expected to use this path as the base when constructing the URL to
  1147. fetch data values for this chart.
  1148. chart_type:
  1149. type: string
  1150. description: The chart type.
  1151. enum:
  1152. - line
  1153. - area
  1154. - stacked
  1155. duration:
  1156. type: number
  1157. description: The duration, in seconds, of the round robin database maintained by
  1158. netdata.
  1159. first_entry:
  1160. type: number
  1161. description: The UNIX timestamp of the first entry (the oldest) in the round
  1162. robin database.
  1163. last_entry:
  1164. type: number
  1165. description: The UNIX timestamp of the latest entry in the round robin database.
  1166. update_every:
  1167. type: number
  1168. description: The update frequency of this chart, in seconds. One value every this
  1169. amount of time is kept in the round robin database.
  1170. dimensions:
  1171. type: object
  1172. description: "An object containing all the chart dimensions available for the
  1173. chart. This is used as an indexed array. For each pair in the
  1174. dictionary: the key is the id of the dimension and the value is a
  1175. dictionary containing the name."
  1176. additionalProperties:
  1177. type: object
  1178. properties:
  1179. name:
  1180. type: string
  1181. description: The name of the dimension
  1182. chart_variables:
  1183. type: object
  1184. additionalProperties:
  1185. $ref: "#/components/schemas/chart_variables"
  1186. green:
  1187. type: number
  1188. nullable: true
  1189. description: Chart health green threshold.
  1190. red:
  1191. type: number
  1192. nullable: true
  1193. description: Chart health red threshold.
  1194. alarm_variables:
  1195. type: object
  1196. properties:
  1197. chart:
  1198. type: string
  1199. description: The unique id of the chart.
  1200. chart_name:
  1201. type: string
  1202. description: The name of the chart.
  1203. cnart_context:
  1204. type: string
  1205. description: The context of the chart. It is shared across multiple monitored
  1206. software or hardware instances and used in alarm templates.
  1207. family:
  1208. type: string
  1209. description: The family of the chart.
  1210. host:
  1211. type: string
  1212. description: The host containing the chart.
  1213. chart_variables:
  1214. type: object
  1215. additionalProperties:
  1216. $ref: "#/components/schemas/chart_variables"
  1217. family_variables:
  1218. type: object
  1219. properties:
  1220. varname1:
  1221. type: number
  1222. format: float
  1223. varname2:
  1224. type: number
  1225. format: float
  1226. host_variables:
  1227. type: object
  1228. properties:
  1229. varname1:
  1230. type: number
  1231. format: float
  1232. varname2:
  1233. type: number
  1234. format: float
  1235. chart_variables:
  1236. type: object
  1237. properties:
  1238. varname1:
  1239. type: number
  1240. format: float
  1241. varname2:
  1242. type: number
  1243. format: float
  1244. data:
  1245. type: object
  1246. discriminator:
  1247. propertyName: format
  1248. description: Response will contain the appropriate subtype, e.g. data_json depending
  1249. on the requested format.
  1250. properties:
  1251. api:
  1252. type: number
  1253. description: The API version this conforms to, currently 1.
  1254. id:
  1255. type: string
  1256. description: The unique id of the chart.
  1257. name:
  1258. type: string
  1259. description: The name of the chart.
  1260. update_every:
  1261. type: number
  1262. description: The update frequency of this chart, in seconds. One value every this
  1263. amount of time is kept in the round robin database (independently of
  1264. the current view).
  1265. view_update_every:
  1266. type: number
  1267. description: The current view appropriate update frequency of this chart, in
  1268. seconds. There is no point to request chart refreshes, using the
  1269. same settings, more frequently than this.
  1270. first_entry:
  1271. type: number
  1272. description: The UNIX timestamp of the first entry (the oldest) in the round
  1273. robin database (independently of the current view).
  1274. last_entry:
  1275. type: number
  1276. description: The UNIX timestamp of the latest entry in the round robin database
  1277. (independently of the current view).
  1278. after:
  1279. type: number
  1280. description: The UNIX timestamp of the first entry (the oldest) returned in this
  1281. response.
  1282. before:
  1283. type: number
  1284. description: The UNIX timestamp of the latest entry returned in this response.
  1285. min:
  1286. type: number
  1287. description: The minimum value returned in the current view. This can be used to
  1288. size the y-series of the chart.
  1289. max:
  1290. type: number
  1291. description: The maximum value returned in the current view. This can be used to
  1292. size the y-series of the chart.
  1293. dimension_names:
  1294. description: The dimension names of the chart as returned in the current view.
  1295. type: array
  1296. items:
  1297. type: string
  1298. dimension_ids:
  1299. description: The dimension IDs of the chart as returned in the current view.
  1300. type: array
  1301. items:
  1302. type: string
  1303. latest_values:
  1304. description: The latest values collected for the chart (independently of the
  1305. current view).
  1306. type: array
  1307. items:
  1308. type: string
  1309. view_latest_values:
  1310. description: The latest values returned with this response.
  1311. type: array
  1312. items:
  1313. type: string
  1314. dimensions:
  1315. type: number
  1316. description: The number of dimensions returned.
  1317. points:
  1318. type: number
  1319. description: The number of rows / points returned.
  1320. format:
  1321. type: string
  1322. description: The format of the result returned.
  1323. chart_variables:
  1324. type: object
  1325. additionalProperties:
  1326. $ref: "#/components/schemas/chart_variables"
  1327. data_json:
  1328. description: Data response in json format.
  1329. allOf:
  1330. - $ref: "#/components/schemas/data"
  1331. - properties:
  1332. result:
  1333. type: object
  1334. properties:
  1335. labels:
  1336. description: The dimensions retrieved from the chart.
  1337. type: array
  1338. items:
  1339. type: string
  1340. data:
  1341. description: The data requested, one element per sample with each element
  1342. containing the values of the dimensions described in the
  1343. labels value.
  1344. type: array
  1345. items:
  1346. type: number
  1347. description: The result requested, in the format requested.
  1348. data_flat:
  1349. description: Data response in csv / tsv / tsv-excel / ssv / ssv-comma / markdown /
  1350. html formats.
  1351. allOf:
  1352. - $ref: "#/components/schemas/data"
  1353. - properties:
  1354. result:
  1355. type: string
  1356. data_array:
  1357. description: Data response in array format.
  1358. allOf:
  1359. - $ref: "#/components/schemas/data"
  1360. - properties:
  1361. result:
  1362. type: array
  1363. items:
  1364. type: number
  1365. data_csvjsonarray:
  1366. description: Data response in csvjsonarray format.
  1367. allOf:
  1368. - $ref: "#/components/schemas/data"
  1369. - properties:
  1370. result:
  1371. description: The first inner array contains strings showing the labels of
  1372. each column, each subsequent array contains the values for each
  1373. point in time.
  1374. type: array
  1375. items:
  1376. type: array
  1377. items: {}
  1378. data_datatable:
  1379. description: Data response in datatable / datasource formats (suitable for Google
  1380. Charts).
  1381. allOf:
  1382. - $ref: "#/components/schemas/data"
  1383. - properties:
  1384. result:
  1385. type: object
  1386. properties:
  1387. cols:
  1388. type: array
  1389. items:
  1390. type: object
  1391. properties:
  1392. id:
  1393. description: Always empty - for future use.
  1394. label:
  1395. description: The dimension returned from the chart.
  1396. pattern:
  1397. description: Always empty - for future use.
  1398. type:
  1399. description: The type of data in the column / chart-dimension.
  1400. p:
  1401. description: Contains any annotations for the column.
  1402. required:
  1403. - id
  1404. - label
  1405. - pattern
  1406. - type
  1407. rows:
  1408. type: array
  1409. items:
  1410. type: object
  1411. properties:
  1412. c:
  1413. type: array
  1414. items:
  1415. properties:
  1416. v:
  1417. description: "Each value in the row is represented by an
  1418. object named `c` with five v fields: data, null,
  1419. null, 0, the value. This format is fixed by the
  1420. Google Charts API."
  1421. alarms:
  1422. type: object
  1423. properties:
  1424. hostname:
  1425. type: string
  1426. latest_alarm_log_unique_id:
  1427. type: integer
  1428. format: int32
  1429. status:
  1430. type: boolean
  1431. now:
  1432. type: integer
  1433. format: int32
  1434. alarms:
  1435. type: object
  1436. properties:
  1437. chart-name.alarm-name:
  1438. type: object
  1439. properties:
  1440. id:
  1441. type: integer
  1442. format: int32
  1443. name:
  1444. type: string
  1445. description: Full alarm name.
  1446. chart:
  1447. type: string
  1448. family:
  1449. type: string
  1450. active:
  1451. type: boolean
  1452. description: Will be false only if the alarm is disabled in the
  1453. configuration.
  1454. disabled:
  1455. type: boolean
  1456. description: Whether the health check for this alarm has been disabled
  1457. via a health command API DISABLE command.
  1458. silenced:
  1459. type: boolean
  1460. description: Whether notifications for this alarm have been silenced via
  1461. a health command API SILENCE command.
  1462. exec:
  1463. type: string
  1464. recipient:
  1465. type: string
  1466. source:
  1467. type: string
  1468. units:
  1469. type: string
  1470. info:
  1471. type: string
  1472. status:
  1473. type: string
  1474. last_status_change:
  1475. type: integer
  1476. format: int32
  1477. last_updated:
  1478. type: integer
  1479. format: int32
  1480. next_update:
  1481. type: integer
  1482. format: int32
  1483. update_every:
  1484. type: integer
  1485. format: int32
  1486. delay_up_duration:
  1487. type: integer
  1488. format: int32
  1489. delay_down_duration:
  1490. type: integer
  1491. format: int32
  1492. delay_max_duration:
  1493. type: integer
  1494. format: int32
  1495. delay_multiplier:
  1496. type: integer
  1497. format: int32
  1498. delay:
  1499. type: integer
  1500. format: int32
  1501. delay_up_to_timestamp:
  1502. type: integer
  1503. format: int32
  1504. value_string:
  1505. type: string
  1506. no_clear_notification:
  1507. type: boolean
  1508. lookup_dimensions:
  1509. type: string
  1510. db_after:
  1511. type: integer
  1512. format: int32
  1513. db_before:
  1514. type: integer
  1515. format: int32
  1516. lookup_method:
  1517. type: string
  1518. lookup_after:
  1519. type: integer
  1520. format: int32
  1521. lookup_before:
  1522. type: integer
  1523. format: int32
  1524. lookup_options:
  1525. type: string
  1526. calc:
  1527. type: string
  1528. calc_parsed:
  1529. type: string
  1530. warn:
  1531. type: string
  1532. warn_parsed:
  1533. type: string
  1534. crit:
  1535. type: string
  1536. crit_parsed:
  1537. type: string
  1538. warn_repeat_every:
  1539. type: integer
  1540. format: int32
  1541. crit_repeat_every:
  1542. type: integer
  1543. format: int32
  1544. green:
  1545. type: string
  1546. format: nullable
  1547. red:
  1548. type: string
  1549. format: nullable
  1550. value:
  1551. type: number
  1552. alarm_log_entry:
  1553. type: object
  1554. properties:
  1555. hostname:
  1556. type: string
  1557. unique_id:
  1558. type: integer
  1559. format: int32
  1560. alarm_id:
  1561. type: integer
  1562. format: int32
  1563. alarm_event_id:
  1564. type: integer
  1565. format: int32
  1566. name:
  1567. type: string
  1568. chart:
  1569. type: string
  1570. family:
  1571. type: string
  1572. processed:
  1573. type: boolean
  1574. updated:
  1575. type: boolean
  1576. exec_run:
  1577. type: integer
  1578. format: int32
  1579. exec_failed:
  1580. type: boolean
  1581. exec:
  1582. type: string
  1583. recipient:
  1584. type: string
  1585. exec_code:
  1586. type: integer
  1587. format: int32
  1588. source:
  1589. type: string
  1590. units:
  1591. type: string
  1592. when:
  1593. type: integer
  1594. format: int32
  1595. duration:
  1596. type: integer
  1597. format: int32
  1598. non_clear_duration:
  1599. type: integer
  1600. format: int32
  1601. status:
  1602. type: string
  1603. old_status:
  1604. type: string
  1605. delay:
  1606. type: integer
  1607. format: int32
  1608. delay_up_to_timestamp:
  1609. type: integer
  1610. format: int32
  1611. updated_by_id:
  1612. type: integer
  1613. format: int32
  1614. updates_id:
  1615. type: integer
  1616. format: int32
  1617. value_string:
  1618. type: string
  1619. old_value_string:
  1620. type: string
  1621. silenced:
  1622. type: string
  1623. info:
  1624. type: string
  1625. value:
  1626. type: number
  1627. nullable: true
  1628. old_value:
  1629. type: number
  1630. nullable: true
  1631. alarms_values:
  1632. type: object
  1633. properties:
  1634. hostname:
  1635. type: string
  1636. alarms:
  1637. type: object
  1638. description: HashMap with keys being alarm names
  1639. additionalProperties:
  1640. type: object
  1641. properties:
  1642. id:
  1643. type: integer
  1644. value:
  1645. type: integer
  1646. status:
  1647. type: string
  1648. enum:
  1649. - REMOVED
  1650. - UNDEFINED
  1651. - UNINITIALIZED
  1652. - CLEAR
  1653. - RAISED
  1654. - WARNING
  1655. - CRITICAL
  1656. - UNKNOWN
  1657. aclk_state:
  1658. type: object
  1659. properties:
  1660. aclk-available:
  1661. type: string
  1662. description: Describes whether this agent is capable of connection to the Cloud.
  1663. False means agent has been built without ACLK component either on purpose (user choice) or due to missing dependency.
  1664. aclk-version:
  1665. type: integer
  1666. description: Describes which ACLK version is currently used.
  1667. protocols-supported:
  1668. type: array
  1669. description: List of supported protocols for communication with Cloud.
  1670. items:
  1671. type: string
  1672. agent-claimed:
  1673. type: boolean
  1674. description: Informs whether this agent has been added to a space in the cloud (User has to perform claiming).
  1675. If false (user didn't perform claiming) agent will never attempt any cloud connection.
  1676. claimed_id:
  1677. type: string
  1678. format: uuid
  1679. description: Unique ID this agent uses to identify when connecting to cloud
  1680. online:
  1681. type: boolean
  1682. description: Informs if this agent was connected to the cloud at the time this request has been processed.
  1683. used-cloud-protocol:
  1684. type: string
  1685. description: Informs which protocol is used to communicate with cloud
  1686. enum:
  1687. - Old
  1688. - New