netdata-swagger.yaml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698
  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: filter
  597. in: query
  598. description: Allows to filter charts out using simple patterns.
  599. required: false
  600. schema:
  601. type: string
  602. format: any text
  603. - name: variables
  604. in: query
  605. description: When enabled, netdata will expose various system
  606. configuration metrics.
  607. required: false
  608. schema:
  609. type: string
  610. enum:
  611. - yes
  612. - no
  613. default: no
  614. - name: help
  615. in: query
  616. description: Enable or disable HELP lines in prometheus output.
  617. required: false
  618. schema:
  619. type: string
  620. enum:
  621. - yes
  622. - no
  623. default: no
  624. - name: types
  625. in: query
  626. description: Enable or disable TYPE lines in prometheus output.
  627. required: false
  628. schema:
  629. type: string
  630. enum:
  631. - yes
  632. - no
  633. default: no
  634. - name: timestamps
  635. in: query
  636. description: Enable or disable timestamps in prometheus output.
  637. required: false
  638. schema:
  639. type: string
  640. enum:
  641. - yes
  642. - no
  643. default: yes
  644. - name: names
  645. in: query
  646. description: When enabled netdata will report dimension names. When disabled
  647. netdata will report dimension IDs. The default is controlled in
  648. netdata.conf.
  649. required: false
  650. schema:
  651. type: string
  652. enum:
  653. - yes
  654. - no
  655. default: yes
  656. - name: oldunits
  657. in: query
  658. description: When enabled, netdata will show metric names for the default
  659. source=average as they appeared before 1.12, by using the legacy
  660. unit naming conventions.
  661. required: false
  662. schema:
  663. type: string
  664. enum:
  665. - yes
  666. - no
  667. default: yes
  668. - name: hideunits
  669. in: query
  670. description: When enabled, netdata will not include the units in the metric
  671. names, for the default source=average.
  672. required: false
  673. schema:
  674. type: string
  675. enum:
  676. - yes
  677. - no
  678. default: yes
  679. - name: server
  680. in: query
  681. description: Set a distinct name of the client querying prometheus metrics.
  682. Netdata will use the client IP if this is not set.
  683. required: false
  684. schema:
  685. type: string
  686. format: any text
  687. - name: prefix
  688. in: query
  689. description: Prefix all prometheus metrics with this string.
  690. required: false
  691. schema:
  692. type: string
  693. format: any text
  694. - name: data
  695. in: query
  696. description: Select the prometheus response data source. There is a setting in
  697. netdata.conf for the default.
  698. required: false
  699. schema:
  700. type: string
  701. enum:
  702. - as-collected
  703. - average
  704. - sum
  705. default: average
  706. responses:
  707. "200":
  708. description: All the metrics returned in the format requested.
  709. "400":
  710. description: The format requested is not supported.
  711. /alarms:
  712. get:
  713. summary: Get a list of active or raised alarms on the server
  714. description: The alarms endpoint returns the list of all raised or enabled alarms on
  715. the netdata server. Called without any parameters, the raised alarms in
  716. state WARNING or CRITICAL are returned. By passing "?all", all the
  717. enabled alarms are returned.
  718. parameters:
  719. - name: all
  720. in: query
  721. description: If passed, all enabled alarms are returned.
  722. required: false
  723. allowEmptyValue: true
  724. schema:
  725. type: boolean
  726. - name: active
  727. in: query
  728. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  729. required: false
  730. allowEmptyValue: true
  731. schema:
  732. type: boolean
  733. responses:
  734. "200":
  735. description: An object containing general info and a linked list of alarms.
  736. content:
  737. application/json:
  738. schema:
  739. $ref: "#/components/schemas/alarms"
  740. /alarms_values:
  741. get:
  742. summary: Get a list of active or raised alarms on the server
  743. description: The alarms_values endpoint returns the list of all raised or enabled alarms on
  744. the netdata server. Called without any parameters, the raised alarms in
  745. state WARNING or CRITICAL are returned. By passing "?all", all the
  746. enabled alarms are returned.
  747. This option output differs from `/alarms` in the number of variables delivered. This endpoint gives
  748. to user `id`, `value`, `last_updated` time, and alarm `status`.
  749. parameters:
  750. - name: all
  751. in: query
  752. description: If passed, all enabled alarms are returned.
  753. required: false
  754. allowEmptyValue: true
  755. schema:
  756. type: boolean
  757. - name: active
  758. in: query
  759. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  760. required: false
  761. allowEmptyValue: true
  762. schema:
  763. type: boolean
  764. responses:
  765. "200":
  766. description: An object containing general info and a linked list of alarms.
  767. content:
  768. application/json:
  769. schema:
  770. $ref: "#/components/schemas/alarms_values"
  771. /alarm_log:
  772. get:
  773. summary: Retrieves the entries of the alarm log
  774. description: Returns an array of alarm_log entries, with historical information on
  775. raised and cleared alarms.
  776. parameters:
  777. - name: after
  778. in: query
  779. description: Passing the parameter after=UNIQUEID returns all the events in the
  780. alarm log that occurred after UNIQUEID. An automated series of calls
  781. would call the interface once without after=, store the last
  782. UNIQUEID of the returned set, and give it back to get incrementally
  783. the next events.
  784. required: false
  785. schema:
  786. type: integer
  787. responses:
  788. "200":
  789. description: An array of alarm log entries.
  790. content:
  791. application/json:
  792. schema:
  793. type: array
  794. items:
  795. $ref: "#/components/schemas/alarm_log_entry"
  796. /alarm_count:
  797. get:
  798. summary: Get an overall status of the chart
  799. description: Checks multiple charts with the same context and counts number of alarms
  800. with given status.
  801. parameters:
  802. - in: query
  803. name: context
  804. description: Specify context which should be checked.
  805. required: false
  806. allowEmptyValue: true
  807. schema:
  808. type: array
  809. items:
  810. type: string
  811. default:
  812. - system.cpu
  813. - in: query
  814. name: status
  815. description: Specify alarm status to count.
  816. required: false
  817. allowEmptyValue: true
  818. schema:
  819. type: string
  820. enum:
  821. - REMOVED
  822. - UNDEFINED
  823. - UNINITIALIZED
  824. - CLEAR
  825. - RAISED
  826. - WARNING
  827. - CRITICAL
  828. default: RAISED
  829. responses:
  830. "200":
  831. description: An object containing a count of alarms with given status for given
  832. contexts.
  833. content:
  834. application/json:
  835. schema:
  836. type: array
  837. items:
  838. type: number
  839. "500":
  840. description: Internal server error. This usually means the server is out of
  841. memory.
  842. /manage/health:
  843. get:
  844. summary: Accesses the health management API to control health checks and
  845. notifications at runtime.
  846. description: Available from Netdata v1.12 and above, protected via bearer
  847. authorization. Especially useful for maintenance periods, the API allows
  848. you to disable health checks completely, silence alarm notifications, or
  849. Disable/Silence specific alarms that match selectors on alarm/template
  850. name, chart, context, host and family. For the simple disable/silence
  851. all scenarios, only the cmd parameter is required. The other parameters
  852. are used to define alarm selectors. For more information and examples,
  853. refer to the netdata documentation.
  854. parameters:
  855. - name: cmd
  856. in: query
  857. description: "DISABLE ALL: No alarm criteria are evaluated, nothing is written in
  858. the alarm log. SILENCE ALL: No notifications are sent. RESET: Return
  859. to the default state. DISABLE/SILENCE: Set the mode to be used for
  860. the alarms matching the criteria of the alarm selectors. LIST: Show
  861. active configuration."
  862. required: false
  863. schema:
  864. type: string
  865. enum:
  866. - DISABLE ALL
  867. - SILENCE ALL
  868. - DISABLE
  869. - SILENCE
  870. - RESET
  871. - LIST
  872. - name: alarm
  873. in: query
  874. description: The expression provided will match both `alarm` and `template` names.
  875. schema:
  876. type: string
  877. - name: chart
  878. in: query
  879. description: Chart ids/names, as shown on the dashboard. These will match the
  880. `on` entry of a configured `alarm`.
  881. schema:
  882. type: string
  883. - name: context
  884. in: query
  885. description: Chart context, as shown on the dashboard. These will match the `on`
  886. entry of a configured `template`.
  887. schema:
  888. type: string
  889. - name: hosts
  890. in: query
  891. description: The hostnames that will need to match.
  892. schema:
  893. type: string
  894. - name: families
  895. in: query
  896. description: The alarm families.
  897. schema:
  898. type: string
  899. responses:
  900. "200":
  901. description: A plain text response based on the result of the command.
  902. "403":
  903. description: Bearer authentication error.
  904. /aclk:
  905. get:
  906. summary: Get information about current ACLK state
  907. description: aclk endpoint returns detailed information
  908. about current state of ACLK (Agent to Cloud communication).
  909. responses:
  910. "200":
  911. description: JSON object with ACLK information.
  912. content:
  913. application/json:
  914. schema:
  915. $ref: "#/components/schemas/aclk_state"
  916. servers:
  917. - url: https://registry.my-netdata.io/api/v1
  918. - url: http://registry.my-netdata.io/api/v1
  919. components:
  920. schemas:
  921. info:
  922. type: object
  923. properties:
  924. version:
  925. type: string
  926. description: netdata version of the server.
  927. example: 1.11.1_rolling
  928. uid:
  929. type: string
  930. description: netdata unique id of the server.
  931. example: 24e9fe3c-f2ac-11e8-bafc-0242ac110002
  932. mirrored_hosts:
  933. type: array
  934. description: List of hosts mirrored of the server (include itself).
  935. items:
  936. type: string
  937. example:
  938. - host1.example.com
  939. - host2.example.com
  940. mirrored_hosts_status:
  941. type: array
  942. description: >-
  943. List of details of hosts mirrored to this served (including self).
  944. Indexes correspond to indexes in "mirrored_hosts".
  945. items:
  946. type: object
  947. description: Host data
  948. properties:
  949. guid:
  950. type: string
  951. format: uuid
  952. nullable: false
  953. description: Host unique GUID from `netdata.public.unique.id`.
  954. example: 245e4bff-3b34-47c1-a6e5-5c535a9abfb2
  955. reachable:
  956. type: boolean
  957. nullable: false
  958. description: Current state of streaming. Always true for localhost/self.
  959. claim_id:
  960. type: string
  961. format: uuid
  962. nullable: true
  963. description: >-
  964. Cloud GUID/identifier in case the host is claimed.
  965. If child status unknown or unclaimed this field is set to `null`
  966. example: c3b2a66a-3052-498c-ac52-7fe9e8cccb0c
  967. os_name:
  968. type: string
  969. description: Operating System Name.
  970. example: Manjaro Linux
  971. os_id:
  972. type: string
  973. description: Operating System ID.
  974. example: manjaro
  975. os_id_like:
  976. type: string
  977. description: Known OS similar to this OS.
  978. example: arch
  979. os_version:
  980. type: string
  981. description: Operating System Version.
  982. example: 18.0.4
  983. os_version_id:
  984. type: string
  985. description: Operating System Version ID.
  986. example: unknown
  987. os_detection:
  988. type: string
  989. description: OS parameters detection method.
  990. example: Mixed
  991. kernel_name:
  992. type: string
  993. description: Kernel Name.
  994. example: Linux
  995. kernel_version:
  996. type: string
  997. description: Kernel Version.
  998. example: 4.19.32-1-MANJARO
  999. is_k8s_node:
  1000. type: boolean
  1001. description: Netdata is running on a K8s node.
  1002. example: false
  1003. architecture:
  1004. type: string
  1005. description: Kernel architecture.
  1006. example: x86_64
  1007. virtualization:
  1008. type: string
  1009. description: Virtualization Type.
  1010. example: kvm
  1011. virt_detection:
  1012. type: string
  1013. description: Virtualization detection method.
  1014. example: systemd-detect-virt
  1015. container:
  1016. type: string
  1017. description: Container technology.
  1018. example: docker
  1019. container_detection:
  1020. type: string
  1021. description: Container technology detection method.
  1022. example: dockerenv
  1023. stream_compression:
  1024. type: boolean
  1025. description: Stream transmission compression method.
  1026. example: true
  1027. labels:
  1028. type: object
  1029. description: List of host labels.
  1030. properties:
  1031. app:
  1032. type: string
  1033. description: Host label.
  1034. example: netdata
  1035. collectors:
  1036. type: array
  1037. items:
  1038. type: object
  1039. description: Array of collector plugins and modules.
  1040. properties:
  1041. plugin:
  1042. type: string
  1043. description: Collector plugin.
  1044. example: python.d.plugin
  1045. module:
  1046. type: string
  1047. description: Module of the collector plugin.
  1048. example: dockerd
  1049. alarms:
  1050. type: object
  1051. description: Number of alarms in the server.
  1052. properties:
  1053. normal:
  1054. type: integer
  1055. description: Number of alarms in normal state.
  1056. warning:
  1057. type: integer
  1058. description: Number of alarms in warning state.
  1059. critical:
  1060. type: integer
  1061. description: Number of alarms in critical state.
  1062. chart_summary:
  1063. type: object
  1064. properties:
  1065. hostname:
  1066. type: string
  1067. description: The hostname of the netdata server.
  1068. version:
  1069. type: string
  1070. description: netdata version of the server.
  1071. release_channel:
  1072. type: string
  1073. description: The release channel of the build on the server.
  1074. example: nightly
  1075. timezone:
  1076. type: string
  1077. description: The current timezone on the server.
  1078. os:
  1079. type: string
  1080. description: The netdata server host operating system.
  1081. enum:
  1082. - macos
  1083. - linux
  1084. - freebsd
  1085. history:
  1086. type: number
  1087. description: The duration, in seconds, of the round robin database maintained by
  1088. netdata.
  1089. memory_mode:
  1090. type: string
  1091. description: The name of the database memory mode on the server.
  1092. update_every:
  1093. type: number
  1094. description: The default update frequency of the netdata server. All charts have
  1095. an update frequency equal or bigger than this.
  1096. charts:
  1097. type: object
  1098. description: An object containing all the chart objects available at the netdata
  1099. server. This is used as an indexed array. The key of each chart
  1100. object is the id of the chart.
  1101. additionalProperties:
  1102. $ref: "#/components/schemas/chart"
  1103. charts_count:
  1104. type: number
  1105. description: The number of charts.
  1106. dimensions_count:
  1107. type: number
  1108. description: The total number of dimensions.
  1109. alarms_count:
  1110. type: number
  1111. description: The number of alarms.
  1112. rrd_memory_bytes:
  1113. type: number
  1114. description: The size of the round robin database in bytes.
  1115. chart:
  1116. type: object
  1117. properties:
  1118. id:
  1119. type: string
  1120. description: The unique id of the chart.
  1121. name:
  1122. type: string
  1123. description: The name of the chart.
  1124. type:
  1125. type: string
  1126. description: The type of the chart. Types are not handled by netdata. You can use
  1127. this field for anything you like.
  1128. family:
  1129. type: string
  1130. description: The family of the chart. Families are not handled by netdata. You
  1131. can use this field for anything you like.
  1132. title:
  1133. type: string
  1134. description: The title of the chart.
  1135. priority:
  1136. type: number
  1137. description: The relative priority of the chart. Netdata does not care about
  1138. priorities. This is just an indication of importance for the chart
  1139. viewers to sort charts of higher priority (lower number) closer to
  1140. the top. Priority sorting should only be used among charts of the
  1141. same type or family.
  1142. enabled:
  1143. type: boolean
  1144. description: True when the chart is enabled. Disabled charts do not currently
  1145. collect values, but they may have historical values available.
  1146. units:
  1147. type: string
  1148. description: The unit of measurement for the values of all dimensions of the
  1149. chart.
  1150. data_url:
  1151. type: string
  1152. description: The absolute path to get data values for this chart. You are
  1153. expected to use this path as the base when constructing the URL to
  1154. fetch data values for this chart.
  1155. chart_type:
  1156. type: string
  1157. description: The chart type.
  1158. enum:
  1159. - line
  1160. - area
  1161. - stacked
  1162. duration:
  1163. type: number
  1164. description: The duration, in seconds, of the round robin database maintained by
  1165. netdata.
  1166. first_entry:
  1167. type: number
  1168. description: The UNIX timestamp of the first entry (the oldest) in the round
  1169. robin database.
  1170. last_entry:
  1171. type: number
  1172. description: The UNIX timestamp of the latest entry in the round robin database.
  1173. update_every:
  1174. type: number
  1175. description: The update frequency of this chart, in seconds. One value every this
  1176. amount of time is kept in the round robin database.
  1177. dimensions:
  1178. type: object
  1179. description: "An object containing all the chart dimensions available for the
  1180. chart. This is used as an indexed array. For each pair in the
  1181. dictionary: the key is the id of the dimension and the value is a
  1182. dictionary containing the name."
  1183. additionalProperties:
  1184. type: object
  1185. properties:
  1186. name:
  1187. type: string
  1188. description: The name of the dimension
  1189. chart_variables:
  1190. type: object
  1191. additionalProperties:
  1192. $ref: "#/components/schemas/chart_variables"
  1193. green:
  1194. type: number
  1195. nullable: true
  1196. description: Chart health green threshold.
  1197. red:
  1198. type: number
  1199. nullable: true
  1200. description: Chart health red threshold.
  1201. alarm_variables:
  1202. type: object
  1203. properties:
  1204. chart:
  1205. type: string
  1206. description: The unique id of the chart.
  1207. chart_name:
  1208. type: string
  1209. description: The name of the chart.
  1210. cnart_context:
  1211. type: string
  1212. description: The context of the chart. It is shared across multiple monitored
  1213. software or hardware instances and used in alarm templates.
  1214. family:
  1215. type: string
  1216. description: The family of the chart.
  1217. host:
  1218. type: string
  1219. description: The host containing the chart.
  1220. chart_variables:
  1221. type: object
  1222. additionalProperties:
  1223. $ref: "#/components/schemas/chart_variables"
  1224. family_variables:
  1225. type: object
  1226. properties:
  1227. varname1:
  1228. type: number
  1229. format: float
  1230. varname2:
  1231. type: number
  1232. format: float
  1233. host_variables:
  1234. type: object
  1235. properties:
  1236. varname1:
  1237. type: number
  1238. format: float
  1239. varname2:
  1240. type: number
  1241. format: float
  1242. chart_variables:
  1243. type: object
  1244. properties:
  1245. varname1:
  1246. type: number
  1247. format: float
  1248. varname2:
  1249. type: number
  1250. format: float
  1251. data:
  1252. type: object
  1253. discriminator:
  1254. propertyName: format
  1255. description: Response will contain the appropriate subtype, e.g. data_json depending
  1256. on the requested format.
  1257. properties:
  1258. api:
  1259. type: number
  1260. description: The API version this conforms to, currently 1.
  1261. id:
  1262. type: string
  1263. description: The unique id of the chart.
  1264. name:
  1265. type: string
  1266. description: The name of the chart.
  1267. update_every:
  1268. type: number
  1269. description: The update frequency of this chart, in seconds. One value every this
  1270. amount of time is kept in the round robin database (independently of
  1271. the current view).
  1272. view_update_every:
  1273. type: number
  1274. description: The current view appropriate update frequency of this chart, in
  1275. seconds. There is no point to request chart refreshes, using the
  1276. same settings, more frequently than this.
  1277. first_entry:
  1278. type: number
  1279. description: The UNIX timestamp of the first entry (the oldest) in the round
  1280. robin database (independently of the current view).
  1281. last_entry:
  1282. type: number
  1283. description: The UNIX timestamp of the latest entry in the round robin database
  1284. (independently of the current view).
  1285. after:
  1286. type: number
  1287. description: The UNIX timestamp of the first entry (the oldest) returned in this
  1288. response.
  1289. before:
  1290. type: number
  1291. description: The UNIX timestamp of the latest entry returned in this response.
  1292. min:
  1293. type: number
  1294. description: The minimum value returned in the current view. This can be used to
  1295. size the y-series of the chart.
  1296. max:
  1297. type: number
  1298. description: The maximum value returned in the current view. This can be used to
  1299. size the y-series of the chart.
  1300. dimension_names:
  1301. description: The dimension names of the chart as returned in the current view.
  1302. type: array
  1303. items:
  1304. type: string
  1305. dimension_ids:
  1306. description: The dimension IDs of the chart as returned in the current view.
  1307. type: array
  1308. items:
  1309. type: string
  1310. latest_values:
  1311. description: The latest values collected for the chart (independently of the
  1312. current view).
  1313. type: array
  1314. items:
  1315. type: string
  1316. view_latest_values:
  1317. description: The latest values returned with this response.
  1318. type: array
  1319. items:
  1320. type: string
  1321. dimensions:
  1322. type: number
  1323. description: The number of dimensions returned.
  1324. points:
  1325. type: number
  1326. description: The number of rows / points returned.
  1327. format:
  1328. type: string
  1329. description: The format of the result returned.
  1330. chart_variables:
  1331. type: object
  1332. additionalProperties:
  1333. $ref: "#/components/schemas/chart_variables"
  1334. data_json:
  1335. description: Data response in json format.
  1336. allOf:
  1337. - $ref: "#/components/schemas/data"
  1338. - properties:
  1339. result:
  1340. type: object
  1341. properties:
  1342. labels:
  1343. description: The dimensions retrieved from the chart.
  1344. type: array
  1345. items:
  1346. type: string
  1347. data:
  1348. description: The data requested, one element per sample with each element
  1349. containing the values of the dimensions described in the
  1350. labels value.
  1351. type: array
  1352. items:
  1353. type: number
  1354. description: The result requested, in the format requested.
  1355. data_flat:
  1356. description: Data response in csv / tsv / tsv-excel / ssv / ssv-comma / markdown /
  1357. html formats.
  1358. allOf:
  1359. - $ref: "#/components/schemas/data"
  1360. - properties:
  1361. result:
  1362. type: string
  1363. data_array:
  1364. description: Data response in array format.
  1365. allOf:
  1366. - $ref: "#/components/schemas/data"
  1367. - properties:
  1368. result:
  1369. type: array
  1370. items:
  1371. type: number
  1372. data_csvjsonarray:
  1373. description: Data response in csvjsonarray format.
  1374. allOf:
  1375. - $ref: "#/components/schemas/data"
  1376. - properties:
  1377. result:
  1378. description: The first inner array contains strings showing the labels of
  1379. each column, each subsequent array contains the values for each
  1380. point in time.
  1381. type: array
  1382. items:
  1383. type: array
  1384. items: {}
  1385. data_datatable:
  1386. description: Data response in datatable / datasource formats (suitable for Google
  1387. Charts).
  1388. allOf:
  1389. - $ref: "#/components/schemas/data"
  1390. - properties:
  1391. result:
  1392. type: object
  1393. properties:
  1394. cols:
  1395. type: array
  1396. items:
  1397. type: object
  1398. properties:
  1399. id:
  1400. description: Always empty - for future use.
  1401. label:
  1402. description: The dimension returned from the chart.
  1403. pattern:
  1404. description: Always empty - for future use.
  1405. type:
  1406. description: The type of data in the column / chart-dimension.
  1407. p:
  1408. description: Contains any annotations for the column.
  1409. required:
  1410. - id
  1411. - label
  1412. - pattern
  1413. - type
  1414. rows:
  1415. type: array
  1416. items:
  1417. type: object
  1418. properties:
  1419. c:
  1420. type: array
  1421. items:
  1422. properties:
  1423. v:
  1424. description: "Each value in the row is represented by an
  1425. object named `c` with five v fields: data, null,
  1426. null, 0, the value. This format is fixed by the
  1427. Google Charts API."
  1428. alarms:
  1429. type: object
  1430. properties:
  1431. hostname:
  1432. type: string
  1433. latest_alarm_log_unique_id:
  1434. type: integer
  1435. format: int32
  1436. status:
  1437. type: boolean
  1438. now:
  1439. type: integer
  1440. format: int32
  1441. alarms:
  1442. type: object
  1443. properties:
  1444. chart-name.alarm-name:
  1445. type: object
  1446. properties:
  1447. id:
  1448. type: integer
  1449. format: int32
  1450. name:
  1451. type: string
  1452. description: Full alarm name.
  1453. chart:
  1454. type: string
  1455. family:
  1456. type: string
  1457. active:
  1458. type: boolean
  1459. description: Will be false only if the alarm is disabled in the
  1460. configuration.
  1461. disabled:
  1462. type: boolean
  1463. description: Whether the health check for this alarm has been disabled
  1464. via a health command API DISABLE command.
  1465. silenced:
  1466. type: boolean
  1467. description: Whether notifications for this alarm have been silenced via
  1468. a health command API SILENCE command.
  1469. exec:
  1470. type: string
  1471. recipient:
  1472. type: string
  1473. source:
  1474. type: string
  1475. units:
  1476. type: string
  1477. info:
  1478. type: string
  1479. status:
  1480. type: string
  1481. last_status_change:
  1482. type: integer
  1483. format: int32
  1484. last_updated:
  1485. type: integer
  1486. format: int32
  1487. next_update:
  1488. type: integer
  1489. format: int32
  1490. update_every:
  1491. type: integer
  1492. format: int32
  1493. delay_up_duration:
  1494. type: integer
  1495. format: int32
  1496. delay_down_duration:
  1497. type: integer
  1498. format: int32
  1499. delay_max_duration:
  1500. type: integer
  1501. format: int32
  1502. delay_multiplier:
  1503. type: integer
  1504. format: int32
  1505. delay:
  1506. type: integer
  1507. format: int32
  1508. delay_up_to_timestamp:
  1509. type: integer
  1510. format: int32
  1511. value_string:
  1512. type: string
  1513. no_clear_notification:
  1514. type: boolean
  1515. lookup_dimensions:
  1516. type: string
  1517. db_after:
  1518. type: integer
  1519. format: int32
  1520. db_before:
  1521. type: integer
  1522. format: int32
  1523. lookup_method:
  1524. type: string
  1525. lookup_after:
  1526. type: integer
  1527. format: int32
  1528. lookup_before:
  1529. type: integer
  1530. format: int32
  1531. lookup_options:
  1532. type: string
  1533. calc:
  1534. type: string
  1535. calc_parsed:
  1536. type: string
  1537. warn:
  1538. type: string
  1539. warn_parsed:
  1540. type: string
  1541. crit:
  1542. type: string
  1543. crit_parsed:
  1544. type: string
  1545. warn_repeat_every:
  1546. type: integer
  1547. format: int32
  1548. crit_repeat_every:
  1549. type: integer
  1550. format: int32
  1551. green:
  1552. type: string
  1553. format: nullable
  1554. red:
  1555. type: string
  1556. format: nullable
  1557. value:
  1558. type: number
  1559. alarm_log_entry:
  1560. type: object
  1561. properties:
  1562. hostname:
  1563. type: string
  1564. unique_id:
  1565. type: integer
  1566. format: int32
  1567. alarm_id:
  1568. type: integer
  1569. format: int32
  1570. alarm_event_id:
  1571. type: integer
  1572. format: int32
  1573. name:
  1574. type: string
  1575. chart:
  1576. type: string
  1577. family:
  1578. type: string
  1579. processed:
  1580. type: boolean
  1581. updated:
  1582. type: boolean
  1583. exec_run:
  1584. type: integer
  1585. format: int32
  1586. exec_failed:
  1587. type: boolean
  1588. exec:
  1589. type: string
  1590. recipient:
  1591. type: string
  1592. exec_code:
  1593. type: integer
  1594. format: int32
  1595. source:
  1596. type: string
  1597. units:
  1598. type: string
  1599. when:
  1600. type: integer
  1601. format: int32
  1602. duration:
  1603. type: integer
  1604. format: int32
  1605. non_clear_duration:
  1606. type: integer
  1607. format: int32
  1608. status:
  1609. type: string
  1610. old_status:
  1611. type: string
  1612. delay:
  1613. type: integer
  1614. format: int32
  1615. delay_up_to_timestamp:
  1616. type: integer
  1617. format: int32
  1618. updated_by_id:
  1619. type: integer
  1620. format: int32
  1621. updates_id:
  1622. type: integer
  1623. format: int32
  1624. value_string:
  1625. type: string
  1626. old_value_string:
  1627. type: string
  1628. silenced:
  1629. type: string
  1630. info:
  1631. type: string
  1632. value:
  1633. type: number
  1634. nullable: true
  1635. old_value:
  1636. type: number
  1637. nullable: true
  1638. alarms_values:
  1639. type: object
  1640. properties:
  1641. hostname:
  1642. type: string
  1643. alarms:
  1644. type: object
  1645. description: HashMap with keys being alarm names
  1646. additionalProperties:
  1647. type: object
  1648. properties:
  1649. id:
  1650. type: integer
  1651. value:
  1652. type: integer
  1653. last_updated:
  1654. type: integer
  1655. format: int32
  1656. status:
  1657. type: string
  1658. enum:
  1659. - REMOVED
  1660. - UNDEFINED
  1661. - UNINITIALIZED
  1662. - CLEAR
  1663. - RAISED
  1664. - WARNING
  1665. - CRITICAL
  1666. - UNKNOWN
  1667. aclk_state:
  1668. type: object
  1669. properties:
  1670. aclk-available:
  1671. type: string
  1672. description: Describes whether this agent is capable of connection to the Cloud.
  1673. False means agent has been built without ACLK component either on purpose (user choice) or due to missing dependency.
  1674. aclk-version:
  1675. type: integer
  1676. description: Describes which ACLK version is currently used.
  1677. protocols-supported:
  1678. type: array
  1679. description: List of supported protocols for communication with Cloud.
  1680. items:
  1681. type: string
  1682. agent-claimed:
  1683. type: boolean
  1684. description: Informs whether this agent has been added to a space in the cloud (User has to perform claiming).
  1685. If false (user didn't perform claiming) agent will never attempt any cloud connection.
  1686. claimed_id:
  1687. type: string
  1688. format: uuid
  1689. description: Unique ID this agent uses to identify when connecting to cloud
  1690. online:
  1691. type: boolean
  1692. description: Informs if this agent was connected to the cloud at the time this request has been processed.
  1693. used-cloud-protocol:
  1694. type: string
  1695. description: Informs which protocol is used to communicate with cloud
  1696. enum:
  1697. - Old
  1698. - New