netdata-swagger.yaml 130 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486
  1. openapi: 3.0.0
  2. info:
  3. title: Netdata API
  4. description: Real-time performance and health monitoring.
  5. version: "1.38"
  6. contact:
  7. name: Netdata Agent API
  8. email: info@netdata.cloud
  9. url: https://netdata.cloud
  10. license:
  11. name: GPL v3+
  12. url: https://github.com/netdata/netdata/blob/master/LICENSE
  13. servers:
  14. - url: https://registry.my-netdata.io
  15. - url: http://registry.my-netdata.io
  16. - url: http://localhost:19999
  17. tags:
  18. - name: nodes
  19. description: Everything related to monitored nodes
  20. - name: charts
  21. description: Everything related to chart instances - DO NOT USE IN NEW CODE - use contexts instead
  22. - name: contexts
  23. description: Everything related contexts - in new code, use this instead of charts
  24. - name: data
  25. description: Everything related to data queries
  26. - name: badges
  27. description: Everything related to dynamic badges based on metric data
  28. - name: weights
  29. description: Everything related to scoring / weighting metrics
  30. - name: functions
  31. description: Everything related to functions
  32. - name: alerts
  33. description: Everything related to alerts
  34. - name: management
  35. description: Everything related to managing netdata agents
  36. paths:
  37. /api/v2/nodes:
  38. get:
  39. operationId: getNodes2
  40. tags:
  41. - nodes
  42. summary: Nodes Info v2
  43. description: |
  44. Get a list of all nodes hosted by this Netdata agent.
  45. parameters:
  46. - $ref: '#/components/parameters/scopeNodes'
  47. - $ref: '#/components/parameters/scopeContexts'
  48. - $ref: '#/components/parameters/filterNodes'
  49. - $ref: '#/components/parameters/filterContexts'
  50. responses:
  51. "200":
  52. description: OK
  53. content:
  54. application/json:
  55. schema:
  56. description: |
  57. `/api/v2/nodes` response for all nodes hosted by a Netdata agent.
  58. type: object
  59. properties:
  60. api:
  61. $ref: '#/components/schemas/api'
  62. agents:
  63. $ref: '#/components/schemas/agents'
  64. versions:
  65. $ref: '#/components/schemas/versions'
  66. nodes:
  67. type: array
  68. items:
  69. $ref: '#/components/schemas/nodeFull'
  70. /api/v2/contexts:
  71. get:
  72. operationId: getContexts2
  73. tags:
  74. - contexts
  75. summary: Contexts Info v2
  76. description: |
  77. Get a list of all contexts, across all nodes, hosted by this Netdata agent.
  78. parameters:
  79. - $ref: '#/components/parameters/scopeNodes'
  80. - $ref: '#/components/parameters/scopeContexts'
  81. - $ref: '#/components/parameters/filterNodes'
  82. - $ref: '#/components/parameters/filterContexts'
  83. responses:
  84. "200":
  85. description: OK
  86. content:
  87. application/json:
  88. schema:
  89. $ref: '#/components/schemas/contexts2'
  90. /api/v2/q:
  91. get:
  92. operationId: q2
  93. tags:
  94. - contexts
  95. summary: Full Text Search v2
  96. description: |
  97. Get a list of contexts, across all nodes, hosted by this Netdata agent, matching a string expression
  98. parameters:
  99. - name: q
  100. in: query
  101. description: The strings to search for, formatted as a simple pattern
  102. required: true
  103. schema:
  104. type: string
  105. format: simple pattern
  106. - $ref: '#/components/parameters/scopeNodes'
  107. - $ref: '#/components/parameters/scopeContexts'
  108. - $ref: '#/components/parameters/filterNodes'
  109. - $ref: '#/components/parameters/filterContexts'
  110. responses:
  111. "200":
  112. description: OK
  113. content:
  114. application/json:
  115. schema:
  116. $ref: '#/components/schemas/contexts2'
  117. /api/v1/info:
  118. get:
  119. operationId: getNodeInfo1
  120. tags:
  121. - nodes
  122. summary: Node Info v1
  123. description: |
  124. The info endpoint returns basic information about netdata. It provides:
  125. * netdata version
  126. * netdata unique id
  127. * list of hosts mirrored (includes itself)
  128. * Operating System, Virtualization, K8s nodes and Container technology information
  129. * List of active collector plugins and modules
  130. * Streaming information
  131. * number of alarms in the host
  132. * number of alarms in normal state
  133. * number of alarms in warning state
  134. * number of alarms in critical state
  135. responses:
  136. "200":
  137. description: netdata basic information.
  138. content:
  139. application/json:
  140. schema:
  141. $ref: "#/components/schemas/info"
  142. "503":
  143. description: netdata daemon not ready (used for health checks).
  144. /api/v1/charts:
  145. get:
  146. operationId: getNodeCharts1
  147. tags:
  148. - charts
  149. summary: List all charts v1 - EOL
  150. description: The charts endpoint returns a summary about all charts stored in the
  151. netdata server.
  152. responses:
  153. "200":
  154. description: An array of charts.
  155. content:
  156. application/json:
  157. schema:
  158. $ref: "#/components/schemas/chart_summary"
  159. /api/v1/chart:
  160. get:
  161. operationId: getNodeChart1
  162. tags:
  163. - charts
  164. summary: Get one chart v1 - EOL
  165. description: The chart endpoint returns detailed information about a chart.
  166. parameters:
  167. - $ref: '#/components/parameters/chart'
  168. responses:
  169. "200":
  170. description: A javascript object with detailed information about the chart.
  171. content:
  172. application/json:
  173. schema:
  174. $ref: "#/components/schemas/chart"
  175. "400":
  176. description: No chart id was supplied in the request.
  177. "404":
  178. description: No chart with the given id is found.
  179. /api/v1/contexts:
  180. get:
  181. operationId: getNodeContexts1
  182. tags:
  183. - contexts
  184. summary: Get a list of all node contexts available v1
  185. description: The contexts endpoint returns a summary about all contexts stored in the
  186. netdata server.
  187. parameters:
  188. - $ref: '#/components/parameters/dimensions'
  189. - $ref: '#/components/parameters/chart_label_key'
  190. - $ref: '#/components/parameters/chart_labels_filter'
  191. - $ref: '#/components/parameters/contextOptions1'
  192. - $ref: '#/components/parameters/after'
  193. - $ref: '#/components/parameters/before'
  194. responses:
  195. "200":
  196. description: An array of contexts.
  197. content:
  198. application/json:
  199. schema:
  200. $ref: "#/components/schemas/context_summary"
  201. /api/v1/context:
  202. get:
  203. operationId: getNodeContext1
  204. tags:
  205. - contexts
  206. summary: Get info about a specific context
  207. description: |
  208. The context endpoint returns detailed information about a given context.
  209. The `context` parameter is required for this call.
  210. parameters:
  211. - $ref: '#/components/parameters/context'
  212. - $ref: '#/components/parameters/dimensions'
  213. - $ref: '#/components/parameters/chart_label_key'
  214. - $ref: '#/components/parameters/chart_labels_filter'
  215. - $ref: '#/components/parameters/contextOptions1'
  216. - $ref: '#/components/parameters/after'
  217. - $ref: '#/components/parameters/before'
  218. responses:
  219. "200":
  220. description: A javascript object with detailed information about the context.
  221. content:
  222. application/json:
  223. schema:
  224. $ref: "#/components/schemas/context"
  225. "400":
  226. description: No context id was supplied in the request.
  227. "404":
  228. description: No context with the given id is found.
  229. /api/v1/config:
  230. get:
  231. operationId: getConfig
  232. tags:
  233. - dyncfg
  234. description: |
  235. Get dynamic configuration information.
  236. parameters:
  237. - name: action
  238. in: query
  239. description: The type of information required
  240. schema:
  241. type: string
  242. enum:
  243. - tree
  244. - schema
  245. - get
  246. - enable
  247. - disable
  248. - restart
  249. default: tree
  250. - name: id
  251. in: query
  252. description: The ID of the dynamic configuration entity
  253. schema:
  254. type: string
  255. - name: path
  256. in: query
  257. description: Top level path of the configuration entities, used with action 'tree'
  258. schema:
  259. type: string
  260. default: '/'
  261. - name: timeout
  262. in: query
  263. description: The timeout in seconds
  264. schema:
  265. type: number
  266. default: 120
  267. responses:
  268. "200":
  269. description: The call was successful.
  270. content:
  271. application/json:
  272. schema:
  273. oneOf:
  274. - $ref: '#/components/schemas/config_default_response'
  275. - $ref: '#/components/schemas/config_tree'
  276. - $ref: "#/components/schemas/config_schema"
  277. "400":
  278. description: Something is wrong with the request.
  279. content:
  280. application/json:
  281. schema:
  282. $ref: '#/components/schemas/config_default_response'
  283. "404":
  284. description: The configurable entity requests is not found.
  285. content:
  286. application/json:
  287. schema:
  288. $ref: '#/components/schemas/config_default_response'
  289. post:
  290. operationId: postConfig
  291. tags:
  292. - dyncfg
  293. description: |
  294. Post dynamic configuration to Netdata.
  295. parameters:
  296. - name: action
  297. in: query
  298. description: The type of action required.
  299. schema:
  300. type: string
  301. enum:
  302. - add
  303. - test
  304. - update
  305. - name: id
  306. in: query
  307. description: The ID of the dynamic configuration entity to configure.
  308. schema:
  309. type: string
  310. - name: name
  311. in: query
  312. description: Name of the dynamic configuration entity, used with action 'add'
  313. schema:
  314. type: string
  315. - name: timeout
  316. in: query
  317. description: The timeout in seconds
  318. schema:
  319. type: number
  320. default: 120
  321. responses:
  322. "200":
  323. description: The call was successful. This also means the configuration is currently running.
  324. content:
  325. application/json:
  326. schema:
  327. $ref: '#/components/schemas/config_default_response'
  328. "202":
  329. description: The call was successful. The configuration has been accepted, but its status is not yet known.
  330. content:
  331. application/json:
  332. schema:
  333. $ref: '#/components/schemas/config_default_response'
  334. "299":
  335. description: The call was successful. The configuration has been accepted, but a restart is required to apply it.
  336. content:
  337. application/json:
  338. schema:
  339. $ref: '#/components/schemas/config_default_response'
  340. "400":
  341. description: Something is wrong with the request.
  342. content:
  343. application/json:
  344. schema:
  345. $ref: '#/components/schemas/config_default_response'
  346. "404":
  347. description: The configurable entity requests is not found.
  348. content:
  349. application/json:
  350. schema:
  351. $ref: '#/components/schemas/config_default_response'
  352. /api/v2/data:
  353. get:
  354. operationId: dataQuery2
  355. tags:
  356. - data
  357. summary: Data Query v2
  358. description: |
  359. Multi-node, multi-context, multi-instance, multi-dimension data queries, with time and metric aggregation.
  360. parameters:
  361. - name: group_by
  362. in: query
  363. description: |
  364. A comma separated list of the groupings required.
  365. All possible values can be combined together, except `selected`. If `selected` is given in the list, all others are ignored.
  366. The order they are placed in the list is currently ignored.
  367. This parameter is also accepted as `group_by[0]` and `group_by[1]` when multiple grouping passes are required.
  368. required: false
  369. schema:
  370. type: array
  371. items:
  372. type: string
  373. enum:
  374. - dimension
  375. - instance
  376. - percentage-of-instance
  377. - label
  378. - node
  379. - context
  380. - units
  381. - selected
  382. default:
  383. - dimension
  384. - name: group_by_label
  385. in: query
  386. description: |
  387. A comma separated list of the label keys to group by their values. The order of the labels in the list is respected.
  388. This parameter is also accepted as `group_by_label[0]` and `group_by_label[1]` when multiple grouping passes are required.
  389. required: false
  390. schema:
  391. type: string
  392. format: comma separated list of label keys to group by
  393. default: ""
  394. - name: aggregation
  395. in: query
  396. description: |
  397. The aggregation function to apply when grouping metrics together.
  398. When option `raw` is given, `average` and `avg` behave like `sum` and the caller is expected to calculate the average.
  399. This parameter is also accepted as `aggregation[0]` and `aggregation[1]` when multiple grouping passes are required.
  400. required: false
  401. schema:
  402. type: string
  403. enum:
  404. - min
  405. - max
  406. - avg
  407. - average
  408. - sum
  409. - percentage
  410. default: average
  411. - $ref: '#/components/parameters/scopeNodes'
  412. - $ref: '#/components/parameters/scopeContexts'
  413. - $ref: '#/components/parameters/filterNodes'
  414. - $ref: '#/components/parameters/filterContexts'
  415. - $ref: '#/components/parameters/filterInstances'
  416. - $ref: '#/components/parameters/filterLabels'
  417. - $ref: '#/components/parameters/filterAlerts'
  418. - $ref: '#/components/parameters/filterDimensions'
  419. - $ref: '#/components/parameters/after'
  420. - $ref: '#/components/parameters/before'
  421. - $ref: '#/components/parameters/points'
  422. - $ref: '#/components/parameters/tier'
  423. - $ref: '#/components/parameters/dataQueryOptions'
  424. - $ref: '#/components/parameters/dataTimeGroup2'
  425. - $ref: '#/components/parameters/dataTimeGroupOptions2'
  426. - $ref: '#/components/parameters/dataTimeResampling2'
  427. - $ref: '#/components/parameters/dataFormat2'
  428. - $ref: '#/components/parameters/timeoutMS'
  429. - $ref: '#/components/parameters/callback'
  430. - $ref: '#/components/parameters/filename'
  431. - $ref: '#/components/parameters/tqx'
  432. responses:
  433. "200":
  434. description: |
  435. The call was successful. The response includes the data in the format requested.
  436. content:
  437. application/json:
  438. schema:
  439. oneOf:
  440. - $ref: '#/components/schemas/jsonwrap2'
  441. - $ref: '#/components/schemas/data_json_formats2'
  442. text/plain:
  443. schema:
  444. type: string
  445. format: according to the format requested.
  446. text/html:
  447. schema:
  448. type: string
  449. format: html
  450. application/x-javascript:
  451. schema:
  452. type: string
  453. format: javascript
  454. "400":
  455. description: |
  456. Bad request - the body will include a message stating what is wrong.
  457. "500":
  458. description: |
  459. Internal server error. This usually means the server is out of memory.
  460. /api/v1/data:
  461. get:
  462. operationId: dataQuery1
  463. tags:
  464. - data
  465. summary: Data Query v1 - Single node, single chart or context queries. without group-by.
  466. description: |
  467. Query metric data of a chart or context of a node and return a dataset having time-series data for all dimensions available.
  468. For group-by functionality, use `/api/v2/data`.
  469. At least a `chart` or a `context` have to be given for the data query to be executed.
  470. parameters:
  471. - $ref: '#/components/parameters/chart'
  472. - $ref: '#/components/parameters/context'
  473. - $ref: '#/components/parameters/dimension'
  474. - $ref: '#/components/parameters/chart_label_key'
  475. - $ref: '#/components/parameters/chart_labels_filter'
  476. - $ref: '#/components/parameters/after'
  477. - $ref: '#/components/parameters/before'
  478. - $ref: '#/components/parameters/points'
  479. - $ref: '#/components/parameters/tier'
  480. - $ref: '#/components/parameters/dataQueryOptions'
  481. - $ref: '#/components/parameters/dataFormat1'
  482. - $ref: '#/components/parameters/dataTimeGroup1'
  483. - $ref: '#/components/parameters/dataTimeGroupOptions1'
  484. - $ref: '#/components/parameters/dataTimeResampling1'
  485. - $ref: '#/components/parameters/timeoutMS'
  486. - $ref: '#/components/parameters/callback'
  487. - $ref: '#/components/parameters/filename'
  488. - $ref: '#/components/parameters/tqx'
  489. responses:
  490. "200":
  491. description: |
  492. The call was successful. The response includes the data in the format requested.
  493. content:
  494. application/json:
  495. schema:
  496. oneOf:
  497. - $ref: '#/components/schemas/jsonwrap1'
  498. - $ref: '#/components/schemas/data_json_formats1'
  499. text/plain:
  500. schema:
  501. type: string
  502. format: according to the format requested.
  503. text/html:
  504. schema:
  505. type: string
  506. format: html
  507. application/x-javascript:
  508. schema:
  509. type: string
  510. format: javascript
  511. "400":
  512. description: Bad request - the body will include a message stating what is wrong.
  513. "404":
  514. description: Chart or context is not found. The supplied chart or context will be reported.
  515. "500":
  516. description: Internal server error. This usually means the server is out of
  517. memory.
  518. /api/v1/allmetrics:
  519. get:
  520. operationId: allMetrics1
  521. tags:
  522. - data
  523. summary: All Metrics v1 - Fetch latest value for all metrics
  524. description: |
  525. The `allmetrics` endpoint returns the latest value of all metrics maintained for a netdata node.
  526. parameters:
  527. - name: format
  528. in: query
  529. description: The format of the response to be returned.
  530. required: true
  531. schema:
  532. type: string
  533. enum:
  534. - shell
  535. - prometheus
  536. - prometheus_all_hosts
  537. - json
  538. default: shell
  539. - name: filter
  540. in: query
  541. description: Allows to filter charts out using simple patterns.
  542. required: false
  543. schema:
  544. type: string
  545. format: any text
  546. - name: variables
  547. in: query
  548. description: |
  549. When enabled, netdata will expose various system configuration variables.
  550. required: false
  551. schema:
  552. type: string
  553. enum:
  554. - yes
  555. - no
  556. default: no
  557. - name: help
  558. in: query
  559. description: |
  560. Enable or disable HELP lines in prometheus output.
  561. required: false
  562. schema:
  563. type: string
  564. enum:
  565. - yes
  566. - no
  567. default: no
  568. - name: types
  569. in: query
  570. description: |
  571. Enable or disable TYPE lines in prometheus output.
  572. required: false
  573. schema:
  574. type: string
  575. enum:
  576. - yes
  577. - no
  578. default: no
  579. - name: timestamps
  580. in: query
  581. description: |
  582. Enable or disable timestamps in prometheus output.
  583. required: false
  584. schema:
  585. type: string
  586. enum:
  587. - yes
  588. - no
  589. default: yes
  590. - name: names
  591. in: query
  592. description: |
  593. When enabled netdata will report dimension names. When disabled netdata will report dimension IDs. The default is controlled in netdata.conf.
  594. required: false
  595. schema:
  596. type: string
  597. enum:
  598. - yes
  599. - no
  600. default: yes
  601. - name: oldunits
  602. in: query
  603. description: |
  604. When enabled, netdata will show metric names for the default `source=average` as they appeared before 1.12, by using the legacy unit naming conventions.
  605. required: false
  606. schema:
  607. type: string
  608. enum:
  609. - yes
  610. - no
  611. default: yes
  612. - name: hideunits
  613. in: query
  614. description: |
  615. When enabled, netdata will not include the units in the metric names, for the default `source=average`.
  616. required: false
  617. schema:
  618. type: string
  619. enum:
  620. - yes
  621. - no
  622. default: yes
  623. - name: server
  624. in: query
  625. description: |
  626. Set a distinct name of the client querying prometheus metrics. Netdata will use the client IP if this is not set.
  627. required: false
  628. schema:
  629. type: string
  630. format: any text
  631. - name: prefix
  632. in: query
  633. description: |
  634. Prefix all prometheus metrics with this string.
  635. required: false
  636. schema:
  637. type: string
  638. format: any text
  639. - name: data
  640. in: query
  641. description: |
  642. Select the prometheus response data source. There is a setting in netdata.conf for the default.
  643. required: false
  644. schema:
  645. type: string
  646. enum:
  647. - as-collected
  648. - average
  649. - sum
  650. default: average
  651. responses:
  652. "200":
  653. description: All the metrics returned in the format requested.
  654. "400":
  655. description: The format requested is not supported.
  656. /api/v1/badge.svg:
  657. get:
  658. operationId: badge1
  659. tags:
  660. - badges
  661. summary: Generate a badge in form of SVG image for a chart (or dimension)
  662. description: Successful responses are SVG images.
  663. parameters:
  664. - $ref: '#/components/parameters/chart'
  665. - $ref: '#/components/parameters/dimension'
  666. - $ref: '#/components/parameters/after'
  667. - $ref: '#/components/parameters/before'
  668. - $ref: '#/components/parameters/dataTimeGroup1'
  669. - $ref: '#/components/parameters/dataQueryOptions'
  670. - name: alarm
  671. in: query
  672. description: The name of an alarm linked to the chart.
  673. required: false
  674. allowEmptyValue: true
  675. schema:
  676. type: string
  677. format: any text
  678. - name: label
  679. in: query
  680. description: A text to be used as the label.
  681. required: false
  682. allowEmptyValue: true
  683. schema:
  684. type: string
  685. format: any text
  686. - name: units
  687. in: query
  688. description: A text to be used as the units.
  689. required: false
  690. allowEmptyValue: true
  691. schema:
  692. type: string
  693. format: any text
  694. - name: label_color
  695. in: query
  696. description: |
  697. 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.
  698. required: false
  699. allowEmptyValue: true
  700. schema:
  701. oneOf:
  702. - type: string
  703. enum:
  704. - green
  705. - brightgreen
  706. - yellow
  707. - yellowgreen
  708. - orange
  709. - red
  710. - blue
  711. - grey
  712. - gray
  713. - lightgrey
  714. - lightgray
  715. - type: string
  716. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  717. - name: value_color
  718. in: query
  719. description: |
  720. A color to be used for the background of the value *(right)* part of badge. You can set multiple using a pipe with a condition each, like this: `color<value|color:null` The following operators are supported: >, <, >=, <=, =, :null (to check if no value exists). Each color can be specified in same manner as for `label_color` parameter. Currently only integers are supported as values.
  721. required: false
  722. allowEmptyValue: true
  723. schema:
  724. type: string
  725. format: any text
  726. - name: text_color_lbl
  727. in: query
  728. description: |
  729. 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.
  730. required: false
  731. allowEmptyValue: true
  732. schema:
  733. oneOf:
  734. - type: string
  735. enum:
  736. - green
  737. - brightgreen
  738. - yellow
  739. - yellowgreen
  740. - orange
  741. - red
  742. - blue
  743. - grey
  744. - gray
  745. - lightgrey
  746. - lightgray
  747. - type: string
  748. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  749. - name: text_color_val
  750. in: query
  751. description: |
  752. 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.
  753. required: false
  754. allowEmptyValue: true
  755. schema:
  756. oneOf:
  757. - type: string
  758. enum:
  759. - green
  760. - brightgreen
  761. - yellow
  762. - yellowgreen
  763. - orange
  764. - red
  765. - blue
  766. - grey
  767. - gray
  768. - lightgrey
  769. - lightgray
  770. - type: string
  771. format: ^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
  772. - name: multiply
  773. in: query
  774. description: Multiply the value with this number for rendering it at the image
  775. (integer value required).
  776. required: false
  777. allowEmptyValue: true
  778. schema:
  779. type: number
  780. format: integer
  781. - name: divide
  782. in: query
  783. description: Divide the value with this number for rendering it at the image
  784. (integer value required).
  785. required: false
  786. allowEmptyValue: true
  787. schema:
  788. type: number
  789. format: integer
  790. - name: scale
  791. in: query
  792. description: Set the scale of the badge (greater or equal to 100).
  793. required: false
  794. allowEmptyValue: true
  795. schema:
  796. type: number
  797. format: integer
  798. - name: fixed_width_lbl
  799. in: query
  800. description: |
  801. 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`.
  802. required: false
  803. allowEmptyValue: false
  804. schema:
  805. type: number
  806. format: integer
  807. - name: fixed_width_val
  808. in: query
  809. description: |
  810. 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`.
  811. required: false
  812. allowEmptyValue: false
  813. schema:
  814. type: number
  815. format: integer
  816. responses:
  817. "200":
  818. description: The call was successful. The response should be an SVG image.
  819. "400":
  820. description: Bad request - the body will include a message stating what is wrong.
  821. "404":
  822. description: No chart with the given id is found.
  823. "500":
  824. description: Internal server error. This usually means the server is out of
  825. memory.
  826. /api/v2/weights:
  827. get:
  828. operationId: weights2
  829. tags:
  830. - weights
  831. summary: Score or weight all or some of the metrics, across all nodes, according to various algorithms.
  832. description: |
  833. This endpoint goes through all metrics and scores them according to an algorithm.
  834. parameters:
  835. - $ref: '#/components/parameters/weightMethods'
  836. - $ref: '#/components/parameters/scopeNodes'
  837. - $ref: '#/components/parameters/scopeContexts'
  838. - $ref: '#/components/parameters/filterNodes'
  839. - $ref: '#/components/parameters/filterContexts'
  840. - $ref: '#/components/parameters/filterInstances'
  841. - $ref: '#/components/parameters/filterLabels'
  842. - $ref: '#/components/parameters/filterAlerts'
  843. - $ref: '#/components/parameters/filterDimensions'
  844. - $ref: '#/components/parameters/baselineAfter'
  845. - $ref: '#/components/parameters/baselineBefore'
  846. - $ref: '#/components/parameters/after'
  847. - $ref: '#/components/parameters/before'
  848. - $ref: '#/components/parameters/tier'
  849. - $ref: '#/components/parameters/points'
  850. - $ref: '#/components/parameters/timeoutMS'
  851. - $ref: '#/components/parameters/dataQueryOptions'
  852. - $ref: '#/components/parameters/dataTimeGroup2'
  853. - $ref: '#/components/parameters/dataTimeGroupOptions2'
  854. responses:
  855. "200":
  856. description: JSON object with weights for each context, chart and dimension.
  857. content:
  858. application/json:
  859. schema:
  860. $ref: "#/components/schemas/weights2"
  861. "400":
  862. description: The given parameters are invalid.
  863. "403":
  864. description: metrics correlations are not enabled on this Netdata Agent.
  865. "404":
  866. description: |
  867. No charts could be found, or the method that correlated the metrics did not produce any result.
  868. "504":
  869. description: Timeout - the query took too long and has been cancelled.
  870. /api/v1/weights:
  871. get:
  872. operationId: weights1
  873. tags:
  874. - weights
  875. summary: Score or weight all or some of the metrics of a single node, according to various algorithms.
  876. description: |
  877. This endpoint goes through all metrics and scores them according to an algorithm.
  878. parameters:
  879. - $ref: '#/components/parameters/weightMethods'
  880. - $ref: '#/components/parameters/context'
  881. - $ref: '#/components/parameters/baselineAfter'
  882. - $ref: '#/components/parameters/baselineBefore'
  883. - $ref: '#/components/parameters/after'
  884. - $ref: '#/components/parameters/before'
  885. - $ref: '#/components/parameters/tier'
  886. - $ref: '#/components/parameters/points'
  887. - $ref: '#/components/parameters/timeoutMS'
  888. - $ref: '#/components/parameters/dataQueryOptions'
  889. - $ref: '#/components/parameters/dataTimeGroup1'
  890. - $ref: '#/components/parameters/dataTimeGroupOptions1'
  891. responses:
  892. "200":
  893. description: JSON object with weights for each context, chart and dimension.
  894. content:
  895. application/json:
  896. schema:
  897. $ref: "#/components/schemas/weights"
  898. "400":
  899. description: The given parameters are invalid.
  900. "403":
  901. description: metrics correlations are not enabled on this Netdata Agent.
  902. "404":
  903. description: No charts could be found, or the method
  904. that correlated the metrics did not produce any result.
  905. "504":
  906. description: Timeout - the query took too long and has been cancelled.
  907. /api/v1/metric_correlations:
  908. get:
  909. operationId: metricCorrelations1
  910. tags:
  911. - weights
  912. summary: Analyze all the metrics to find their correlations - EOL
  913. description: |
  914. THIS ENDPOINT IS OBSOLETE. Use the /weights endpoint. Given two time-windows (baseline, highlight), it goes through all the available metrics, querying both windows and tries to find how these two windows relate to each other. It supports multiple algorithms to do so. The result is a list of all metrics evaluated, weighted for 0.0 (the two windows are more different) to 1.0 (the two windows are similar). The algorithm adjusts automatically the baseline window to be a power of two multiple of the highlighted (1, 2, 4, 8, etc).
  915. parameters:
  916. - $ref: '#/components/parameters/weightMethods'
  917. - $ref: '#/components/parameters/baselineAfter'
  918. - $ref: '#/components/parameters/baselineBefore'
  919. - $ref: '#/components/parameters/after'
  920. - $ref: '#/components/parameters/before'
  921. - $ref: '#/components/parameters/points'
  922. - $ref: '#/components/parameters/tier'
  923. - $ref: '#/components/parameters/timeoutMS'
  924. - $ref: '#/components/parameters/dataQueryOptions'
  925. - $ref: '#/components/parameters/dataTimeGroup1'
  926. - $ref: '#/components/parameters/dataTimeGroupOptions1'
  927. responses:
  928. "200":
  929. description: JSON object with weights for each chart and dimension.
  930. content:
  931. application/json:
  932. schema:
  933. $ref: "#/components/schemas/metric_correlations"
  934. "400":
  935. description: The given parameters are invalid.
  936. "403":
  937. description: metrics correlations are not enabled on this Netdata Agent.
  938. "404":
  939. description: No charts could be found, or the method
  940. that correlated the metrics did not produce any result.
  941. "504":
  942. description: Timeout - the query took too long and has been cancelled.
  943. /api/v1/function:
  944. get:
  945. operationId: function1
  946. tags:
  947. - functions
  948. description: "Execute a collector function."
  949. parameters:
  950. - name: function
  951. in: query
  952. description: The name of the function, as returned by the collector.
  953. required: true
  954. allowEmptyValue: false
  955. schema:
  956. type: string
  957. - $ref: '#/components/parameters/timeoutSecs'
  958. responses:
  959. "200":
  960. description: The collector function has been executed successfully. Each collector may return a different type of content.
  961. "400":
  962. description: The request was rejected by the collector.
  963. "404":
  964. description: The requested function is not found.
  965. "500":
  966. description: Other internal error, getting this error means there is a bug in Netdata.
  967. "503":
  968. description: The collector to execute the function is not currently available.
  969. "504":
  970. description: Timeout while waiting for the collector to execute the function.
  971. "591":
  972. description: The collector sent a response, but it was invalid or corrupted.
  973. /api/v1/functions:
  974. get:
  975. operationId: functions1
  976. tags:
  977. - functions
  978. summary: Get a list of all registered collector functions.
  979. description: Collector functions are programs that can be executed on demand.
  980. responses:
  981. "200":
  982. description: A JSON object containing one object per supported function.
  983. /api/v1/alarms:
  984. get:
  985. operationId: alerts1
  986. tags:
  987. - alerts
  988. summary: Get a list of active or raised alarms on the server
  989. description: |
  990. The alarms endpoint returns the list of all raised or enabled alarms on the netdata server. Called without any parameters, the raised alarms in state WARNING or CRITICAL are returned. By passing "?all", all the enabled alarms are returned.
  991. parameters:
  992. - name: all
  993. in: query
  994. description: If passed, all enabled alarms are returned.
  995. required: false
  996. allowEmptyValue: true
  997. schema:
  998. type: boolean
  999. - name: active
  1000. in: query
  1001. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  1002. required: false
  1003. allowEmptyValue: true
  1004. schema:
  1005. type: boolean
  1006. responses:
  1007. "200":
  1008. description: An object containing general info and a linked list of alarms.
  1009. content:
  1010. application/json:
  1011. schema:
  1012. $ref: "#/components/schemas/alarms"
  1013. /api/v1/alarms_values:
  1014. get:
  1015. operationId: alertValues1
  1016. tags:
  1017. - alerts
  1018. summary: Get a list of active or raised alarms on the server
  1019. description: |
  1020. The alarms_values endpoint returns the list of all raised or enabled alarms on the netdata server. Called without any parameters, the raised alarms in state WARNING or CRITICAL are returned. By passing '?all', all the enabled alarms are returned. This option output differs from `/alarms` in the number of variables delivered. This endpoint gives to user `id`, `value`, `last_updated` time, and alarm `status`.
  1021. parameters:
  1022. - name: all
  1023. in: query
  1024. description: If passed, all enabled alarms are returned.
  1025. required: false
  1026. allowEmptyValue: true
  1027. schema:
  1028. type: boolean
  1029. - name: active
  1030. in: query
  1031. description: If passed, the raised alarms in state WARNING or CRITICAL are returned.
  1032. required: false
  1033. allowEmptyValue: true
  1034. schema:
  1035. type: boolean
  1036. responses:
  1037. "200":
  1038. description: An object containing general info and a linked list of alarms.
  1039. content:
  1040. application/json:
  1041. schema:
  1042. $ref: "#/components/schemas/alarms_values"
  1043. /api/v1/alarm_log:
  1044. get:
  1045. operationId: alertsLog1
  1046. tags:
  1047. - alerts
  1048. summary: Retrieves the entries of the alarm log
  1049. description: |
  1050. Returns an array of alarm_log entries, with historical information on raised and cleared alarms.
  1051. parameters:
  1052. - name: after
  1053. in: query
  1054. description: |
  1055. Passing the parameter after=UNIQUEID returns all the events in the alarm log that occurred after UNIQUEID. An automated series of calls would call the interface once without after=, store the last UNIQUEID of the returned set, and give it back to get incrementally the next events.
  1056. required: false
  1057. schema:
  1058. type: integer
  1059. responses:
  1060. "200":
  1061. description: An array of alarm log entries.
  1062. content:
  1063. application/json:
  1064. schema:
  1065. type: array
  1066. items:
  1067. $ref: "#/components/schemas/alarm_log_entry"
  1068. /api/v1/alarm_count:
  1069. get:
  1070. operationId: alertsCount1
  1071. tags:
  1072. - alerts
  1073. summary: Get an overall status of the chart
  1074. description: |
  1075. Checks multiple charts with the same context and counts number of alarms with given status.
  1076. parameters:
  1077. - $ref: '#/components/parameters/context'
  1078. - name: status
  1079. in: query
  1080. description: Specify alarm status to count.
  1081. required: false
  1082. allowEmptyValue: true
  1083. schema:
  1084. type: string
  1085. enum:
  1086. - REMOVED
  1087. - UNDEFINED
  1088. - UNINITIALIZED
  1089. - CLEAR
  1090. - RAISED
  1091. - WARNING
  1092. - CRITICAL
  1093. default: RAISED
  1094. responses:
  1095. "200":
  1096. description: An object containing a count of alarms with given status for given
  1097. contexts.
  1098. content:
  1099. application/json:
  1100. schema:
  1101. type: array
  1102. items:
  1103. type: number
  1104. "500":
  1105. description: Internal server error. This usually means the server is out of
  1106. memory.
  1107. /api/v1/alarm_variables:
  1108. get:
  1109. operationId: getNodeAlertVariables1
  1110. tags:
  1111. - alerts
  1112. summary: List variables available to configure alarms for a chart
  1113. description: |
  1114. Returns the basic information of a chart and all the variables that can be used in alarm and template health configurations for the particular chart or family.
  1115. parameters:
  1116. - name: chart
  1117. in: query
  1118. description: The id of the chart as returned by the /charts call.
  1119. required: true
  1120. schema:
  1121. type: string
  1122. format: as returned by /charts
  1123. default: system.cpu
  1124. responses:
  1125. "200":
  1126. description: A javascript object with information about the chart and the
  1127. available variables.
  1128. content:
  1129. application/json:
  1130. schema:
  1131. $ref: "#/components/schemas/alarm_variables"
  1132. "400":
  1133. description: Bad request - the body will include a message stating what is wrong.
  1134. "404":
  1135. description: No chart with the given id is found.
  1136. "500":
  1137. description: Internal server error. This usually means the server is out of
  1138. memory.
  1139. /api/v1/manage/health:
  1140. get:
  1141. operationId: health1
  1142. tags:
  1143. - management
  1144. summary: |
  1145. Accesses the health management API to control health checks and notifications at runtime.
  1146. description: |
  1147. Available from Netdata v1.12 and above, protected via bearer authorization. Especially useful for maintenance periods, the API allows you to disable health checks completely, silence alarm notifications, or Disable/Silence specific alarms that match selectors on alarm/template name, chart, context, host and family. For the simple disable/silence all scenarios, only the cmd parameter is required. The other parameters are used to define alarm selectors. For more information and examples, refer to the netdata documentation.
  1148. parameters:
  1149. - name: cmd
  1150. in: query
  1151. description: |
  1152. DISABLE ALL: No alarm criteria are evaluated, nothing is written in the alarm log. SILENCE ALL: No notifications are sent. RESET: Return to the default state. DISABLE/SILENCE: Set the mode to be used for the alarms matching the criteria of the alarm selectors. LIST: Show active configuration.
  1153. required: false
  1154. schema:
  1155. type: string
  1156. enum:
  1157. - DISABLE ALL
  1158. - SILENCE ALL
  1159. - DISABLE
  1160. - SILENCE
  1161. - RESET
  1162. - LIST
  1163. - name: alarm
  1164. in: query
  1165. description: The expression provided will match both `alarm` and `template` names.
  1166. schema:
  1167. type: string
  1168. - name: chart
  1169. in: query
  1170. description: Chart ids/names, as shown on the dashboard. These will match the
  1171. `on` entry of a configured `alarm`.
  1172. schema:
  1173. type: string
  1174. - name: context
  1175. in: query
  1176. description: Chart context, as shown on the dashboard. These will match the `on`
  1177. entry of a configured `template`.
  1178. schema:
  1179. type: string
  1180. - name: hosts
  1181. in: query
  1182. description: The hostnames that will need to match.
  1183. schema:
  1184. type: string
  1185. responses:
  1186. "200":
  1187. description: A plain text response based on the result of the command.
  1188. "403":
  1189. description: Bearer authentication error.
  1190. /api/v1/aclk:
  1191. get:
  1192. operationId: aclk1
  1193. tags:
  1194. - management
  1195. summary: Get information about current ACLK state
  1196. description: |
  1197. ACLK endpoint returns detailed information about current state of ACLK (Agent to Cloud communication).
  1198. responses:
  1199. "200":
  1200. description: JSON object with ACLK information.
  1201. content:
  1202. application/json:
  1203. schema:
  1204. $ref: "#/components/schemas/aclk_state"
  1205. components:
  1206. parameters:
  1207. scopeNodes:
  1208. name: scope_nodes
  1209. in: query
  1210. description: |
  1211. A simple pattern limiting the nodes scope of the query. The scope controls both data and metadata response. The simple pattern is checked against the nodes' machine guid, node id and hostname. The default nodes scope is all nodes for which this agent has data for. Usually the nodes scope is used to slice the entire dashboard (e.g. the Global Nodes Selector at the Netdata Cloud overview dashboard). Both positive and negative simple pattern expressions are supported.
  1212. required: false
  1213. schema:
  1214. type: string
  1215. format: simple pattern
  1216. default: "*"
  1217. scopeContexts:
  1218. name: scope_contexts
  1219. in: query
  1220. description: |
  1221. A simple pattern limiting the contexts scope of the query. The scope controls both data and metadata response. The default contexts scope is all contexts for which this agent has data for. Usually the contexts scope is used to slice data on the dashboard (e.g. each context based chart has its own contexts scope, limiting the chart to all the instances of the selected context). Both positive and negative simple pattern expressions are supported.
  1222. required: false
  1223. schema:
  1224. type: string
  1225. format: simple pattern
  1226. default: "*"
  1227. filterNodes:
  1228. name: nodes
  1229. in: query
  1230. description: |
  1231. A simple pattern matching the nodes to be queried. This only controls the data response, not the metadata. The simple pattern is checked against the nodes' machine guid, node id, hostname. The default nodes selector is all the nodes matched by the nodes scope. Both positive and negative simple pattern expressions are supported.
  1232. required: false
  1233. schema:
  1234. type: string
  1235. format: simple pattern
  1236. default: "*"
  1237. filterContexts:
  1238. name: contexts
  1239. in: query
  1240. description: |
  1241. A simple pattern matching the contexts to be queried. This only controls the data response, not the metadata. Both positive and negative simple pattern expressions are supported.
  1242. required: false
  1243. schema:
  1244. type: string
  1245. format: simple pattern
  1246. default: "*"
  1247. filterInstances:
  1248. name: instances
  1249. in: query
  1250. description: |
  1251. A simple pattern matching the instances to be queried. The simple pattern is checked against the instance `id`, the instance `name`, the fully qualified name of the instance `id` and `name`, like `instance@machine_guid`, where `instance` is either its `id` or `name`. Both positive and negative simple pattern expressions are supported.
  1252. required: false
  1253. schema:
  1254. type: string
  1255. format: simple pattern
  1256. default: "*"
  1257. filterLabels:
  1258. name: labels
  1259. in: query
  1260. description: |
  1261. A simple pattern matching the labels to be queried. The simple pattern is checked against `name:value` of all the labels of all the eligible instances (as filtered by all the above: scope nodes, scope contexts, nodes, contexts and instances). Negative simple patterns should not be used in this filter.
  1262. required: false
  1263. schema:
  1264. type: string
  1265. format: simple pattern
  1266. default: "*"
  1267. filterAlerts:
  1268. name: alerts
  1269. in: query
  1270. description: |
  1271. A simple pattern matching the alerts to be queried. The simple pattern is checked against the `name` of alerts and the combination of `name:status`, when status is one of `CLEAR`, `WARNING`, `CRITICAL`, `REMOVED`, `UNDEFINED`, `UNINITIALIZED`, of all the alerts of all the eligible instances (as filtered by all the above). A negative simple pattern will exclude the instances having the labels matched.
  1272. required: false
  1273. schema:
  1274. type: string
  1275. format: simple pattern
  1276. default: "*"
  1277. filterDimensions:
  1278. name: dimensions
  1279. in: query
  1280. description: |
  1281. A simple patterns matching the dimensions to be queried. The simple pattern is checked against and `id` and the `name` of the dimensions of the eligible instances (as filtered by all the above). Both positive and negative simple pattern expressions are supported.
  1282. required: false
  1283. schema:
  1284. type: string
  1285. format: simple pattern
  1286. default: "*"
  1287. dataFormat1:
  1288. name: format
  1289. in: query
  1290. description: The format of the data to be returned.
  1291. allowEmptyValue: false
  1292. schema:
  1293. type: string
  1294. enum:
  1295. - json
  1296. - jsonp
  1297. - csv
  1298. - tsv
  1299. - tsv-excel
  1300. - ssv
  1301. - ssvcomma
  1302. - datatable
  1303. - datasource
  1304. - html
  1305. - markdown
  1306. - array
  1307. - csvjsonarray
  1308. default: json
  1309. dataFormat2:
  1310. name: format
  1311. in: query
  1312. description: The format of the data to be returned.
  1313. allowEmptyValue: false
  1314. schema:
  1315. type: string
  1316. enum:
  1317. - json
  1318. - json2
  1319. - jsonp
  1320. - csv
  1321. - tsv
  1322. - tsv-excel
  1323. - ssv
  1324. - ssvcomma
  1325. - datatable
  1326. - datasource
  1327. - html
  1328. - markdown
  1329. - array
  1330. - csvjsonarray
  1331. default: json2
  1332. dataQueryOptions:
  1333. name: options
  1334. in: query
  1335. description: |
  1336. Options that affect data generation.
  1337. * `jsonwrap` - Wrap the output in a JSON object with metadata about the query.
  1338. * `raw` - change the output so that it is aggregatable across multiple such queries. Supported by `/api/v2` data queries and `json2` format.
  1339. * `minify` - Remove unnecessary spaces and newlines from the output.
  1340. * `debug` - Provide additional information in `jsonwrap` output to help tracing issues.
  1341. * `nonzero` - Do not return dimensions that all their values are zero, to improve the visual appearance of charts. They will still be returned if all the dimensions are entirely zero.
  1342. * `null2zero` - Replace `null` values with `0`.
  1343. * `absolute` or `abs` - Traditionally Netdata returns select dimensions negative to improve visual appearance. This option turns this feature off.
  1344. * `display-absolute` - Only used by badges, to do color calculation using the signed value, but render the value without a sign.
  1345. * `flip` or `reversed` - Order the timestamps array in reverse order (newest to oldest).
  1346. * `min2max` - When flattening multi-dimensional data into a single metric format, use `max - min` instead of `sum`. This is EOL - use `/api/v2` to control aggregation across dimensions.
  1347. * `percentage` - Convert all values into a percentage vs the row total. When enabled, Netdata will query all dimensions, even the ones that have not been selected or are hidden, to find the row total, in order to calculate the percentage of each dimension selected.
  1348. * `seconds` - Output timestamps in seconds instead of dates.
  1349. * `milliseconds` or `ms` - Output timestamps in milliseconds instead of dates.
  1350. * `unaligned` - by default queries are aligned to the the view, so that as time passes past data returned do not change. When a data query will not be used for visualization, `unaligned` can be given to avoid aligning the query time-frame for visual precision.
  1351. * `match-ids`, `match-names`. By default filters match both IDs and names when they are available. Setting either of the two options will disable the other.
  1352. * `anomaly-bit` - query the anomaly information instead of metric values. This is EOL, use `/api/v2` and `json2` format which always returns this information and many more.
  1353. * `jw-anomaly-rates` - return anomaly rates as a separate result set in the same `json` format response. This is EOL, use `/api/v2` and `json2` format which always returns information and many more.
  1354. * `details` - `/api/v2/data` returns in `jsonwrap` the full tree of dimensions that have been matched by the query.
  1355. * `group-by-labels` - `/api/v2/data` returns in `jsonwrap` flattened labels per output dimension. These are used to identify the instances that have been aggregated into each dimension, making it possible to provide a map, like Netdata does for Kubernetes.
  1356. * `natural-points` - return timestamps as found in the database. The result is again fixed-step, but the query engine attempts to align them with the timestamps found in the database.
  1357. * `virtual-points` - return timestamps independent of the database alignment. This is needed aggregating data across multiple Netdata agents, to ensure that their outputs do not need to be interpolated to be merged.
  1358. * `selected-tier` - use data exclusively from the selected tier given with the `tier` parameter. This option is set automatically when the `tier` parameter is set.
  1359. * `all-dimensions` - In `/api/v1` `jsonwrap` include metadata for all candidate metrics examined. In `/api/v2` this is standard behavior and no option is needed.
  1360. * `label-quotes` - In `csv` output format, enclose each header label in quotes.
  1361. * `objectrows` - Each row of value should be an object, not an array (only for `json` format).
  1362. * `google_json` - Comply with google JSON/JSONP specs (only for `json` format).
  1363. required: false
  1364. allowEmptyValue: false
  1365. schema:
  1366. type: array
  1367. items:
  1368. type: string
  1369. enum:
  1370. - jsonwrap
  1371. - raw
  1372. - minify
  1373. - debug
  1374. - nonzero
  1375. - null2zero
  1376. - abs
  1377. - absolute
  1378. - display-absolute
  1379. - flip
  1380. - reversed
  1381. - min2max
  1382. - percentage
  1383. - seconds
  1384. - ms
  1385. - milliseconds
  1386. - unaligned
  1387. - match-ids
  1388. - match-names
  1389. - anomaly-bit
  1390. - jw-anomaly-rates
  1391. - details
  1392. - group-by-labels
  1393. - natural-points
  1394. - virtual-points
  1395. - selected-tier
  1396. - all-dimensions
  1397. - label-quotes
  1398. - objectrows
  1399. - google_json
  1400. default:
  1401. - seconds
  1402. - jsonwrap
  1403. dataTimeGroup1:
  1404. name: group
  1405. in: query
  1406. description: |
  1407. Time aggregation function. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. If the `absolute` option is set, the values are turned positive before applying this calculation.
  1408. required: false
  1409. schema:
  1410. type: string
  1411. enum:
  1412. - min
  1413. - max
  1414. - avg
  1415. - average
  1416. - median
  1417. - stddev
  1418. - sum
  1419. - incremental-sum
  1420. - ses
  1421. - des
  1422. - cv
  1423. - countif
  1424. - percentile
  1425. - percentile25
  1426. - percentile50
  1427. - percentile75
  1428. - percentile80
  1429. - percentile90
  1430. - percentile95
  1431. - percentile97
  1432. - percentile98
  1433. - percentile99
  1434. - trimmed-mean
  1435. - trimmed-mean1
  1436. - trimmed-mean2
  1437. - trimmed-mean3
  1438. - trimmed-mean5
  1439. - trimmed-mean10
  1440. - trimmed-mean15
  1441. - trimmed-mean20
  1442. - trimmed-mean25
  1443. - trimmed-median
  1444. - trimmed-median1
  1445. - trimmed-median2
  1446. - trimmed-median3
  1447. - trimmed-median5
  1448. - trimmed-median10
  1449. - trimmed-median15
  1450. - trimmed-median20
  1451. - trimmed-median25
  1452. default: average
  1453. dataTimeGroup2:
  1454. name: time_group
  1455. in: query
  1456. description: |
  1457. Time aggregation function. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. If the `absolute` option is set, the values are turned positive before applying this calculation.
  1458. required: false
  1459. schema:
  1460. type: string
  1461. enum:
  1462. - min
  1463. - max
  1464. - avg
  1465. - average
  1466. - median
  1467. - stddev
  1468. - sum
  1469. - incremental-sum
  1470. - ses
  1471. - des
  1472. - cv
  1473. - countif
  1474. - percentile
  1475. - percentile25
  1476. - percentile50
  1477. - percentile75
  1478. - percentile80
  1479. - percentile90
  1480. - percentile95
  1481. - percentile97
  1482. - percentile98
  1483. - percentile99
  1484. - trimmed-mean
  1485. - trimmed-mean1
  1486. - trimmed-mean2
  1487. - trimmed-mean3
  1488. - trimmed-mean5
  1489. - trimmed-mean10
  1490. - trimmed-mean15
  1491. - trimmed-mean20
  1492. - trimmed-mean25
  1493. - trimmed-median
  1494. - trimmed-median1
  1495. - trimmed-median2
  1496. - trimmed-median3
  1497. - trimmed-median5
  1498. - trimmed-median10
  1499. - trimmed-median15
  1500. - trimmed-median20
  1501. - trimmed-median25
  1502. default: average
  1503. dataTimeGroupOptions1:
  1504. name: group_options
  1505. in: query
  1506. description: |
  1507. When the time grouping function supports additional parameters, this field can be used to pass them to it. Currently `countif`, `trimmed-mean`, `trimmed-median` and `percentile` support this. For `countif` the string may start with `<`, `<=`, `<:`, `<>`, `!=`, `>`, `>=`, `>:`. For all others just a number is expected.
  1508. required: false
  1509. schema:
  1510. type: string
  1511. dataTimeGroupOptions2:
  1512. name: time_group_options
  1513. in: query
  1514. description: |
  1515. When the time grouping function supports additional parameters, this field can be used to pass them to it. Currently `countif`, `trimmed-mean`, `trimmed-median` and `percentile` support this. For `countif` the string may start with `<`, `<=`, `<:`, `<>`, `!=`, `>`, `>=`, `>:`. For all others just a number is expected.
  1516. required: false
  1517. schema:
  1518. type: string
  1519. dataTimeResampling1:
  1520. name: gtime
  1521. in: query
  1522. description: |
  1523. The grouping number of seconds. This is used in conjunction with group=average to change the units of metrics (ie when the data is per-second, setting gtime=60 will turn them to per-minute).
  1524. required: false
  1525. allowEmptyValue: false
  1526. schema:
  1527. type: number
  1528. format: integer
  1529. default: 0
  1530. dataTimeResampling2:
  1531. name: time_resampling
  1532. in: query
  1533. description: |
  1534. For incremental values that are "per second", this value is used to resample them to "per minute` (60) or "per hour" (3600). It can only be used in conjunction with group=average.
  1535. required: false
  1536. schema:
  1537. type: number
  1538. format: integer
  1539. default: 0
  1540. timeoutMS:
  1541. name: timeout
  1542. in: query
  1543. description: |
  1544. Specify a timeout value in milliseconds after which the agent will abort the query and return a 503 error. A value of 0 indicates no timeout.
  1545. required: false
  1546. schema:
  1547. type: number
  1548. format: integer
  1549. default: 0
  1550. timeoutSecs:
  1551. name: timeout
  1552. in: query
  1553. description: |
  1554. Specify a timeout value in seconds after which the agent will abort the query and return a 504 error. A value of 0 indicates no timeout, but some endpoints, like `weights`, do not accept infinite timeouts (they have a predefined default), so to disable the timeout it must be set to a really high value.
  1555. required: false
  1556. schema:
  1557. type: number
  1558. format: integer
  1559. default: 0
  1560. before:
  1561. name: before
  1562. in: query
  1563. description: |
  1564. `after` and `before` define the time-frame of a query. `before` can be a negative number of seconds, up to 3 years (-94608000), relative to current clock. If not set, it is assumed to be the current clock time. When `before` is positive, it is assumed to be a unix epoch timestamp. When non-data endpoints support the `after` and `before`, they use the time-frame to limit their response for objects having data retention within the time-frame given.
  1565. required: false
  1566. schema:
  1567. type: integer
  1568. default: 0
  1569. after:
  1570. name: after
  1571. in: query
  1572. description: |
  1573. `after` and `before` define the time-frame of a query. `after` can be a negative number of seconds, up to 3 years (-94608000), relative to `before`. If not set, it is usually assumed to be -600. When non-data endpoints support the `after` and `before`, they use the time-frame to limit their response for objects having data retention within the time-frame given.
  1574. required: false
  1575. schema:
  1576. type: integer
  1577. default: -600
  1578. baselineBefore:
  1579. name: baseline_before
  1580. in: query
  1581. description: |
  1582. `baseline_after` and `baseline_before` define the baseline time-frame of a comparative query. `baseline_before` can be a negative number of seconds, up to 3 years (-94608000), relative to current clock. If not set, it is assumed to be the current clock time. When `baseline_before` is positive, it is assumed to be a unix epoch timestamp.
  1583. required: false
  1584. schema:
  1585. type: integer
  1586. default: 0
  1587. baselineAfter:
  1588. name: baseline_after
  1589. in: query
  1590. description: |
  1591. `baseline_after` and `baseline_before` define the baseline time-frame of a comparative query. `baseline_after` can be a negative number of seconds, up to 3 years (-94608000), relative to `baseline_before`. If not set, it is usually assumed to be -300.
  1592. required: false
  1593. schema:
  1594. type: integer
  1595. default: -600
  1596. points:
  1597. name: points
  1598. in: query
  1599. description: |
  1600. The number of points to be returned. If not given, or it is <= 0, or it is bigger than the points stored in the database for the given duration, all the available collected values for the given duration will be returned. For `weights` endpoints that do statistical analysis, the `points` define the detail of this analysis (the default is 500).
  1601. required: false
  1602. schema:
  1603. type: number
  1604. format: integer
  1605. default: 0
  1606. tier:
  1607. name: tier
  1608. in: query
  1609. description: |
  1610. Use only the given dbengine tier for executing the query. Setting this parameters automatically sets the option `selected-tier` for the query.
  1611. required: false
  1612. schema:
  1613. type: number
  1614. format: integer
  1615. callback:
  1616. name: callback
  1617. in: query
  1618. description: |
  1619. For JSONP responses, the callback function name.
  1620. required: false
  1621. schema:
  1622. type: string
  1623. filename:
  1624. name: filename
  1625. in: query
  1626. description: |
  1627. Add `Content-Disposition: attachment; filename=` header to the response, that will instruct the browser to save the response with the given filename."
  1628. required: false
  1629. schema:
  1630. type: string
  1631. tqx:
  1632. name: tqx
  1633. in: query
  1634. description: |
  1635. [Google Visualization API](https://developers.google.com/chart/interactive/docs/dev/implementing_data_source?hl=en) formatted parameter.
  1636. required: false
  1637. schema:
  1638. type: string
  1639. contextOptions1:
  1640. name: options
  1641. in: query
  1642. description: Options that affect data generation.
  1643. required: false
  1644. schema:
  1645. type: array
  1646. items:
  1647. type: string
  1648. enum:
  1649. - full
  1650. - all
  1651. - charts
  1652. - dimensions
  1653. - labels
  1654. - uuids
  1655. - queue
  1656. - flags
  1657. - deleted
  1658. - deepscan
  1659. chart:
  1660. name: chart
  1661. in: query
  1662. description: The id of the chart as returned by the `/api/v1/charts` call.
  1663. required: false
  1664. allowEmptyValue: false
  1665. schema:
  1666. type: string
  1667. format: as returned by `/api/v1/charts`
  1668. context:
  1669. name: context
  1670. in: query
  1671. description: The context of the chart as returned by the /charts call.
  1672. required: false
  1673. allowEmptyValue: false
  1674. schema:
  1675. type: string
  1676. format: as returned by /charts
  1677. dimension:
  1678. name: dimension
  1679. in: query
  1680. description: Zero, one or more dimension ids or names, as returned by the /chart
  1681. call, separated with comma or pipe. Netdata simple patterns are
  1682. supported.
  1683. required: false
  1684. allowEmptyValue: false
  1685. schema:
  1686. type: array
  1687. items:
  1688. type: string
  1689. format: as returned by /charts
  1690. dimensions:
  1691. name: dimensions
  1692. in: query
  1693. description: a simple pattern matching dimensions (use comma or pipe as separator)
  1694. required: false
  1695. allowEmptyValue: true
  1696. schema:
  1697. type: string
  1698. chart_label_key:
  1699. name: chart_label_key
  1700. in: query
  1701. description: |
  1702. Specify the chart label keys that need to match for context queries as comma separated values. At least one matching key is needed to match the corresponding chart.
  1703. required: false
  1704. allowEmptyValue: false
  1705. schema:
  1706. type: string
  1707. format: key1,key2,key3
  1708. chart_labels_filter:
  1709. name: chart_labels_filter
  1710. in: query
  1711. description: |
  1712. Specify the chart label keys and values to match for context queries. All keys/values need to match for the chart to be included in the query. The labels are specified as key1:value1,key2:value2
  1713. required: false
  1714. allowEmptyValue: false
  1715. schema:
  1716. type: string
  1717. format: key1:value1,key2:value2,key3:value3
  1718. weightMethods:
  1719. name: method
  1720. in: query
  1721. description: The weighting / scoring algorithm.
  1722. required: false
  1723. schema:
  1724. type: string
  1725. enum:
  1726. - ks2
  1727. - volume
  1728. - anomaly-rate
  1729. - value
  1730. schemas:
  1731. info:
  1732. type: object
  1733. properties:
  1734. version:
  1735. type: string
  1736. description: netdata version of the server.
  1737. example: 1.11.1_rolling
  1738. uid:
  1739. type: string
  1740. description: netdata unique id of the server.
  1741. example: 24e9fe3c-f2ac-11e8-bafc-0242ac110002
  1742. mirrored_hosts:
  1743. type: array
  1744. description: List of hosts mirrored of the server (include itself).
  1745. items:
  1746. type: string
  1747. example:
  1748. - host1.example.com
  1749. - host2.example.com
  1750. mirrored_hosts_status:
  1751. type: array
  1752. description: >-
  1753. List of details of hosts mirrored to this served (including self).
  1754. Indexes correspond to indexes in "mirrored_hosts".
  1755. items:
  1756. type: object
  1757. description: Host data
  1758. properties:
  1759. guid:
  1760. type: string
  1761. format: uuid
  1762. nullable: false
  1763. description: Host unique GUID from `netdata.public.unique.id`.
  1764. example: 245e4bff-3b34-47c1-a6e5-5c535a9abfb2
  1765. reachable:
  1766. type: boolean
  1767. nullable: false
  1768. description: Current state of streaming. Always true for localhost/self.
  1769. claim_id:
  1770. type: string
  1771. format: uuid
  1772. nullable: true
  1773. description: >-
  1774. Cloud GUID/identifier in case the host is claimed.
  1775. If child status unknown or unclaimed this field is set to `null`
  1776. example: c3b2a66a-3052-498c-ac52-7fe9e8cccb0c
  1777. os_name:
  1778. type: string
  1779. description: Operating System Name.
  1780. example: Manjaro Linux
  1781. os_id:
  1782. type: string
  1783. description: Operating System ID.
  1784. example: manjaro
  1785. os_id_like:
  1786. type: string
  1787. description: Known OS similar to this OS.
  1788. example: arch
  1789. os_version:
  1790. type: string
  1791. description: Operating System Version.
  1792. example: 18.0.4
  1793. os_version_id:
  1794. type: string
  1795. description: Operating System Version ID.
  1796. example: unknown
  1797. os_detection:
  1798. type: string
  1799. description: OS parameters detection method.
  1800. example: Mixed
  1801. kernel_name:
  1802. type: string
  1803. description: Kernel Name.
  1804. example: Linux
  1805. kernel_version:
  1806. type: string
  1807. description: Kernel Version.
  1808. example: 4.19.32-1-MANJARO
  1809. is_k8s_node:
  1810. type: boolean
  1811. description: Netdata is running on a K8s node.
  1812. example: false
  1813. architecture:
  1814. type: string
  1815. description: Kernel architecture.
  1816. example: x86_64
  1817. virtualization:
  1818. type: string
  1819. description: Virtualization Type.
  1820. example: kvm
  1821. virt_detection:
  1822. type: string
  1823. description: Virtualization detection method.
  1824. example: systemd-detect-virt
  1825. container:
  1826. type: string
  1827. description: Container technology.
  1828. example: docker
  1829. container_detection:
  1830. type: string
  1831. description: Container technology detection method.
  1832. example: dockerenv
  1833. stream_compression:
  1834. type: boolean
  1835. description: Stream transmission compression method.
  1836. example: true
  1837. labels:
  1838. type: object
  1839. description: List of host labels.
  1840. properties:
  1841. app:
  1842. type: string
  1843. description: Host label.
  1844. example: netdata
  1845. collectors:
  1846. type: array
  1847. items:
  1848. type: object
  1849. description: Array of collector plugins and modules.
  1850. properties:
  1851. plugin:
  1852. type: string
  1853. description: Collector plugin.
  1854. example: python.d.plugin
  1855. module:
  1856. type: string
  1857. description: Module of the collector plugin.
  1858. example: dockerd
  1859. alarms:
  1860. type: object
  1861. description: Number of alarms in the server.
  1862. properties:
  1863. normal:
  1864. type: integer
  1865. description: Number of alarms in normal state.
  1866. warning:
  1867. type: integer
  1868. description: Number of alarms in warning state.
  1869. critical:
  1870. type: integer
  1871. description: Number of alarms in critical state.
  1872. chart_summary:
  1873. type: object
  1874. properties:
  1875. hostname:
  1876. type: string
  1877. description: The hostname of the netdata server.
  1878. version:
  1879. type: string
  1880. description: netdata version of the server.
  1881. release_channel:
  1882. type: string
  1883. description: The release channel of the build on the server.
  1884. example: nightly
  1885. timezone:
  1886. type: string
  1887. description: The current timezone on the server.
  1888. os:
  1889. type: string
  1890. description: The netdata server host operating system.
  1891. enum:
  1892. - macos
  1893. - linux
  1894. - freebsd
  1895. history:
  1896. type: number
  1897. description: The duration, in seconds, of the round robin database maintained by
  1898. netdata.
  1899. memory_mode:
  1900. type: string
  1901. description: The name of the database memory mode on the server.
  1902. update_every:
  1903. type: number
  1904. description: The default update frequency of the netdata server. All charts have
  1905. an update frequency equal or bigger than this.
  1906. charts:
  1907. type: object
  1908. description: An object containing all the chart objects available at the netdata
  1909. server. This is used as an indexed array. The key of each chart
  1910. object is the id of the chart.
  1911. additionalProperties:
  1912. $ref: "#/components/schemas/chart"
  1913. charts_count:
  1914. type: number
  1915. description: The number of charts.
  1916. dimensions_count:
  1917. type: number
  1918. description: The total number of dimensions.
  1919. alarms_count:
  1920. type: number
  1921. description: The number of alarms.
  1922. rrd_memory_bytes:
  1923. type: number
  1924. description: The size of the round robin database in bytes.
  1925. chart:
  1926. type: object
  1927. properties:
  1928. id:
  1929. type: string
  1930. description: The unique id of the chart.
  1931. name:
  1932. type: string
  1933. description: The name of the chart.
  1934. type:
  1935. type: string
  1936. description: The type of the chart. Types are not handled by netdata. You can use
  1937. this field for anything you like.
  1938. family:
  1939. type: string
  1940. description: The family of the chart. Families are not handled by netdata. You
  1941. can use this field for anything you like.
  1942. title:
  1943. type: string
  1944. description: The title of the chart.
  1945. priority:
  1946. type: number
  1947. description: The relative priority of the chart. Netdata does not care about
  1948. priorities. This is just an indication of importance for the chart
  1949. viewers to sort charts of higher priority (lower number) closer to
  1950. the top. Priority sorting should only be used among charts of the
  1951. same type or family.
  1952. enabled:
  1953. type: boolean
  1954. description: True when the chart is enabled. Disabled charts do not currently
  1955. collect values, but they may have historical values available.
  1956. units:
  1957. type: string
  1958. description: The unit of measurement for the values of all dimensions of the
  1959. chart.
  1960. data_url:
  1961. type: string
  1962. description: The absolute path to get data values for this chart. You are
  1963. expected to use this path as the base when constructing the URL to
  1964. fetch data values for this chart.
  1965. chart_type:
  1966. type: string
  1967. description: The chart type.
  1968. enum:
  1969. - line
  1970. - area
  1971. - stacked
  1972. duration:
  1973. type: number
  1974. description: The duration, in seconds, of the round robin database maintained by
  1975. netdata.
  1976. first_entry:
  1977. type: number
  1978. description: The UNIX timestamp of the first entry (the oldest) in the round
  1979. robin database.
  1980. last_entry:
  1981. type: number
  1982. description: The UNIX timestamp of the latest entry in the round robin database.
  1983. update_every:
  1984. type: number
  1985. description: The update frequency of this chart, in seconds. One value every this
  1986. amount of time is kept in the round robin database.
  1987. dimensions:
  1988. type: object
  1989. description: |
  1990. An object containing all the chart dimensions available for the chart. This is used as an indexed array. For each pair in the dictionary: the key is the id of the dimension and the value is a dictionary containing the name."
  1991. additionalProperties:
  1992. type: object
  1993. properties:
  1994. name:
  1995. type: string
  1996. description: The name of the dimension
  1997. chart_variables:
  1998. type: object
  1999. additionalProperties:
  2000. $ref: "#/components/schemas/chart_variables"
  2001. green:
  2002. type: number
  2003. nullable: true
  2004. description: Chart health green threshold.
  2005. red:
  2006. type: number
  2007. nullable: true
  2008. description: Chart health red threshold.
  2009. context_summary:
  2010. type: object
  2011. properties:
  2012. hostname:
  2013. type: string
  2014. description: The hostname of the netdata server.
  2015. machine_guid:
  2016. type: string
  2017. description: The unique installation id of this netdata server.
  2018. node_id:
  2019. type: string
  2020. description: The unique node id of this netdata server at the hub.
  2021. example: nightly
  2022. claim_id:
  2023. type: string
  2024. description: The unique handshake id of this netdata server and the hub.
  2025. host_labels:
  2026. type: object
  2027. description: The host labels associated with this netdata server.
  2028. context:
  2029. type: object
  2030. description: "An object containing all the context objects available at the netdata server.
  2031. This is used as an indexed array. The key of each context object is the id of the context."
  2032. additionalProperties:
  2033. $ref: "#/components/schemas/context"
  2034. context:
  2035. type: object
  2036. properties:
  2037. version:
  2038. type: string
  2039. description: "The version of this context.
  2040. The number are not sequential, but bigger numbers depict a newer object."
  2041. hub_version:
  2042. type: string
  2043. description: The version of this context, as known by hub.
  2044. family:
  2045. type: string
  2046. description: "The family of the context. When multiple charts of a context have different families,
  2047. the netdata server replaces the different parts with [x], so that the context can have only one family."
  2048. title:
  2049. type: string
  2050. description: "The title of the context. When multiple charts of a context have different titles,
  2051. the netdata server replaces the different parts with [x], so that the context can have only one title."
  2052. priority:
  2053. type: number
  2054. description: "The relative priority of the context. When multiple contexts have different priorities,
  2055. the minimum among them is selected as the priority of the context."
  2056. units:
  2057. type: string
  2058. description: "The unit of measurement for the values of all dimensions of the context. If multiple charts
  2059. of context have different units, the latest collected is selected."
  2060. chart_type:
  2061. type: string
  2062. description: The chart type.
  2063. enum:
  2064. - line
  2065. - area
  2066. - stacked
  2067. first_time_t:
  2068. type: number
  2069. description: The UNIX timestamp of the first entry (the oldest) in the database.
  2070. last_time_t:
  2071. type: number
  2072. description: The UNIX timestamp of the latest entry in the database.
  2073. charts:
  2074. type: object
  2075. description: "An object containing all the charts available for the chart. This is used as an indexed array.
  2076. For each pair in the dictionary, the key is the id of the chart and the value provides all details about
  2077. the chart."
  2078. alarm_variables:
  2079. type: object
  2080. properties:
  2081. chart:
  2082. type: string
  2083. description: The unique id of the chart.
  2084. chart_name:
  2085. type: string
  2086. description: The name of the chart.
  2087. cnart_context:
  2088. type: string
  2089. description: The context of the chart. It is shared across multiple monitored
  2090. software or hardware instances and used in alarm templates.
  2091. family:
  2092. type: string
  2093. description: The family of the chart.
  2094. host:
  2095. type: string
  2096. description: The host containing the chart.
  2097. chart_variables:
  2098. type: object
  2099. additionalProperties:
  2100. $ref: "#/components/schemas/chart_variables"
  2101. family_variables:
  2102. type: object
  2103. properties:
  2104. varname1:
  2105. type: number
  2106. format: float
  2107. varname2:
  2108. type: number
  2109. format: float
  2110. host_variables:
  2111. type: object
  2112. properties:
  2113. varname1:
  2114. type: number
  2115. format: float
  2116. varname2:
  2117. type: number
  2118. format: float
  2119. chart_variables:
  2120. type: object
  2121. properties:
  2122. varname1:
  2123. type: number
  2124. format: float
  2125. varname2:
  2126. type: number
  2127. format: float
  2128. jsonwrap2:
  2129. description: |
  2130. Data response with `format=json2`
  2131. type: object
  2132. properties:
  2133. api:
  2134. $ref: '#/components/schemas/api'
  2135. agents:
  2136. $ref: '#/components/schemas/agents'
  2137. versions:
  2138. $ref: '#/components/schemas/versions'
  2139. summary:
  2140. description: |
  2141. Summarized information about nodes, contexts, instances, labels, alerts, and dimensions. The items returned are determined by the scope of the query only, however the statistical data in them are influenced by the filters of the query. Using this information the dashboard allows users to slice and dice the data by filtering and grouping.
  2142. type: object
  2143. properties:
  2144. nodes:
  2145. type: array
  2146. items:
  2147. $ref: '#/components/schemas/nodeWithDataStatistics'
  2148. contexts:
  2149. type: array
  2150. items:
  2151. type: object
  2152. description: |
  2153. An object describing a unique context. `is` stands for instances, `ds` for dimensions, `al` for alerts, `sts` for statistics.
  2154. properties:
  2155. id:
  2156. description: the context id.
  2157. type: string
  2158. is:
  2159. $ref: "#/components/schemas/jsonwrap2_items_count"
  2160. ds:
  2161. $ref: "#/components/schemas/jsonwrap2_items_count"
  2162. al:
  2163. $ref: "#/components/schemas/jsonwrap2_alerts_count"
  2164. sts:
  2165. oneOf:
  2166. - $ref: "#/components/schemas/jsonwrap2_sts"
  2167. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2168. instances:
  2169. type: array
  2170. items:
  2171. type: object
  2172. description: |
  2173. An object describing an instance. `ds` stands for dimensions, `al` for alerts, `sts` for statistics.
  2174. properties:
  2175. id:
  2176. description: the id of the instance.
  2177. type: string
  2178. nm:
  2179. description: the name of the instance (may be absent when it is the same with the id)
  2180. type: string
  2181. ni:
  2182. description: the node index id this instance belongs to. The UI uses this to compone the fully qualified name of the instance, using the node hostname to present it to users and its machine guid to add it to filters.
  2183. ds:
  2184. $ref: "#/components/schemas/jsonwrap2_items_count"
  2185. al:
  2186. $ref: "#/components/schemas/jsonwrap2_alerts_count"
  2187. sts:
  2188. oneOf:
  2189. - $ref: "#/components/schemas/jsonwrap2_sts"
  2190. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2191. dimensions:
  2192. type: array
  2193. items:
  2194. type: object
  2195. description: |
  2196. An object describing a unique dimension. `ds` stands for `dimensions`, `sts` for statistics.
  2197. properties:
  2198. id:
  2199. description: the id of the dimension.
  2200. type: string
  2201. nm:
  2202. description: the name of the dimension (may be absent when it is the same with the id)
  2203. type: string
  2204. ds:
  2205. $ref: "#/components/schemas/jsonwrap2_items_count"
  2206. sts:
  2207. oneOf:
  2208. - $ref: "#/components/schemas/jsonwrap2_sts"
  2209. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2210. labels:
  2211. type: array
  2212. items:
  2213. type: object
  2214. description: |
  2215. An object describing a label key. `ds` stands for `dimensions`, `sts` for statistics.
  2216. properties:
  2217. id:
  2218. description: the key of the label.
  2219. type: string
  2220. ds:
  2221. $ref: "#/components/schemas/jsonwrap2_items_count"
  2222. sts:
  2223. oneOf:
  2224. - $ref: "#/components/schemas/jsonwrap2_sts"
  2225. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2226. vl:
  2227. description: |
  2228. An array of values for this key.
  2229. type: array
  2230. items:
  2231. type: object
  2232. properties:
  2233. id:
  2234. description: The value string
  2235. type: string
  2236. ds:
  2237. $ref: "#/components/schemas/jsonwrap2_items_count"
  2238. sts:
  2239. oneOf:
  2240. - $ref: "#/components/schemas/jsonwrap2_sts"
  2241. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2242. alerts:
  2243. description: |
  2244. An array of all the unique alerts running, grouped by alert name (`nm` is available here)
  2245. type: array
  2246. items:
  2247. $ref: "#/components/schemas/jsonwrap2_alerts_count"
  2248. totals:
  2249. type: object
  2250. properties:
  2251. nodes:
  2252. $ref: "#/components/schemas/jsonwrap2_items_count"
  2253. contexts:
  2254. $ref: "#/components/schemas/jsonwrap2_items_count"
  2255. instances:
  2256. $ref: "#/components/schemas/jsonwrap2_items_count"
  2257. dimensions:
  2258. $ref: "#/components/schemas/jsonwrap2_items_count"
  2259. label_keys:
  2260. $ref: "#/components/schemas/jsonwrap2_items_count"
  2261. label_key_values:
  2262. $ref: "#/components/schemas/jsonwrap2_items_count"
  2263. functions:
  2264. type: array
  2265. items:
  2266. type: string
  2267. db:
  2268. type: object
  2269. properties:
  2270. tiers:
  2271. description: |
  2272. The number of tiers this server is using.
  2273. type: integer
  2274. update_every:
  2275. description: |
  2276. The minimum update every, in seconds, for all tiers and all metrics aggregated into this query.
  2277. type: integer
  2278. first_entry:
  2279. description: |
  2280. The minimum unix epoch timestamp of the retention across all tiers for all metrics aggregated into this query.
  2281. type: integer
  2282. last_entry:
  2283. description: |
  2284. The maximum unix epoch timestamp of the retention across all tier for all metrics aggregated into this query.
  2285. type: integer
  2286. per_tier:
  2287. description: |
  2288. An array with information for each of the tiers available, related to this query.
  2289. type: array
  2290. items:
  2291. type: object
  2292. properties:
  2293. tier:
  2294. description: |
  2295. The tier number of this tier, starting at 0.
  2296. type: integer
  2297. queries:
  2298. description: |
  2299. The number of queries executed on this tier. Usually one query per metric is made, but the query may cross multiple tier, in which case more than one query per metric is made.
  2300. type: integer
  2301. points:
  2302. description: |
  2303. The number of points read from this tier.
  2304. type: integer
  2305. update_every:
  2306. description: |
  2307. The minimum resolution of all metrics queried on this tier.
  2308. type: integer
  2309. first_entry:
  2310. description: |
  2311. The minimum unix epoch timestamp available across all metrics that used this tier. This reflects the oldest timestamp of the tier's retention.
  2312. type: integer
  2313. last_entry:
  2314. description: |
  2315. The maximum unix epoch timestamp available across all metrics that used this tier. This reflects the newest timestamp of the tier's retention.
  2316. units:
  2317. description: |
  2318. The units of the database data
  2319. oneOf:
  2320. - type: string
  2321. - type: array
  2322. items:
  2323. type: string
  2324. dimensions:
  2325. type: object
  2326. properties:
  2327. ids:
  2328. description: |
  2329. An array with the dimension ids that uniquely identify the dimensions for this query. It is the same with `view.dimensions.ids`.
  2330. type: array
  2331. items:
  2332. type: string
  2333. units:
  2334. description: |
  2335. An array with the units each dimension has in the database (independent of group-by aggregation that may override the units).
  2336. type: array
  2337. items:
  2338. type: string
  2339. sts:
  2340. description: |
  2341. Statistics about the data collection points used for each dimension.
  2342. oneOf:
  2343. - $ref: "#/components/schemas/jsonwrap2_sts"
  2344. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2345. view:
  2346. type: object
  2347. properties:
  2348. title:
  2349. description: |
  2350. The title the chart should have.
  2351. type: string
  2352. format:
  2353. description: |
  2354. The format the `result` top level member has. Available on when `debug` flag is set.
  2355. type: string
  2356. options:
  2357. description: |
  2358. An array presenting all the options given to the query. Available on when `debug` flag is set.
  2359. type: array
  2360. items:
  2361. type: string
  2362. time_group:
  2363. description: |
  2364. The same as the parameter `time_group`. Available on when `debug` flag is set.
  2365. type: string
  2366. after:
  2367. description: |
  2368. The oldest unix epoch timestamp of the data returned in the `result`.
  2369. type: integer
  2370. before:
  2371. description: |
  2372. The newest unix epoch timestamp of the data returned in the `result`.
  2373. type: integer
  2374. partial_data_trimming:
  2375. description: |
  2376. Information related to trimming of the last few points of the `result`, that was required to remove (increasing) partial data.
  2377. Trimming is disabled when the `raw` option is given to the query.
  2378. This object is available only when the `debug` flag is set.
  2379. type: object
  2380. properties:
  2381. max_update_every:
  2382. description: |
  2383. The maximum `update_every` for all metrics aggregated into the query.
  2384. Trimming is by default enabled at `view.before - max_update_every`, but only when `view.before >= now - max_update_every`.
  2385. type: integer
  2386. expected_after:
  2387. description: |
  2388. The timestamp at which trimming can be enabled.
  2389. If this timestamp is greater or equal to `view.before`, there is no trimming.
  2390. type: integer
  2391. trimmed_after:
  2392. description: |
  2393. The timestamp at which trimming has been applied.
  2394. If this timestamp is greater or equal to `view.before`, there is no trimming.
  2395. points:
  2396. description: |
  2397. The number of points in `result`. Available only when `raw` is given.
  2398. type: integer
  2399. units:
  2400. description: |
  2401. The units of the query.
  2402. oneOf:
  2403. - type: string
  2404. - type: array
  2405. items:
  2406. type: string
  2407. chart_type:
  2408. description: |
  2409. The default chart type of the query.
  2410. type: string
  2411. enum:
  2412. - line
  2413. - area
  2414. - stacked
  2415. dimensions:
  2416. description: |
  2417. Detailed information about the chart dimensions included in the `result`.
  2418. type: object
  2419. properties:
  2420. grouped_by:
  2421. description: |
  2422. An array with the order of the groupings performed.
  2423. type: array
  2424. items:
  2425. type: string
  2426. enum:
  2427. - selected
  2428. - dimension
  2429. - instance
  2430. - node
  2431. - context
  2432. - units
  2433. - "label:key1"
  2434. - "label:key2"
  2435. - "label:keyN"
  2436. ids:
  2437. description: |
  2438. An array with the dimension ids that uniquely identify the dimensions for this query.
  2439. type: array
  2440. items:
  2441. type: string
  2442. names:
  2443. description: |
  2444. An array with the dimension names to be presented to users. Names may be overlapping, but IDs are not.
  2445. type: array
  2446. items:
  2447. type: string
  2448. priorities:
  2449. description: |
  2450. An array with the relative priorities of the dimensions.
  2451. Numbers may not be sequential or unique. The application is expected to order by this and then by name.
  2452. type: array
  2453. items:
  2454. type: integer
  2455. aggregated:
  2456. description: |
  2457. An array with the number of source metrics aggregated into each dimension.
  2458. type: array
  2459. items:
  2460. type: integer
  2461. units:
  2462. description: |
  2463. An array with the units each dimension has.
  2464. type: array
  2465. items:
  2466. type: string
  2467. sts:
  2468. description: |
  2469. Statistics about the view points for each dimension.
  2470. oneOf:
  2471. - $ref: "#/components/schemas/jsonwrap2_sts"
  2472. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2473. labels:
  2474. description: |
  2475. The labels associated with each dimension in the query.
  2476. This object is only available when the `group-by-labels` option is given to the query.
  2477. type: object
  2478. properties:
  2479. label_key1:
  2480. description: |
  2481. An array having one entry for each of the dimensions of the query.
  2482. type: array
  2483. items:
  2484. description: |
  2485. An array having one entry for each of the values this label key has for the given dimension.
  2486. type: array
  2487. items:
  2488. type: string
  2489. min:
  2490. description: |
  2491. The minimum value of all points included in the `result`.
  2492. type: number
  2493. max:
  2494. description: |
  2495. The maximum value of all points included in the `result`.
  2496. type: number
  2497. result:
  2498. $ref: '#/components/schemas/data_json_formats2'
  2499. timings:
  2500. type: object
  2501. jsonwrap2_sts:
  2502. description: |
  2503. Statistical values
  2504. type: object
  2505. properties:
  2506. min:
  2507. description: The minimum value of all metrics aggregated
  2508. type: number
  2509. max:
  2510. description: The maximum value of all metrics aggregated
  2511. type: number
  2512. avg:
  2513. description: The average value of all metrics aggregated
  2514. type: number
  2515. arp:
  2516. description: The average anomaly rate of all metrics aggregated
  2517. type: number
  2518. con:
  2519. description: The contribution percentage of all the metrics aggregated
  2520. type: number
  2521. jsonwrap2_sts_raw:
  2522. description: |
  2523. Statistical values when `raw` option is given.
  2524. type: object
  2525. properties:
  2526. min:
  2527. description: The minimum value of all metrics aggregated
  2528. type: number
  2529. max:
  2530. description: The maximum value of all metrics aggregated
  2531. type: number
  2532. sum:
  2533. description: The sum value of all metrics aggregated
  2534. type: number
  2535. ars:
  2536. description: The sum anomaly rate of all metrics aggregated
  2537. type: number
  2538. vol:
  2539. description: The volume of all the metrics aggregated
  2540. type: number
  2541. cnt:
  2542. description: The count of all metrics aggregated
  2543. type: integer
  2544. jsonwrap2_items_count:
  2545. description: |
  2546. Depending on the placement of this object, `items` may be `nodes`, `contexts`, `instances`, `dimensions`, `label keys`, `label key-value pairs`. Furthermore, if the whole object is missing it should be assumed that all its members are zero.
  2547. type: object
  2548. properties:
  2549. sl:
  2550. description: The number of items `selected` to query. If absent it is zero.
  2551. type: integer
  2552. ex:
  2553. description: The number of items `excluded` from querying. If absent it is zero.
  2554. type: integer
  2555. qr:
  2556. description: The number of items (out of `selected`) the query successfully `queried`. If absent it is zero.
  2557. type: integer
  2558. fl:
  2559. description: The number of items (from `selected`) that `failed` to be queried. If absent it is zero.
  2560. type: integer
  2561. jsonwrap2_alerts_count:
  2562. description: |
  2563. Counters about alert statuses. If this object is missing, it is assumed that all its members are zero.
  2564. type: object
  2565. properties:
  2566. nm:
  2567. description: The name of the alert. Can be absent when the counters refer to more than one alert instances.
  2568. type: string
  2569. cl:
  2570. description: The number of CLEAR alerts. If absent, it is zero.
  2571. type: integer
  2572. wr:
  2573. description: The number of WARNING alerts. If absent, it is zero.
  2574. type: integer
  2575. cr:
  2576. description: The number of CRITICAL alerts. If absent, it is zero.
  2577. type: integer
  2578. ot:
  2579. description: |
  2580. The number of alerts that are not CLEAR, WARNING, CRITICAL (so, they are "other"). If absent, it is zero.
  2581. type: integer
  2582. api:
  2583. description: The version of the API used.
  2584. type: integer
  2585. agents:
  2586. description: |
  2587. An array of agent definitions consulted to compose this response.
  2588. type: array
  2589. items:
  2590. type: object
  2591. properties:
  2592. mg:
  2593. description: The agent machine GUID.
  2594. type: string
  2595. format: uuid
  2596. nd:
  2597. description: The agent cloud node ID.
  2598. type: string
  2599. format: uuid
  2600. nm:
  2601. description: The agent hostname.
  2602. type: string
  2603. ai:
  2604. description: The agent index ID for this agent, in this response.
  2605. type: integer
  2606. now:
  2607. description: The current unix epoch timestamp of this agent.
  2608. type: integer
  2609. versions:
  2610. description: |
  2611. Hashes that allow the caller to detect important database changes of Netdata agents.
  2612. type: object
  2613. properties:
  2614. nodes_hard_hash:
  2615. description: |
  2616. An auto-increment value that reflects the number of changes to the number of nodes maintained by the server. Everytime a node is added or removed, this number gets incremented.
  2617. type: integer
  2618. contexts_hard_hash:
  2619. description: |
  2620. An auto-increment value that reflects the number of changes to the number of contexts maintained by the server. Everytime a context is added or removed, this number gets incremented.
  2621. type: integer
  2622. contexts_soft_hash:
  2623. description: |
  2624. An auto-increment value that reflects the number of changes to the queue that sends contexts updates to Netdata Cloud. Everytime the contents of a context are updated, this number gets incremented.
  2625. type: integer
  2626. alerts_hard_hash:
  2627. description: |
  2628. An auto-increment value that reflects the number of changes to the number of alerts. Everytime an alert is added or removed, this number gets incremented.
  2629. type: integer
  2630. alerts_soft_hash:
  2631. description: |
  2632. An auto-increment value that reflects the number of alerts transitions. Everytime an alert transitions to a new state, this number gets incremented.
  2633. type: integer
  2634. nodeBasic:
  2635. type: object
  2636. description: Basic information about a node.
  2637. required:
  2638. - ni
  2639. - st
  2640. properties:
  2641. mg:
  2642. description: The machine guid of the node. May not be available if the request is served by the Netdata Cloud.
  2643. type: string
  2644. format: UUID
  2645. nd:
  2646. description: The node id of the node. May not be available if the node is not registered to Netdata Cloud.
  2647. type: string
  2648. format: UUID
  2649. nm:
  2650. description: The name (hostname) of the node.
  2651. type: string
  2652. ni:
  2653. description: The node index id, a number that uniquely identifies this node for this query.
  2654. type: integer
  2655. st:
  2656. description: Status information about the communication with this node.
  2657. type: object
  2658. properties:
  2659. ai:
  2660. description: The agent index id that has been contacted for this node.
  2661. type: integer
  2662. code:
  2663. description: The HTTP response code of the response for this node. When working directly with an agent, this is always 200. If the `code` is missing, it should be assumed to be 200.
  2664. type: integer
  2665. msg:
  2666. description: A human readable description of the error, if any. If `msg` is missing, or is the empty string `""` or is `null`, there is no description associated with the current status.
  2667. type: string
  2668. ms:
  2669. description: The time in milliseconds this node took to respond, or if the local agent responded for this node, the time it needed to execute the query. If `ms` is missing, the time that was required to query this node is unknown.
  2670. type: number
  2671. nodeWithDataStatistics:
  2672. allOf:
  2673. - $ref: '#/components/schemas/nodeBasic'
  2674. - type: object
  2675. description: |
  2676. `is` stands for instances, `ds` for dimensions, `al` for alerts, `sts` for statistics.
  2677. properties:
  2678. is:
  2679. $ref: "#/components/schemas/jsonwrap2_items_count"
  2680. ds:
  2681. $ref: "#/components/schemas/jsonwrap2_items_count"
  2682. al:
  2683. $ref: "#/components/schemas/jsonwrap2_alerts_count"
  2684. sts:
  2685. oneOf:
  2686. - $ref: "#/components/schemas/jsonwrap2_sts"
  2687. - $ref: "#/components/schemas/jsonwrap2_sts_raw"
  2688. nodeFull:
  2689. allOf:
  2690. - $ref: '#/components/schemas/nodeBasic'
  2691. - type: object
  2692. properties:
  2693. version:
  2694. description: The version of the Netdata Agent the node runs.
  2695. type: string
  2696. hops:
  2697. description: How many hops away from the origin node, the queried one is. 0 means the agent itself is the origin node.
  2698. type: integer
  2699. state:
  2700. description: The current state of the node on this agent.
  2701. type: string
  2702. enum:
  2703. - reachable
  2704. - stale
  2705. - offline
  2706. context2Basic:
  2707. type: object
  2708. properties:
  2709. family:
  2710. type: string
  2711. priority:
  2712. type: integer
  2713. first_entry:
  2714. type: integer
  2715. last_entry:
  2716. type: integer
  2717. live:
  2718. type: boolean
  2719. contexts2:
  2720. description: |
  2721. `/api/v2/contexts` and `/api/v2/q` response about multi-node contexts hosted by a Netdata agent.
  2722. type: object
  2723. properties:
  2724. api:
  2725. $ref: '#/components/schemas/api'
  2726. agents:
  2727. $ref: '#/components/schemas/agents'
  2728. versions:
  2729. $ref: '#/components/schemas/versions'
  2730. contexts:
  2731. additionalProperties:
  2732. $ref: '#/components/schemas/context2Basic'
  2733. jsonwrap1:
  2734. type: object
  2735. discriminator:
  2736. propertyName: format
  2737. description: Response will contain the appropriate subtype, e.g. data_json depending
  2738. on the requested format.
  2739. properties:
  2740. api:
  2741. type: number
  2742. description: The API version this conforms to.
  2743. id:
  2744. type: string
  2745. description: The unique id of the chart.
  2746. name:
  2747. type: string
  2748. description: The name of the chart.
  2749. update_every:
  2750. type: number
  2751. description: The update frequency of this chart, in seconds. One value every this
  2752. amount of time is kept in the round robin database (independently of
  2753. the current view).
  2754. view_update_every:
  2755. type: number
  2756. description: The current view appropriate update frequency of this chart, in
  2757. seconds. There is no point to request chart refreshes, using the
  2758. same settings, more frequently than this.
  2759. first_entry:
  2760. type: number
  2761. description: The UNIX timestamp of the first entry (the oldest) in the round
  2762. robin database (independently of the current view).
  2763. last_entry:
  2764. type: number
  2765. description: The UNIX timestamp of the latest entry in the round robin database
  2766. (independently of the current view).
  2767. after:
  2768. type: number
  2769. description: The UNIX timestamp of the first entry (the oldest) returned in this
  2770. response.
  2771. before:
  2772. type: number
  2773. description: The UNIX timestamp of the latest entry returned in this response.
  2774. min:
  2775. type: number
  2776. description: The minimum value returned in the current view. This can be used to
  2777. size the y-series of the chart.
  2778. max:
  2779. type: number
  2780. description: The maximum value returned in the current view. This can be used to
  2781. size the y-series of the chart.
  2782. dimension_names:
  2783. description: The dimension names of the chart as returned in the current view.
  2784. type: array
  2785. items:
  2786. type: string
  2787. dimension_ids:
  2788. description: The dimension IDs of the chart as returned in the current view.
  2789. type: array
  2790. items:
  2791. type: string
  2792. latest_values:
  2793. description: The latest values collected for the chart (independently of the
  2794. current view).
  2795. type: array
  2796. items:
  2797. type: string
  2798. view_latest_values:
  2799. description: The latest values returned with this response.
  2800. type: array
  2801. items:
  2802. type: string
  2803. dimensions:
  2804. type: number
  2805. description: The number of dimensions returned.
  2806. points:
  2807. type: number
  2808. description: The number of rows / points returned.
  2809. format:
  2810. type: string
  2811. description: The format of the result returned.
  2812. chart_variables:
  2813. type: object
  2814. additionalProperties:
  2815. $ref: '#/components/schemas/chart_variables'
  2816. result:
  2817. $ref: '#/components/schemas/data_json_formats1'
  2818. data_json_formats1:
  2819. description: |
  2820. Depending on the `format` given to a data query, any of the following may be returned.
  2821. oneOf:
  2822. - $ref: '#/components/schemas/data_json'
  2823. - $ref: '#/components/schemas/data_datatable'
  2824. - $ref: '#/components/schemas/data_csvjsonarray'
  2825. - $ref: '#/components/schemas/data_array'
  2826. - $ref: '#/components/schemas/data_txt'
  2827. data_json_formats2:
  2828. description: |
  2829. Depending on the `format` given to a data query, any of the following may be returned.
  2830. oneOf:
  2831. - $ref: '#/components/schemas/data_json2'
  2832. - $ref: '#/components/schemas/data_json_formats1'
  2833. data_json2:
  2834. type: object
  2835. properties:
  2836. labels:
  2837. description: |
  2838. The IDs of the dimensions returned. The first is always `time`.
  2839. type: array
  2840. items:
  2841. type: string
  2842. point:
  2843. description: |
  2844. The format of each point returned.
  2845. type: object
  2846. properties:
  2847. value:
  2848. description: |
  2849. The index of the value in each point.
  2850. type: integer
  2851. arp:
  2852. description: |
  2853. The index of the anomaly rate in each point.
  2854. type: integer
  2855. pa:
  2856. description: |
  2857. The index of the point annotations in each point.
  2858. This is a bitmap. `EMPTY = 1`, `RESET = 2`, `PARTIAL = 4`.
  2859. `EMPTY` means the point has no value.
  2860. `RESET` means that at least one metric aggregated experienced an overflow (a counter that wrapped).
  2861. `PARTIAL` means that this point should have more metrics aggregated into it, but not all metrics had data.
  2862. type: integer
  2863. count:
  2864. description: |
  2865. The number of metrics aggregated into this point.
  2866. This exists only when the option `raw` is given to the query and the final aggregation point is NOT `percentage`.
  2867. type: integer
  2868. hidden:
  2869. description: |
  2870. The sum of the non-selected dimensions aggregated for this group item point.
  2871. This exists only when the option `raw` is given to the query and the final aggregation method is `percentage`.
  2872. data:
  2873. type: array
  2874. items:
  2875. allOf:
  2876. - type: integer
  2877. - type: array
  2878. data_json:
  2879. description: Data response in `json` format.
  2880. type: object
  2881. properties:
  2882. labels:
  2883. description: The dimensions retrieved from the chart.
  2884. type: array
  2885. items:
  2886. type: string
  2887. data:
  2888. description: |
  2889. The data requested, one element per sample with each element containing the values of the dimensions described in the labels value.
  2890. type: array
  2891. items:
  2892. type: number
  2893. data_txt:
  2894. description: |
  2895. Data response in `csv`, `tsv`, `tsv-excel`, `ssv`, `ssv-comma`, `markdown`, `html` formats.
  2896. type: string
  2897. data_array:
  2898. description: Data response in `array` format.
  2899. type: array
  2900. items:
  2901. type: number
  2902. data_csvjsonarray:
  2903. description: |
  2904. The first inner array contains strings showing the labels of each column, each subsequent array contains the values for each point in time.
  2905. type: array
  2906. items:
  2907. type: array
  2908. items: {}
  2909. data_datatable:
  2910. description: |
  2911. Data response in datatable / datasource formats (suitable for Google Charts).
  2912. type: object
  2913. properties:
  2914. cols:
  2915. type: array
  2916. items:
  2917. type: object
  2918. properties:
  2919. id:
  2920. description: Always empty - for future use.
  2921. label:
  2922. description: The dimension returned from the chart.
  2923. pattern:
  2924. description: Always empty - for future use.
  2925. type:
  2926. description: The type of data in the column / chart-dimension.
  2927. p:
  2928. description: Contains any annotations for the column.
  2929. required:
  2930. - id
  2931. - label
  2932. - pattern
  2933. - type
  2934. rows:
  2935. type: array
  2936. items:
  2937. type: object
  2938. properties:
  2939. c:
  2940. type: array
  2941. items:
  2942. properties:
  2943. v:
  2944. description: |
  2945. Each value in the row is represented by an object named `c` with five v fields: data, null, null, 0, the value. This format is fixed by the Google Charts API."
  2946. alarms:
  2947. type: object
  2948. properties:
  2949. hostname:
  2950. type: string
  2951. latest_alarm_log_unique_id:
  2952. type: integer
  2953. format: int32
  2954. status:
  2955. type: boolean
  2956. now:
  2957. type: integer
  2958. format: int32
  2959. alarms:
  2960. type: object
  2961. properties:
  2962. chart-name.alarm-name:
  2963. type: object
  2964. properties:
  2965. id:
  2966. type: integer
  2967. format: int32
  2968. name:
  2969. type: string
  2970. description: Full alarm name.
  2971. chart:
  2972. type: string
  2973. family:
  2974. type: string
  2975. active:
  2976. type: boolean
  2977. description: Will be false only if the alarm is disabled in the
  2978. configuration.
  2979. disabled:
  2980. type: boolean
  2981. description: Whether the health check for this alarm has been disabled
  2982. via a health command API DISABLE command.
  2983. silenced:
  2984. type: boolean
  2985. description: Whether notifications for this alarm have been silenced via
  2986. a health command API SILENCE command.
  2987. exec:
  2988. type: string
  2989. recipient:
  2990. type: string
  2991. source:
  2992. type: string
  2993. units:
  2994. type: string
  2995. info:
  2996. type: string
  2997. status:
  2998. type: string
  2999. last_status_change:
  3000. type: integer
  3001. format: int32
  3002. last_updated:
  3003. type: integer
  3004. format: int32
  3005. next_update:
  3006. type: integer
  3007. format: int32
  3008. update_every:
  3009. type: integer
  3010. format: int32
  3011. delay_up_duration:
  3012. type: integer
  3013. format: int32
  3014. delay_down_duration:
  3015. type: integer
  3016. format: int32
  3017. delay_max_duration:
  3018. type: integer
  3019. format: int32
  3020. delay_multiplier:
  3021. type: integer
  3022. format: int32
  3023. delay:
  3024. type: integer
  3025. format: int32
  3026. delay_up_to_timestamp:
  3027. type: integer
  3028. format: int32
  3029. value_string:
  3030. type: string
  3031. no_clear_notification:
  3032. type: boolean
  3033. lookup_dimensions:
  3034. type: string
  3035. db_after:
  3036. type: integer
  3037. format: int32
  3038. db_before:
  3039. type: integer
  3040. format: int32
  3041. lookup_method:
  3042. type: string
  3043. lookup_after:
  3044. type: integer
  3045. format: int32
  3046. lookup_before:
  3047. type: integer
  3048. format: int32
  3049. lookup_options:
  3050. type: string
  3051. calc:
  3052. type: string
  3053. calc_parsed:
  3054. type: string
  3055. warn:
  3056. type: string
  3057. warn_parsed:
  3058. type: string
  3059. crit:
  3060. type: string
  3061. crit_parsed:
  3062. type: string
  3063. warn_repeat_every:
  3064. type: integer
  3065. format: int32
  3066. crit_repeat_every:
  3067. type: integer
  3068. format: int32
  3069. green:
  3070. type: string
  3071. format: nullable
  3072. red:
  3073. type: string
  3074. format: nullable
  3075. value:
  3076. type: number
  3077. alarm_log_entry:
  3078. type: object
  3079. properties:
  3080. hostname:
  3081. type: string
  3082. unique_id:
  3083. type: integer
  3084. format: int32
  3085. alarm_id:
  3086. type: integer
  3087. format: int32
  3088. alarm_event_id:
  3089. type: integer
  3090. format: int32
  3091. name:
  3092. type: string
  3093. chart:
  3094. type: string
  3095. family:
  3096. type: string
  3097. processed:
  3098. type: boolean
  3099. updated:
  3100. type: boolean
  3101. exec_run:
  3102. type: integer
  3103. format: int32
  3104. exec_failed:
  3105. type: boolean
  3106. exec:
  3107. type: string
  3108. recipient:
  3109. type: string
  3110. exec_code:
  3111. type: integer
  3112. format: int32
  3113. source:
  3114. type: string
  3115. units:
  3116. type: string
  3117. when:
  3118. type: integer
  3119. format: int32
  3120. duration:
  3121. type: integer
  3122. format: int32
  3123. non_clear_duration:
  3124. type: integer
  3125. format: int32
  3126. status:
  3127. type: string
  3128. old_status:
  3129. type: string
  3130. delay:
  3131. type: integer
  3132. format: int32
  3133. delay_up_to_timestamp:
  3134. type: integer
  3135. format: int32
  3136. updated_by_id:
  3137. type: integer
  3138. format: int32
  3139. updates_id:
  3140. type: integer
  3141. format: int32
  3142. value_string:
  3143. type: string
  3144. old_value_string:
  3145. type: string
  3146. silenced:
  3147. type: string
  3148. info:
  3149. type: string
  3150. value:
  3151. type: number
  3152. nullable: true
  3153. old_value:
  3154. type: number
  3155. nullable: true
  3156. alarms_values:
  3157. type: object
  3158. properties:
  3159. hostname:
  3160. type: string
  3161. alarms:
  3162. type: object
  3163. description: HashMap with keys being alarm names
  3164. additionalProperties:
  3165. type: object
  3166. properties:
  3167. id:
  3168. type: integer
  3169. value:
  3170. type: integer
  3171. last_updated:
  3172. type: integer
  3173. format: int32
  3174. status:
  3175. type: string
  3176. enum:
  3177. - REMOVED
  3178. - UNDEFINED
  3179. - UNINITIALIZED
  3180. - CLEAR
  3181. - RAISED
  3182. - WARNING
  3183. - CRITICAL
  3184. - UNKNOWN
  3185. aclk_state:
  3186. type: object
  3187. properties:
  3188. aclk-available:
  3189. type: string
  3190. description: |
  3191. Describes whether this agent is capable of connection to the Cloud. False means agent has been built without ACLK component either on purpose (user choice) or due to missing dependency.
  3192. aclk-version:
  3193. type: integer
  3194. description: Describes which ACLK version is currently used.
  3195. protocols-supported:
  3196. type: array
  3197. description: List of supported protocols for communication with Cloud.
  3198. items:
  3199. type: string
  3200. agent-claimed:
  3201. type: boolean
  3202. description: Informs whether this agent has been added to a space in the cloud (User has to perform claiming).
  3203. If false (user didn't perform claiming) agent will never attempt any cloud connection.
  3204. claimed_id:
  3205. type: string
  3206. format: uuid
  3207. description: Unique ID this agent uses to identify when connecting to cloud
  3208. online:
  3209. type: boolean
  3210. description: Informs if this agent was connected to the cloud at the time this request has been processed.
  3211. used-cloud-protocol:
  3212. type: string
  3213. description: Informs which protocol is used to communicate with cloud
  3214. enum:
  3215. - Old
  3216. - New
  3217. metric_correlations:
  3218. type: object
  3219. properties:
  3220. after:
  3221. description: the start time of the highlighted window
  3222. type: integer
  3223. before:
  3224. description: the end time of the highlighted window
  3225. type: integer
  3226. duration:
  3227. description: the duration of the highlighted window
  3228. type: integer
  3229. points:
  3230. description: the points of the highlighted window
  3231. type: integer
  3232. baseline_after:
  3233. description: the start time of the baseline window
  3234. type: integer
  3235. baseline_before:
  3236. description: the end time of the baseline window
  3237. type: integer
  3238. baseline_duration:
  3239. description: the duration of the baseline window
  3240. type: integer
  3241. baseline_points:
  3242. description: the points of the baseline window
  3243. type: integer
  3244. group:
  3245. description: the grouping method across time
  3246. type: string
  3247. method:
  3248. description: the correlation method used
  3249. type: string
  3250. options:
  3251. description: a comma separated list of the query options set
  3252. type: string
  3253. correlated_dimensions:
  3254. description: the number of dimensions returned in the result
  3255. total_dimensions_count:
  3256. description: the total number of dimensions evaluated
  3257. type: integer
  3258. statistics:
  3259. type: object
  3260. properties:
  3261. query_time_ms:
  3262. type: number
  3263. db_queries:
  3264. type: integer
  3265. db_points_read:
  3266. type: integer
  3267. query_result_points:
  3268. type: integer
  3269. binary_searches:
  3270. type: integer
  3271. correlated_charts:
  3272. type: object
  3273. description: An object containing chart objects with their metrics correlations.
  3274. properties:
  3275. chart-id1:
  3276. type: object
  3277. properties:
  3278. context:
  3279. type: string
  3280. dimensions:
  3281. type: object
  3282. properties:
  3283. dimension1-name:
  3284. type: number
  3285. dimension2-name:
  3286. type: number
  3287. chart-id2:
  3288. type: object
  3289. properties:
  3290. context:
  3291. type: string
  3292. dimensions:
  3293. type: object
  3294. properties:
  3295. dimension1-name:
  3296. type: number
  3297. dimension2-name:
  3298. type: number
  3299. weights2:
  3300. type: object
  3301. weights:
  3302. type: object
  3303. properties:
  3304. after:
  3305. description: the start time of the highlighted window
  3306. type: integer
  3307. before:
  3308. description: the end time of the highlighted window
  3309. type: integer
  3310. duration:
  3311. description: the duration of the highlighted window
  3312. type: integer
  3313. points:
  3314. description: the points of the highlighted window
  3315. type: integer
  3316. baseline_after:
  3317. description: the start time of the baseline window
  3318. type: integer
  3319. baseline_before:
  3320. description: the end time of the baseline window
  3321. type: integer
  3322. baseline_duration:
  3323. description: the duration of the baseline window
  3324. type: integer
  3325. baseline_points:
  3326. description: the points of the baseline window
  3327. type: integer
  3328. group:
  3329. description: the grouping method across time
  3330. type: string
  3331. method:
  3332. description: the correlation method used
  3333. type: string
  3334. options:
  3335. description: a comma separated list of the query options set
  3336. type: string
  3337. correlated_dimensions:
  3338. description: the number of dimensions returned in the result
  3339. total_dimensions_count:
  3340. description: the total number of dimensions evaluated
  3341. type: integer
  3342. statistics:
  3343. type: object
  3344. properties:
  3345. query_time_ms:
  3346. type: number
  3347. db_queries:
  3348. type: integer
  3349. db_points_read:
  3350. type: integer
  3351. query_result_points:
  3352. type: integer
  3353. binary_searches:
  3354. type: integer
  3355. contexts:
  3356. description: A dictionary of weighted context objects.
  3357. type: object
  3358. additionalProperties:
  3359. $ref: '#/components/schemas/weighted_context'
  3360. weighted_context:
  3361. type: object
  3362. properties:
  3363. weight:
  3364. description: The average weight of the context.
  3365. type: number
  3366. charts:
  3367. description: A dictionary of weighted chart objects.
  3368. type: object
  3369. additionalProperties:
  3370. $ref: '#/components/schemas/weighted_chart'
  3371. weighted_chart:
  3372. type: object
  3373. properties:
  3374. weight:
  3375. description: The average weight of the context.
  3376. type: number
  3377. dimensions:
  3378. description: A dictionary of weighted dimensions.
  3379. type: object
  3380. additionalProperties:
  3381. $ref: '#/components/schemas/weighted_dimension'
  3382. weighted_dimension:
  3383. type: number
  3384. config_schema:
  3385. type: object
  3386. properties:
  3387. jsonSchema:
  3388. type: object
  3389. description: Standard JSON Schema object describing the schema of each configurable entity.
  3390. uiSchema:
  3391. type: object
  3392. description: Schema for react-json-schema-form to drive the UI. Provides additional UI-specific configuration.
  3393. config_tree:
  3394. type: object
  3395. properties:
  3396. version:
  3397. type: integer
  3398. description: The version of dynamic configuration supported by the Netdata agent.
  3399. tree:
  3400. type: object
  3401. description: A map of configuration entity paths, each containing one or more configurable entities.
  3402. additionalProperties:
  3403. type: object
  3404. additionalProperties:
  3405. $ref: '#/components/schemas/config_entity'
  3406. attention:
  3407. $ref: '#/components/schemas/config_attention'
  3408. config_entity:
  3409. type: object
  3410. properties:
  3411. type:
  3412. type: string
  3413. description: Can be 'single' for entities appearing once, 'template' for entities supporting multiple instances, or 'job' for jobs belonging to a template.
  3414. status:
  3415. type: string
  3416. description: The current status of the entity. Values include 'accepted', 'running', 'failed', 'disabled', 'incomplete', or 'orphan'.
  3417. cmds:
  3418. type: array
  3419. items:
  3420. type: string
  3421. description: An array of the possible actions supported by this entity.
  3422. source_type:
  3423. type: string
  3424. description: The source type of the configuration (e.g., 'internal', 'stock', 'user', 'discovered', 'dyncfg').
  3425. source:
  3426. type: string
  3427. description: Additional information about the source, formatted as comma-separated name-value pairs.
  3428. sync:
  3429. type: boolean
  3430. description: Indicates if this is an internal module (true) or an external plugin (false).
  3431. user_disabled:
  3432. type: boolean
  3433. description: True if the entity is disabled by the user.
  3434. restart_required:
  3435. type: boolean
  3436. description: True if the entity requires a restart after addition or update.
  3437. plugin_rejected:
  3438. type: boolean
  3439. description: True if a previously saved configuration failed to apply after a restart.
  3440. payload:
  3441. type: object
  3442. description: Object containing at least an 'available' boolean indicating if there's a saved configuration for this entity.
  3443. properties:
  3444. available:
  3445. type: boolean
  3446. saves:
  3447. type: integer
  3448. description: The number of times this configuration has been saved to disk by the dynamic configuration manager.
  3449. created_ut:
  3450. type: integer
  3451. format: int64
  3452. description: The timestamp in microseconds when this dynamic configuration was first created.
  3453. modified_ut:
  3454. type: integer
  3455. format: int64
  3456. description: The timestamp in microseconds when this dynamic configuration was last modified.
  3457. template:
  3458. type: string
  3459. description: Shows the template the job belongs to, applicable when type is 'job'.
  3460. config_attention:
  3461. type: object
  3462. properties:
  3463. degraded:
  3464. type: boolean
  3465. restart_required:
  3466. type: integer
  3467. plugin_rejected:
  3468. type: integer
  3469. status_failed:
  3470. type: integer
  3471. status_incomplete:
  3472. type: integer
  3473. config_default_response:
  3474. type: object
  3475. properties:
  3476. status:
  3477. type: integer
  3478. description: The HTTP status code of the response.
  3479. message:
  3480. type: string
  3481. description: A descriptive message about the response or the action taken.
  3482. data:
  3483. type: object
  3484. description: The data payload of the response, contents vary depending on the specific request and action.
  3485. additionalProperties: true