netdata-swagger.yaml 88 KB

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