3
"info": {
4
"title": "Netdata API",
5
"description": "Real-time performance and health monitoring.",
6
- "version": "1.33.1"
6
+ "version": "1.38"
7
},
8
"paths": {
9
- "/info": {
9
+ "/api/v1/info": {
10
"get": {
11
"summary": "Get netdata basic information",
12
"description": "The info endpoint returns basic information about netdata. It provides:\n* netdata version\n* netdata unique id\n* list of hosts mirrored (includes itself)\n* Operating System, Virtualization, K8s nodes and Container technology information\n* List of active collector plugins and modules\n* Streaming information\n* number of alarms in the host\n * number of alarms in normal state\n * number of alarms in warning state\n * number of alarms in critical state\n",
27
}
28
}
29
},
30
- "/charts": {
30
+ "/api/v1/charts": {
31
"get": {
32
"summary": "Get a list of all charts available at the server",
33
"description": "The charts endpoint returns a summary about all charts stored in the netdata server.",
45
}
46
}
47
},
48
- "/chart": {
48
+ "/api/v1/chart": {
49
"get": {
50
"summary": "Get info about a specific chart",
51
"description": "The chart endpoint returns detailed information about a chart.",
82
}
83
}
84
},
85
- "/contexts": {
85
+ "/api/v1/contexts": {
86
"get": {
87
"summary": "Get a list of all contexts available at the server",
88
"description": "The contexts endpoint returns a summary about all contexts stored in the netdata server.",
180
}
181
}
182
},
183
- "/context": {
183
+ "/api/v1/context": {
184
"get": {
185
"summary": "Get info about a specific context",
186
"description": "The context endpoint returns detailed information about a given context.",
295
}
296
}
297
},
298
- "/alarm_variables": {
298
+ "/api/v1/alarm_variables": {
299
"get": {
300
"summary": "List variables available to configure alarms for a chart",
301
"description": "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.",
335
}
336
}
337
},
338
- "/data": {
338
+ "/api/v2/data": {
339
"get": {
340
- "summary": "Get collected data for a specific chart",
341
- "description": "The data endpoint returns data stored in the round robin database of a chart.",
340
+ "summary": "Query metrics data",
341
+ "description": "Multi-node, multi-context, multi-instance, multi-dimension data queries, with time and metric aggregation.\n",
342
"parameters": [
343
{
344
- "name": "chart",
344
+ "name": "scope_nodes",
345
"in": "query",
346
- "description": "The id of the chart as returned by the /charts call. Note chart or context must be specified",
346
+ "description": "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, 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.\n",
347
"required": false,
348
- "allowEmptyValue": false,
348
"schema": {
349
"type": "string",
351
- "format": "as returned by /charts",
352
- "default": "system.cpu"
350
+ "format": "simple pattern",
351
+ "default": "*"
352
}
353
},
354
{
356
- "name": "context",
355
+ "name": "scope_contexts",
356
"in": "query",
358
- "description": "The context of the chart as returned by the /charts call. Note chart or context must be specified",
357
+ "description": "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 charts of the dashboard (e.g. each context based chart has its own contexts scope, limiting the chart to all the instances of the selected contexts). Both positive and negative simple pattern expressions are supported.\n",
358
"required": false,
360
- "allowEmptyValue": false,
359
"schema": {
360
"type": "string",
363
- "format": "as returned by /charts"
361
+ "format": "simple pattern",
362
+ "default": "*"
363
}
364
},
365
{
367
- "name": "dimension",
366
+ "name": "nodes",
367
"in": "query",
369
- "description": "Zero, one or more dimension ids or names, as returned by the /chart call, separated with comma or pipe. Netdata simple patterns are supported.",
368
+ "description": "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.\n",
369
"required": false,
371
- "allowEmptyValue": false,
370
"schema": {
373
- "type": "array",
374
- "items": {
375
- "type": "string",
376
- "format": "as returned by /charts"
377
- }
371
+ "type": "string",
372
+ "format": "simple pattern",
373
+ "default": "*"
374
}
375
},
376
{
381
- "name": "after",
377
+ "name": "contexts",
378
"in": "query",
383
- "description": "This parameter can either be an absolute timestamp specifying the starting point of the data to be returned, or a relative number of seconds (negative, relative to parameter: before). Netdata will assume it is a relative number if it is less that 3 years (in seconds). If not specified the default is -600 seconds. Netdata will adapt this parameter to the boundaries of the round robin database unless the allow_past option is specified.",
384
- "required": true,
385
- "allowEmptyValue": false,
379
+ "description": "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.\n",
380
+ "required": false,
381
+ "schema": {
382
+ "type": "string",
383
+ "format": "simple pattern",
384
+ "default": "*"
385
+ }
386
+ },
387
+ {
388
+ "name": "instances",
389
+ "in": "query",
390
+ "description": "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.\n",
391
+ "required": false,
392
+ "schema": {
393
+ "type": "string",
394
+ "format": "simple pattern",
395
+ "default": "*"
396
+ }
397
+ },
398
+ {
399
+ "name": "labels",
400
+ "in": "query",
401
+ "description": "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.\n",
402
+ "required": false,
403
+ "schema": {
404
+ "type": "string",
405
+ "format": "simple pattern",
406
+ "default": "*"
407
+ }
408
+ },
409
+ {
410
+ "name": "alerts",
411
+ "in": "query",
412
+ "description": "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.\n",
413
+ "required": false,
414
+ "schema": {
415
+ "type": "string",
416
+ "format": "simple pattern",
417
+ "default": "*"
418
+ }
419
+ },
420
+ {
421
+ "name": "dimensions",
422
+ "in": "query",
423
+ "description": "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.\n",
424
+ "required": false,
425
+ "schema": {
426
+ "type": "string",
427
+ "format": "simple pattern",
428
+ "default": "*"
429
+ }
430
+ },
431
+ {
432
+ "name": "before",
433
+ "in": "query",
434
+ "description": "The end timestamp (unix epoch) of the data query, or a negative number specifying the number of seconds\nin the past relative now.\n",
435
+ "required": false,
436
"schema": {
437
"type": "number",
438
"format": "integer",
389
- "default": -600
439
+ "default": 0
440
}
441
},
442
{
393
- "name": "before",
443
+ "name": "after",
444
"in": "query",
395
- "description": "This parameter can either be an absolute timestamp specifying the ending point of the data to be returned, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds). Netdata will adapt this parameter to the boundaries of the round robin database. The default is zero (i.e. the timestamp of the last value collected).",
445
+ "description": "The start timestamp (unix epoch) of the data query, or a negative number specifying the number of seconds\nin the past relative to parameter `before`.\n",
446
"required": false,
447
"schema": {
448
"type": "number",
453
{
454
"name": "points",
455
"in": "query",
406
- "description": "The number of points to be returned. If not given, or it is <= 0, or it is bigger than the points stored in the round robin database for this chart for the given duration, all the available collected values for the given duration will be returned.",
407
- "required": true,
408
- "allowEmptyValue": false,
456
+ "description": "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.\n",
457
+ "required": false,
458
"schema": {
459
"type": "number",
460
"format": "integer",
412
- "default": 20
461
+ "default": 0
462
}
463
},
464
{
416
- "name": "chart_label_key",
465
+ "name": "group_by",
466
"in": "query",
418
- "description": "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.",
467
+ "description": "A comma separated list of the groupings required.\nAll possible values can be combined together, except `selected`. If `selected` is given in the list, all others are ignored.\nThe order they are placed in the list is currently ignored.\n",
468
+ "required": false,
469
+ "schema": {
470
+ "type": "array",
471
+ "items": {
472
+ "type": "string",
473
+ "enum": [
474
+ "dimension",
475
+ "instance",
476
+ "label",
477
+ "node",
478
+ "context",
479
+ "units",
480
+ "selected"
481
+ ]
482
+ },
483
+ "default": [
484
+ "dimension"
485
+ ]
486
+ }
487
+ },
488
+ {
489
+ "name": "group_by_label",
490
+ "in": "query",
491
+ "description": "A comma separated list of the label keys to group by their values. The order of the labels in the list is respected.\n",
492
"required": false,
420
- "allowEmptyValue": false,
493
"schema": {
494
"type": "string",
423
- "format": "key1,key2,key3"
495
+ "format": "comma separated list of label keys to group by",
496
+ "default": ""
497
}
498
},
499
{
427
- "name": "chart_labels_filter",
500
+ "name": "aggregation",
501
"in": "query",
429
- "description": "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",
502
+ "description": "The aggregation function to apply when grouping metrics together.\n",
503
"required": false,
431
- "allowEmptyValue": false,
504
"schema": {
505
"type": "string",
434
- "format": "key1:value1,key2:value2,key3:value3"
506
+ "enum": [
507
+ "min",
508
+ "max",
509
+ "avg",
510
+ "average",
511
+ "sum"
512
+ ],
513
+ "default": "average"
514
}
515
},
516
{
438
- "name": "group",
517
+ "name": "time_group",
518
"in": "query",
440
- "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
519
+ "description": "Time aggregation function. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).\n",
520
"required": true,
442
- "allowEmptyValue": false,
521
"schema": {
522
"type": "string",
523
"enum": [
524
"min",
525
"max",
526
+ "avg",
527
"average",
528
"median",
529
"stddev",
566
}
567
},
568
{
490
- "name": "group_options",
569
+ "name": "time_group_options",
570
"in": "query",
492
- "description": "When the group function supports additional parameters, this field can be used to pass them to it. Currently only \"countif\" supports this.",
571
+ "description": "When the group 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.\n",
572
"required": false,
494
- "allowEmptyValue": false,
573
"schema": {
574
"type": "string"
575
}
576
},
577
{
500
- "name": "gtime",
578
+ "name": "time_resampling",
579
"in": "query",
502
- "description": "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).",
580
+ "description": "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.\n",
581
"required": false,
504
- "allowEmptyValue": false,
582
"schema": {
583
"type": "number",
584
"format": "integer",
588
{
589
"name": "timeout",
590
"in": "query",
514
- "description": "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.",
591
+ "description": "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.\n",
592
"required": false,
516
- "allowEmptyValue": false,
593
"schema": {
594
"type": "number",
595
"format": "integer",
599
{
600
"name": "format",
601
"in": "query",
526
- "description": "The format of the data to be returned.",
602
+ "description": "The format of the data to be returned.\n",
603
"required": true,
604
"allowEmptyValue": false,
605
"schema": {
606
"type": "string",
607
"enum": [
608
"json",
609
+ "json2",
610
"jsonp",
611
"csv",
612
"tsv",
620
"array",
621
"csvjsonarray"
622
],
546
- "default": "json"
623
+ "default": "json2"
624
}
625
},
626
{
627
"name": "options",
628
"in": "query",
552
- "description": "Options that affect data generation.",
629
+ "description": "Options that affect data generation.\n`raw` changes the output so that the values can be aggregated across multiple such queries.\n",
630
"required": false,
631
"allowEmptyValue": false,
632
"schema": {
634
"items": {
635
"type": "string",
636
"enum": [
637
+ "raw",
638
"nonzero",
639
"flip",
562
- "jsonwrap",
640
"min2max",
641
"seconds",
642
"milliseconds",
643
"abs",
644
"absolute",
568
- "absolute-sum",
645
"null2zero",
570
- "objectrows",
571
- "google_json",
646
"percentage",
647
"unaligned",
648
"match-ids",
649
"match-names",
576
- "allow_past",
577
- "anomaly-bit"
650
+ "anomaly-bit",
651
+ "group-by-labels"
652
]
653
},
654
"default": [
657
]
658
}
659
},
660
+ {
661
+ "name": "tier",
662
+ "in": "query",
663
+ "description": "Use only the specified database tier.\n",
664
+ "required": false,
665
+ "schema": {
666
+ "type": "number",
667
+ "format": "integer"
668
+ }
669
+ },
670
{
671
"name": "callback",
672
"in": "query",
589
- "description": "For JSONP responses, the callback function name.",
673
+ "description": "For JSONP responses, the callback function name.\n",
674
"required": false,
591
- "allowEmptyValue": true,
675
"schema": {
676
"type": "string"
677
}
679
{
680
"name": "filename",
681
"in": "query",
599
- "description": "Add Content-Disposition: attachment; filename= header to the response, that will instruct the browser to save the response with the given filename.",
682
+ "description": "Add `Content-Disposition: attachment; filename=` header to the response, that will instruct the browser to save the response with the given filename.\"\n",
683
"required": false,
601
- "allowEmptyValue": true,
684
"schema": {
685
"type": "string"
686
}
688
{
689
"name": "tqx",
690
"in": "query",
609
- "description": "[Google Visualization API](https://developers.google.com/chart/interactive/docs/dev/implementing_data_source?hl=en) formatted parameter.",
691
+ "description": "[Google Visualization API](https://developers.google.com/chart/interactive/docs/dev/implementing_data_source?hl=en) formatted parameter.\n",
692
"required": false,
611
- "allowEmptyValue": true,
693
"schema": {
694
"type": "string"
695
}
697
],
698
"responses": {
699
"200": {
619
- "description": "The call was successful. The response includes the data in the format requested. Swagger2.0 does not process the discriminator field to show polymorphism. The response will be one of the sub-types of the data-schema according to the chosen format, e.g. json -> data_json.",
700
+ "description": "The call was successful. The response includes the data in the format requested. Swagger2.0 does not process the discriminator field to show polymorphism. The response will be one of the sub-types of the data-schema according to the chosen format, e.g. json -> data_json.\n",
701
"content": {
702
"application/json": {
703
"schema": {
623
- "$ref": "#/components/schemas/data"
704
+ "$ref": "#/components/schemas/data_json2"
705
}
706
}
707
}
708
},
709
"400": {
629
- "description": "Bad request - the body will include a message stating what is wrong."
630
- },
631
- "404": {
632
- "description": "Chart or context is not found. The supplied chart or context will be reported."
710
+ "description": "Bad request - the body will include a message stating what is wrong.\n"
711
},
712
"500": {
635
- "description": "Internal server error. This usually means the server is out of memory."
713
+ "description": "Internal server error. This usually means the server is out of memory.\n"
714
}
715
}
716
}
717
},
640
- "/badge.svg": {
718
+ "/api/v1/data": {
719
"get": {
642
- "summary": "Generate a badge in form of SVG image for a chart (or dimension)",
643
- "description": "Successful responses are SVG images.",
720
+ "summary": "Get collected data for a specific chart",
721
+ "description": "The data endpoint returns data stored in the round robin database of a chart.",
722
"parameters": [
723
{
724
"name": "chart",
725
"in": "query",
648
- "description": "The id of the chart as returned by the /charts call.",
649
- "required": true,
726
+ "description": "The id of the chart as returned by the /charts call. Note chart or context must be specified",
727
+ "required": false,
728
"allowEmptyValue": false,
729
"schema": {
730
"type": "string",
733
}
734
},
735
{
658
- "name": "alarm",
736
+ "name": "context",
737
"in": "query",
660
- "description": "The name of an alarm linked to the chart.",
738
+ "description": "The context of the chart as returned by the /charts call. Note chart or context must be specified",
739
"required": false,
662
- "allowEmptyValue": true,
740
+ "allowEmptyValue": false,
741
"schema": {
742
"type": "string",
665
- "format": "any text"
743
+ "format": "as returned by /charts"
744
}
745
},
746
{
747
"name": "dimension",
748
"in": "query",
671
- "description": "Zero, one or more dimension ids, as returned by the /chart call.",
749
+ "description": "Zero, one or more dimension ids or names, as returned by the /chart call, separated with comma or pipe. Netdata simple patterns are supported.",
750
"required": false,
751
"allowEmptyValue": false,
752
"schema": {
760
{
761
"name": "after",
762
"in": "query",
685
- "description": "This parameter can either be an absolute timestamp specifying the starting point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.",
763
+ "description": "This parameter can either be an absolute timestamp specifying the starting point of the data to be returned, or a relative number of seconds (negative, relative to parameter: before). Netdata will assume it is a relative number if it is less that 3 years (in seconds). If not specified the default is -600 seconds. Netdata will adapt this parameter to the boundaries of the round robin database unless the allow_past option is specified.",
764
"required": true,
765
"allowEmptyValue": false,
766
"schema": {
772
{
773
"name": "before",
774
"in": "query",
697
- "description": "This parameter can either be an absolute timestamp specifying the ending point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.",
775
+ "description": "This parameter can either be an absolute timestamp specifying the ending point of the data to be returned, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds). Netdata will adapt this parameter to the boundaries of the round robin database. The default is zero (i.e. the timestamp of the last value collected).",
776
"required": false,
777
"schema": {
778
"type": "number",
780
"default": 0
781
}
782
},
783
+ {
784
+ "name": "points",
785
+ "in": "query",
786
+ "description": "The number of points to be returned. If not given, or it is <= 0, or it is bigger than the points stored in the round robin database for this chart for the given duration, all the available collected values for the given duration will be returned.",
787
+ "required": true,
788
+ "allowEmptyValue": false,
789
+ "schema": {
790
+ "type": "number",
791
+ "format": "integer",
792
+ "default": 20
793
+ }
794
+ },
795
+ {
796
+ "name": "chart_label_key",
797
+ "in": "query",
798
+ "description": "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.",
799
+ "required": false,
800
+ "allowEmptyValue": false,
801
+ "schema": {
802
+ "type": "string",
803
+ "format": "key1,key2,key3"
804
+ }
805
+ },
806
+ {
807
+ "name": "chart_labels_filter",
808
+ "in": "query",
809
+ "description": "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",
810
+ "required": false,
811
+ "allowEmptyValue": false,
812
+ "schema": {
813
+ "type": "string",
814
+ "format": "key1:value1,key2:value2,key3:value3"
815
+ }
816
+ },
817
{
818
"name": "group",
819
"in": "query",
708
- "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods are supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
820
+ "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
821
"required": true,
822
"allowEmptyValue": false,
823
"schema": {
867
}
868
},
869
{
758
- "name": "options",
870
+ "name": "group_options",
871
"in": "query",
760
- "description": "Options that affect data generation.",
872
+ "description": "When the group function supports additional parameters, this field can be used to pass them to it. Currently only \"countif\" supports this.",
873
"required": false,
762
- "allowEmptyValue": true,
874
+ "allowEmptyValue": false,
875
"schema": {
764
- "type": "array",
765
- "items": {
766
- "type": "string",
767
- "enum": [
768
- "abs",
769
- "absolute",
770
- "display-absolute",
771
- "absolute-sum",
772
- "null2zero",
773
- "percentage",
774
- "unaligned",
775
- "anomaly-bit"
776
- ]
777
- },
778
- "default": [
779
- "absolute"
780
- ]
876
+ "type": "string"
877
}
878
},
879
{
784
- "name": "label",
880
+ "name": "gtime",
881
"in": "query",
786
- "description": "A text to be used as the label.",
882
+ "description": "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).",
883
"required": false,
788
- "allowEmptyValue": true,
884
+ "allowEmptyValue": false,
885
"schema": {
790
- "type": "string",
791
- "format": "any text"
886
+ "type": "number",
887
+ "format": "integer",
888
+ "default": 0
889
}
890
},
891
{
795
- "name": "units",
892
+ "name": "timeout",
893
"in": "query",
797
- "description": "A text to be used as the units.",
894
+ "description": "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.",
895
"required": false,
799
- "allowEmptyValue": true,
896
+ "allowEmptyValue": false,
897
"schema": {
801
- "type": "string",
802
- "format": "any text"
898
+ "type": "number",
899
+ "format": "integer",
900
+ "default": 0
901
}
902
},
903
{
806
- "name": "label_color",
904
+ "name": "format",
905
"in": "query",
808
- "description": "A color to be used for the background of the label side(left side) of the badge. One of predefined colors or specific color in hex `RGB` or `RRGGBB` format (without preceding `#` character). If value wrong or not given default color will be used.",
809
- "required": false,
810
- "allowEmptyValue": true,
811
- "schema": {
812
- "oneOf": [
813
- {
814
- "type": "string",
815
- "enum": [
816
- "green",
817
- "brightgreen",
818
- "yellow",
819
- "yellowgreen",
820
- "orange",
821
- "red",
822
- "blue",
823
- "grey",
824
- "gray",
825
- "lightgrey",
826
- "lightgray"
827
- ]
828
- },
829
- {
830
- "type": "string",
831
- "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
832
- }
833
- ]
834
- }
835
- },
836
- {
837
- "name": "value_color",
838
- "in": "query",
839
- "description": "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.",
840
- "required": false,
841
- "allowEmptyValue": true,
906
+ "description": "The format of the data to be returned.",
907
+ "required": true,
908
+ "allowEmptyValue": false,
909
"schema": {
910
"type": "string",
844
- "format": "any text"
845
- }
846
- },
847
- {
848
- "name": "text_color_lbl",
849
- "in": "query",
850
- "description": "Font color for label *(left)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.",
851
- "required": false,
852
- "allowEmptyValue": true,
853
- "schema": {
854
- "oneOf": [
855
- {
856
- "type": "string",
857
- "enum": [
858
- "green",
859
- "brightgreen",
860
- "yellow",
861
- "yellowgreen",
862
- "orange",
863
- "red",
864
- "blue",
865
- "grey",
866
- "gray",
867
- "lightgrey",
868
- "lightgray"
869
- ]
870
- },
871
- {
872
- "type": "string",
873
- "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
874
- }
875
- ]
911
+ "enum": [
912
+ "json",
913
+ "jsonp",
914
+ "csv",
915
+ "tsv",
916
+ "tsv-excel",
917
+ "ssv",
918
+ "ssvcomma",
919
+ "datatable",
920
+ "datasource",
921
+ "html",
922
+ "markdown",
923
+ "array",
924
+ "csvjsonarray"
925
+ ],
926
+ "default": "json"
927
}
928
},
929
{
879
- "name": "text_color_val",
930
+ "name": "options",
931
"in": "query",
881
- "description": "Font color for value *(right)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.",
932
+ "description": "Options that affect data generation.",
933
"required": false,
883
- "allowEmptyValue": true,
934
+ "allowEmptyValue": false,
935
"schema": {
885
- "oneOf": [
886
- {
887
- "type": "string",
888
- "enum": [
889
- "green",
890
- "brightgreen",
891
- "yellow",
892
- "yellowgreen",
893
- "orange",
894
- "red",
895
- "blue",
896
- "grey",
897
- "gray",
898
- "lightgrey",
899
- "lightgray"
900
- ]
901
- },
902
- {
903
- "type": "string",
904
- "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
905
- }
936
+ "type": "array",
937
+ "items": {
938
+ "type": "string",
939
+ "enum": [
940
+ "nonzero",
941
+ "flip",
942
+ "jsonwrap",
943
+ "min2max",
944
+ "seconds",
945
+ "milliseconds",
946
+ "abs",
947
+ "absolute",
948
+ "absolute-sum",
949
+ "null2zero",
950
+ "objectrows",
951
+ "google_json",
952
+ "percentage",
953
+ "unaligned",
954
+ "match-ids",
955
+ "match-names",
956
+ "allow_past",
957
+ "anomaly-bit"
958
+ ]
959
+ },
960
+ "default": [
961
+ "seconds",
962
+ "jsonwrap"
963
]
964
}
965
},
966
{
910
- "name": "multiply",
967
+ "name": "callback",
968
"in": "query",
912
- "description": "Multiply the value with this number for rendering it at the image (integer value required).",
969
+ "description": "For JSONP responses, the callback function name.",
970
"required": false,
971
"allowEmptyValue": true,
972
"schema": {
916
- "type": "number",
917
- "format": "integer"
973
+ "type": "string"
974
}
975
},
976
{
921
- "name": "divide",
977
+ "name": "filename",
978
"in": "query",
923
- "description": "Divide the value with this number for rendering it at the image (integer value required).",
979
+ "description": "Add Content-Disposition: attachment; filename= header to the response, that will instruct the browser to save the response with the given filename.",
980
"required": false,
981
"allowEmptyValue": true,
982
"schema": {
927
- "type": "number",
928
- "format": "integer"
983
+ "type": "string"
984
}
985
},
986
{
932
- "name": "scale",
987
+ "name": "tqx",
988
"in": "query",
934
- "description": "Set the scale of the badge (greater or equal to 100).",
989
+ "description": "[Google Visualization API](https://developers.google.com/chart/interactive/docs/dev/implementing_data_source?hl=en) formatted parameter.",
990
"required": false,
991
"allowEmptyValue": true,
992
"schema": {
938
- "type": "number",
939
- "format": "integer"
940
- }
941
- },
942
- {
943
- "name": "fixed_width_lbl",
944
- "in": "query",
945
- "description": "This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's left side *(label/name)*. You must set this parameter together with `fixed_width_val` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.",
946
- "required": false,
947
- "allowEmptyValue": false,
948
- "schema": {
949
- "type": "number",
950
- "format": "integer"
951
- }
952
- },
953
- {
954
- "name": "fixed_width_val",
955
- "in": "query",
956
- "description": "This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's right side *(value)*. You must set this parameter together with `fixed_width_lbl` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.",
957
- "required": false,
958
- "allowEmptyValue": false,
959
- "schema": {
960
- "type": "number",
961
- "format": "integer"
993
+ "type": "string"
994
}
995
}
996
],
997
"responses": {
998
"200": {
967
- "description": "The call was successful. The response should be an SVG image."
999
+ "description": "The call was successful. The response includes the data in the format requested. Swagger2.0 does not process the discriminator field to show polymorphism. The response will be one of the sub-types of the data-schema according to the chosen format, e.g. json -> data_json.",
1000
+ "content": {
1001
+ "application/json": {
1002
+ "schema": {
1003
+ "$ref": "#/components/schemas/data"
1004
+ }
1005
+ }
1006
+ }
1007
},
1008
"400": {
1009
"description": "Bad request - the body will include a message stating what is wrong."
1010
},
1011
"404": {
973
- "description": "No chart with the given id is found."
1012
+ "description": "Chart or context is not found. The supplied chart or context will be reported."
1013
},
1014
"500": {
1015
"description": "Internal server error. This usually means the server is out of memory."
1017
}
1018
}
1019
},
981
- "/allmetrics": {
1020
+ "/api/v1/badge.svg": {
1021
"get": {
983
- "summary": "Get a value of all the metrics maintained by netdata",
984
- "description": "The allmetrics endpoint returns the latest value of all charts and dimensions stored in the netdata server.",
1022
+ "summary": "Generate a badge in form of SVG image for a chart (or dimension)",
1023
+ "description": "Successful responses are SVG images.",
1024
"parameters": [
1025
{
987
- "name": "format",
1026
+ "name": "chart",
1027
"in": "query",
989
- "description": "The format of the response to be returned.",
1028
+ "description": "The id of the chart as returned by the /charts call.",
1029
"required": true,
1030
+ "allowEmptyValue": false,
1031
"schema": {
1032
"type": "string",
993
- "enum": [
994
- "shell",
995
- "prometheus",
996
- "prometheus_all_hosts",
997
- "json"
998
- ],
999
- "default": "shell"
1033
+ "format": "as returned by /charts",
1034
+ "default": "system.cpu"
1035
}
1036
},
1037
{
1003
- "name": "filter",
1038
+ "name": "alarm",
1039
"in": "query",
1005
- "description": "Allows to filter charts out using simple patterns.",
1040
+ "description": "The name of an alarm linked to the chart.",
1041
"required": false,
1042
+ "allowEmptyValue": true,
1043
"schema": {
1044
"type": "string",
1045
"format": "any text"
1046
}
1047
},
1048
{
1013
- "name": "variables",
1049
+ "name": "dimension",
1050
"in": "query",
1015
- "description": "When enabled, netdata will expose various system configuration metrics.",
1051
+ "description": "Zero, one or more dimension ids, as returned by the /chart call.",
1052
"required": false,
1053
+ "allowEmptyValue": false,
1054
"schema": {
1018
- "type": "string",
1019
- "enum": [
1020
- "yes",
1021
- "no"
1022
- ],
1023
- "default": "no"
1055
+ "type": "array",
1056
+ "items": {
1057
+ "type": "string",
1058
+ "format": "as returned by /charts"
1059
+ }
1060
}
1061
},
1062
{
1027
- "name": "help",
1063
+ "name": "after",
1064
"in": "query",
1029
- "description": "Enable or disable HELP lines in prometheus output.",
1030
- "required": false,
1065
+ "description": "This parameter can either be an absolute timestamp specifying the starting point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.",
1066
+ "required": true,
1067
+ "allowEmptyValue": false,
1068
"schema": {
1032
- "type": "string",
1033
- "enum": [
1034
- "yes",
1035
- "no"
1036
- ],
1037
- "default": "no"
1069
+ "type": "number",
1070
+ "format": "integer",
1071
+ "default": -600
1072
}
1073
},
1074
{
1041
- "name": "types",
1075
+ "name": "before",
1076
"in": "query",
1043
- "description": "Enable or disable TYPE lines in prometheus output.",
1077
+ "description": "This parameter can either be an absolute timestamp specifying the ending point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.",
1078
"required": false,
1079
"schema": {
1046
- "type": "string",
1047
- "enum": [
1048
- "yes",
1049
- "no"
1050
- ],
1051
- "default": "no"
1080
+ "type": "number",
1081
+ "format": "integer",
1082
+ "default": 0
1083
}
1084
},
1085
{
1055
- "name": "timestamps",
1086
+ "name": "group",
1087
"in": "query",
1057
- "description": "Enable or disable timestamps in prometheus output.",
1058
- "required": false,
1088
+ "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods are supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
1089
+ "required": true,
1090
+ "allowEmptyValue": false,
1091
"schema": {
1092
"type": "string",
1093
"enum": [
1062
- "yes",
1063
- "no"
1094
+ "min",
1095
+ "max",
1096
+ "average",
1097
+ "median",
1098
+ "stddev",
1099
+ "sum",
1100
+ "incremental-sum",
1101
+ "ses",
1102
+ "des",
1103
+ "cv",
1104
+ "countif",
1105
+ "percentile",
1106
+ "percentile25",
1107
+ "percentile50",
1108
+ "percentile75",
1109
+ "percentile80",
1110
+ "percentile90",
1111
+ "percentile95",
1112
+ "percentile97",
1113
+ "percentile98",
1114
+ "percentile99",
1115
+ "trimmed-mean",
1116
+ "trimmed-mean1",
1117
+ "trimmed-mean2",
1118
+ "trimmed-mean3",
1119
+ "trimmed-mean5",
1120
+ "trimmed-mean10",
1121
+ "trimmed-mean15",
1122
+ "trimmed-mean20",
1123
+ "trimmed-mean25",
1124
+ "trimmed-median",
1125
+ "trimmed-median1",
1126
+ "trimmed-median2",
1127
+ "trimmed-median3",
1128
+ "trimmed-median5",
1129
+ "trimmed-median10",
1130
+ "trimmed-median15",
1131
+ "trimmed-median20",
1132
+ "trimmed-median25"
1133
],
1065
- "default": "yes"
1134
+ "default": "average"
1135
}
1136
},
1137
{
1069
- "name": "names",
1138
+ "name": "options",
1139
"in": "query",
1071
- "description": "When enabled netdata will report dimension names. When disabled netdata will report dimension IDs. The default is controlled in netdata.conf.",
1140
+ "description": "Options that affect data generation.",
1141
"required": false,
1142
+ "allowEmptyValue": true,
1143
"schema": {
1074
- "type": "string",
1075
- "enum": [
1076
- "yes",
1077
- "no"
1078
- ],
1079
- "default": "yes"
1144
+ "type": "array",
1145
+ "items": {
1146
+ "type": "string",
1147
+ "enum": [
1148
+ "abs",
1149
+ "absolute",
1150
+ "display-absolute",
1151
+ "absolute-sum",
1152
+ "null2zero",
1153
+ "percentage",
1154
+ "unaligned",
1155
+ "anomaly-bit"
1156
+ ]
1157
+ },
1158
+ "default": [
1159
+ "absolute"
1160
+ ]
1161
}
1162
},
1163
{
1083
- "name": "oldunits",
1164
+ "name": "label",
1165
"in": "query",
1085
- "description": "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.",
1166
+ "description": "A text to be used as the label.",
1167
"required": false,
1168
+ "allowEmptyValue": true,
1169
"schema": {
1170
"type": "string",
1089
- "enum": [
1090
- "yes",
1091
- "no"
1092
- ],
1093
- "default": "yes"
1171
+ "format": "any text"
1172
}
1173
},
1174
{
1097
- "name": "hideunits",
1175
+ "name": "units",
1176
"in": "query",
1099
- "description": "When enabled, netdata will not include the units in the metric names, for the default source=average.",
1177
+ "description": "A text to be used as the units.",
1178
"required": false,
1179
+ "allowEmptyValue": true,
1180
"schema": {
1181
"type": "string",
1103
- "enum": [
1104
- "yes",
1105
- "no"
1106
- ],
1107
- "default": "yes"
1182
+ "format": "any text"
1183
}
1184
},
1185
{
1111
- "name": "server",
1186
+ "name": "label_color",
1187
"in": "query",
1113
- "description": "Set a distinct name of the client querying prometheus metrics. Netdata will use the client IP if this is not set.",
1188
+ "description": "A color to be used for the background of the label side(left side) of the badge. One of predefined colors or specific color in hex `RGB` or `RRGGBB` format (without preceding `#` character). If value wrong or not given default color will be used.",
1189
"required": false,
1190
+ "allowEmptyValue": true,
1191
"schema": {
1116
- "type": "string",
1117
- "format": "any text"
1192
+ "oneOf": [
1193
+ {
1194
+ "type": "string",
1195
+ "enum": [
1196
+ "green",
1197
+ "brightgreen",
1198
+ "yellow",
1199
+ "yellowgreen",
1200
+ "orange",
1201
+ "red",
1202
+ "blue",
1203
+ "grey",
1204
+ "gray",
1205
+ "lightgrey",
1206
+ "lightgray"
1207
+ ]
1208
+ },
1209
+ {
1210
+ "type": "string",
1211
+ "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
1212
+ }
1213
+ ]
1214
}
1215
},
1216
{
1121
- "name": "prefix",
1217
+ "name": "value_color",
1218
"in": "query",
1123
- "description": "Prefix all prometheus metrics with this string.",
1219
+ "description": "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.",
1220
"required": false,
1221
+ "allowEmptyValue": true,
1222
"schema": {
1223
"type": "string",
1224
"format": "any text"
1225
}
1226
},
1227
{
1131
- "name": "data",
1228
+ "name": "text_color_lbl",
1229
"in": "query",
1133
- "description": "Select the prometheus response data source. There is a setting in netdata.conf for the default.",
1230
+ "description": "Font color for label *(left)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.",
1231
"required": false,
1232
+ "allowEmptyValue": true,
1233
"schema": {
1136
- "type": "string",
1137
- "enum": [
1138
- "as-collected",
1139
- "average",
1140
- "sum"
1141
- ],
1142
- "default": "average"
1234
+ "oneOf": [
1235
+ {
1236
+ "type": "string",
1237
+ "enum": [
1238
+ "green",
1239
+ "brightgreen",
1240
+ "yellow",
1241
+ "yellowgreen",
1242
+ "orange",
1243
+ "red",
1244
+ "blue",
1245
+ "grey",
1246
+ "gray",
1247
+ "lightgrey",
1248
+ "lightgray"
1249
+ ]
1250
+ },
1251
+ {
1252
+ "type": "string",
1253
+ "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
1254
+ }
1255
+ ]
1256
}
1144
- }
1145
- ],
1146
- "responses": {
1147
- "200": {
1148
- "description": "All the metrics returned in the format requested."
1257
},
1150
- "400": {
1151
- "description": "The format requested is not supported."
1152
- }
1153
- }
1154
- }
1155
- },
1156
- "/alarms": {
1157
- "get": {
1158
- "summary": "Get a list of active or raised alarms on the server",
1159
- "description": "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.",
1160
- "parameters": [
1258
{
1162
- "name": "all",
1259
+ "name": "text_color_val",
1260
"in": "query",
1164
- "description": "If passed, all enabled alarms are returned.",
1261
+ "description": "Font color for value *(right)* part of the badge. One of predefined colors or as HTML hexadecimal color without preceding `#` character. Formats allowed `RGB` or `RRGGBB`. If no or wrong value given default color will be used.",
1262
"required": false,
1263
"allowEmptyValue": true,
1264
"schema": {
1168
- "type": "boolean"
1265
+ "oneOf": [
1266
+ {
1267
+ "type": "string",
1268
+ "enum": [
1269
+ "green",
1270
+ "brightgreen",
1271
+ "yellow",
1272
+ "yellowgreen",
1273
+ "orange",
1274
+ "red",
1275
+ "blue",
1276
+ "grey",
1277
+ "gray",
1278
+ "lightgrey",
1279
+ "lightgray"
1280
+ ]
1281
+ },
1282
+ {
1283
+ "type": "string",
1284
+ "format": "^([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
1285
+ }
1286
+ ]
1287
}
1288
},
1289
{
1172
- "name": "active",
1290
+ "name": "multiply",
1291
"in": "query",
1174
- "description": "If passed, the raised alarms in state WARNING or CRITICAL are returned.",
1292
+ "description": "Multiply the value with this number for rendering it at the image (integer value required).",
1293
"required": false,
1294
"allowEmptyValue": true,
1295
"schema": {
1178
- "type": "boolean"
1179
- }
1180
- }
1181
- ],
1182
- "responses": {
1183
- "200": {
1184
- "description": "An object containing general info and a linked list of alarms.",
1185
- "content": {
1186
- "application/json": {
1187
- "schema": {
1188
- "$ref": "#/components/schemas/alarms"
1189
- }
1190
- }
1296
+ "type": "number",
1297
+ "format": "integer"
1298
}
1192
- }
1193
- }
1194
- }
1195
- },
1196
- "/alarms_values": {
1197
- "get": {
1198
- "summary": "Get a list of active or raised alarms on the server",
1199
- "description": "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`.",
1200
- "parameters": [
1299
+ },
1300
{
1202
- "name": "all",
1301
+ "name": "divide",
1302
"in": "query",
1204
- "description": "If passed, all enabled alarms are returned.",
1303
+ "description": "Divide the value with this number for rendering it at the image (integer value required).",
1304
"required": false,
1305
"allowEmptyValue": true,
1306
"schema": {
1208
- "type": "boolean"
1307
+ "type": "number",
1308
+ "format": "integer"
1309
}
1310
},
1311
{
1212
- "name": "active",
1312
+ "name": "scale",
1313
"in": "query",
1214
- "description": "If passed, the raised alarms in state WARNING or CRITICAL are returned.",
1314
+ "description": "Set the scale of the badge (greater or equal to 100).",
1315
"required": false,
1316
"allowEmptyValue": true,
1317
"schema": {
1218
- "type": "boolean"
1318
+ "type": "number",
1319
+ "format": "integer"
1320
}
1220
- }
1221
- ],
1222
- "responses": {
1223
- "200": {
1224
- "description": "An object containing general info and a linked list of alarms.",
1225
- "content": {
1226
- "application/json": {
1227
- "schema": {
1228
- "$ref": "#/components/schemas/alarms_values"
1229
- }
1230
- }
1231
- }
1232
- }
1233
- }
1234
- }
1235
- },
1236
- "/alarm_log": {
1237
- "get": {
1238
- "summary": "Retrieves the entries of the alarm log",
1239
- "description": "Returns an array of alarm_log entries, with historical information on raised and cleared alarms.",
1240
- "parameters": [
1241
- {
1242
- "name": "after",
1243
- "in": "query",
1244
- "description": "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.",
1245
- "required": false,
1246
- "schema": {
1247
- "type": "integer"
1248
- }
1249
- }
1250
- ],
1251
- "responses": {
1252
- "200": {
1253
- "description": "An array of alarm log entries.",
1254
- "content": {
1255
- "application/json": {
1256
- "schema": {
1257
- "type": "array",
1258
- "items": {
1259
- "$ref": "#/components/schemas/alarm_log_entry"
1260
- }
1261
- }
1262
- }
1263
- }
1264
- }
1265
- }
1266
- }
1267
- },
1268
- "/alarm_count": {
1269
- "get": {
1270
- "summary": "Get an overall status of the chart",
1271
- "description": "Checks multiple charts with the same context and counts number of alarms with given status.",
1272
- "parameters": [
1321
+ },
1322
{
1323
+ "name": "fixed_width_lbl",
1324
"in": "query",
1275
- "name": "context",
1276
- "description": "Specify context which should be checked.",
1325
+ "description": "This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's left side *(label/name)*. You must set this parameter together with `fixed_width_val` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.",
1326
"required": false,
1278
- "allowEmptyValue": true,
1327
+ "allowEmptyValue": false,
1328
"schema": {
1280
- "type": "array",
1281
- "items": {
1282
- "type": "string"
1283
- },
1284
- "default": [
1285
- "system.cpu"
1286
- ]
1329
+ "type": "number",
1330
+ "format": "integer"
1331
}
1332
},
1333
{
1334
+ "name": "fixed_width_val",
1335
"in": "query",
1291
- "name": "status",
1292
- "description": "Specify alarm status to count.",
1336
+ "description": "This parameter overrides auto-sizing of badge and creates it with fixed width. This parameter determines the size of the label's right side *(value)*. You must set this parameter together with `fixed_width_lbl` otherwise it will be ignored. You should set the label/value widths wide enough to provide space for all the possible values/contents of the badge you're requesting. In case the text cannot fit the space given it will be clipped. The `scale` parameter still applies on the values you give to `fixed_width_lbl` and `fixed_width_val`.",
1337
"required": false,
1294
- "allowEmptyValue": true,
1338
+ "allowEmptyValue": false,
1339
"schema": {
1296
- "type": "string",
1297
- "enum": [
1298
- "REMOVED",
1299
- "UNDEFINED",
1300
- "UNINITIALIZED",
1301
- "CLEAR",
1302
- "RAISED",
1303
- "WARNING",
1304
- "CRITICAL"
1305
- ],
1306
- "default": "RAISED"
1340
+ "type": "number",
1341
+ "format": "integer"
1342
}
1343
}
1344
],
1345
"responses": {
1346
"200": {
1312
- "description": "An object containing a count of alarms with given status for given contexts.",
1313
- "content": {
1314
- "application/json": {
1315
- "schema": {
1316
- "type": "array",
1317
- "items": {
1318
- "type": "number"
1319
- }
1320
- }
1321
- }
1322
- }
1347
+ "description": "The call was successful. The response should be an SVG image."
1348
+ },
1349
+ "400": {
1350
+ "description": "Bad request - the body will include a message stating what is wrong."
1351
+ },
1352
+ "404": {
1353
+ "description": "No chart with the given id is found."
1354
},
1355
"500": {
1356
"description": "Internal server error. This usually means the server is out of memory."
1358
}
1359
}
1360
},
1330
- "/manage/health": {
1361
+ "/api/v1/allmetrics": {
1362
"get": {
1332
- "summary": "Accesses the health management API to control health checks and notifications at runtime.",
1333
- "description": "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.",
1363
+ "summary": "Get a value of all the metrics maintained by netdata",
1364
+ "description": "The allmetrics endpoint returns the latest value of all charts and dimensions stored in the netdata server.",
1365
"parameters": [
1366
{
1336
- "name": "cmd",
1367
+ "name": "format",
1368
"in": "query",
1338
- "description": "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.",
1339
- "required": false,
1369
+ "description": "The format of the response to be returned.",
1370
+ "required": true,
1371
"schema": {
1372
"type": "string",
1373
"enum": [
1343
- "DISABLE ALL",
1344
- "SILENCE ALL",
1345
- "DISABLE",
1346
- "SILENCE",
1347
- "RESET",
1348
- "LIST"
1349
- ]
1374
+ "shell",
1375
+ "prometheus",
1376
+ "prometheus_all_hosts",
1377
+ "json"
1378
+ ],
1379
+ "default": "shell"
1380
}
1381
},
1382
{
1353
- "name": "alarm",
1383
+ "name": "filter",
1384
"in": "query",
1355
- "description": "The expression provided will match both `alarm` and `template` names.",
1385
+ "description": "Allows to filter charts out using simple patterns.",
1386
+ "required": false,
1387
"schema": {
1357
- "type": "string"
1388
+ "type": "string",
1389
+ "format": "any text"
1390
}
1391
},
1392
{
1361
- "name": "chart",
1393
+ "name": "variables",
1394
"in": "query",
1363
- "description": "Chart ids/names, as shown on the dashboard. These will match the `on` entry of a configured `alarm`.",
1395
+ "description": "When enabled, netdata will expose various system configuration metrics.",
1396
+ "required": false,
1397
"schema": {
1365
- "type": "string"
1398
+ "type": "string",
1399
+ "enum": [
1400
+ "yes",
1401
+ "no"
1402
+ ],
1403
+ "default": "no"
1404
}
1405
},
1406
{
1369
- "name": "context",
1407
+ "name": "help",
1408
"in": "query",
1371
- "description": "Chart context, as shown on the dashboard. These will match the `on` entry of a configured `template`.",
1409
+ "description": "Enable or disable HELP lines in prometheus output.",
1410
+ "required": false,
1411
"schema": {
1373
- "type": "string"
1412
+ "type": "string",
1413
+ "enum": [
1414
+ "yes",
1415
+ "no"
1416
+ ],
1417
+ "default": "no"
1418
}
1419
},
1420
{
1377
- "name": "hosts",
1421
+ "name": "types",
1422
"in": "query",
1379
- "description": "The hostnames that will need to match.",
1423
+ "description": "Enable or disable TYPE lines in prometheus output.",
1424
+ "required": false,
1425
"schema": {
1381
- "type": "string"
1426
+ "type": "string",
1427
+ "enum": [
1428
+ "yes",
1429
+ "no"
1430
+ ],
1431
+ "default": "no"
1432
}
1433
},
1434
{
1385
- "name": "families",
1435
+ "name": "timestamps",
1436
"in": "query",
1387
- "description": "The alarm families.",
1437
+ "description": "Enable or disable timestamps in prometheus output.",
1438
+ "required": false,
1439
"schema": {
1389
- "type": "string"
1440
+ "type": "string",
1441
+ "enum": [
1442
+ "yes",
1443
+ "no"
1444
+ ],
1445
+ "default": "yes"
1446
}
1391
- }
1392
- ],
1393
- "responses": {
1394
- "200": {
1395
- "description": "A plain text response based on the result of the command."
1447
},
1397
- "403": {
1398
- "description": "Bearer authentication error."
1399
- }
1400
- }
1401
- }
1402
- },
1403
- "/aclk": {
1404
- "get": {
1405
- "summary": "Get information about current ACLK state",
1406
- "description": "ACLK endpoint returns detailed information about current state of ACLK (Agent to Cloud communication).",
1407
- "responses": {
1408
- "200": {
1409
- "description": "JSON object with ACLK information.",
1410
- "content": {
1411
- "application/json": {
1412
- "schema": {
1413
- "$ref": "#/components/schemas/aclk_state"
1414
- }
1415
- }
1416
- }
1417
- }
1418
- }
1419
- }
1420
- },
1421
- "/metric_correlations": {
1422
- "get": {
1423
- "summary": "Analyze all the metrics to find their correlations",
1424
- "description": "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).",
1425
- "parameters": [
1448
{
1427
- "name": "baseline_after",
1449
+ "name": "names",
1450
"in": "query",
1429
- "description": "This parameter can either be an absolute timestamp specifying the starting point of baseline window, or a relative number of seconds (negative, relative to parameter baseline_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds).",
1451
+ "description": "When enabled netdata will report dimension names. When disabled netdata will report dimension IDs. The default is controlled in netdata.conf.",
1452
"required": false,
1431
- "allowEmptyValue": false,
1453
"schema": {
1433
- "type": "number",
1434
- "format": "integer",
1435
- "default": -300
1454
+ "type": "string",
1455
+ "enum": [
1456
+ "yes",
1457
+ "no"
1458
+ ],
1459
+ "default": "yes"
1460
}
1461
},
1462
{
1439
- "name": "baseline_before",
1463
+ "name": "oldunits",
1464
"in": "query",
1441
- "description": "This parameter can either be an absolute timestamp specifying the ending point of the baseline window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds).",
1465
+ "description": "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.",
1466
"required": false,
1467
"schema": {
1444
- "type": "number",
1445
- "format": "integer",
1446
- "default": -60
1468
+ "type": "string",
1469
+ "enum": [
1470
+ "yes",
1471
+ "no"
1472
+ ],
1473
+ "default": "yes"
1474
}
1475
},
1476
{
1450
- "name": "after",
1477
+ "name": "hideunits",
1478
"in": "query",
1452
- "description": "This parameter can either be an absolute timestamp specifying the starting point of highlighted window, or a relative number of seconds (negative, relative to parameter highlight_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds).",
1479
+ "description": "When enabled, netdata will not include the units in the metric names, for the default source=average.",
1480
"required": false,
1454
- "allowEmptyValue": false,
1481
"schema": {
1456
- "type": "number",
1457
- "format": "integer",
1458
- "default": -60
1482
+ "type": "string",
1483
+ "enum": [
1484
+ "yes",
1485
+ "no"
1486
+ ],
1487
+ "default": "yes"
1488
}
1489
},
1490
{
1462
- "name": "before",
1491
+ "name": "server",
1492
"in": "query",
1464
- "description": "This parameter can either be an absolute timestamp specifying the ending point of the highlighted window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds).",
1493
+ "description": "Set a distinct name of the client querying prometheus metrics. Netdata will use the client IP if this is not set.",
1494
"required": false,
1495
"schema": {
1467
- "type": "number",
1468
- "format": "integer",
1469
- "default": 0
1496
+ "type": "string",
1497
+ "format": "any text"
1498
}
1499
},
1500
{
1473
- "name": "points",
1501
+ "name": "prefix",
1502
"in": "query",
1475
- "description": "The number of points to be evaluated for the highlighted window. The baseline window will be adjusted automatically to receive a proportional amount of points.",
1503
+ "description": "Prefix all prometheus metrics with this string.",
1504
"required": false,
1477
- "allowEmptyValue": false,
1505
"schema": {
1479
- "type": "number",
1480
- "format": "integer",
1481
- "default": 500
1506
+ "type": "string",
1507
+ "format": "any text"
1508
}
1509
},
1510
{
1485
- "name": "method",
1511
+ "name": "data",
1512
"in": "query",
1487
- "description": "the algorithm to run",
1513
+ "description": "Select the prometheus response data source. There is a setting in netdata.conf for the default.",
1514
"required": false,
1515
"schema": {
1516
"type": "string",
1517
"enum": [
1492
- "ks2",
1493
- "volume"
1518
+ "as-collected",
1519
+ "average",
1520
+ "sum"
1521
],
1495
- "default": "ks2"
1496
- }
1497
- },
1498
- {
1499
- "name": "timeout",
1500
- "in": "query",
1501
- "description": "Cancel the query if to takes more that this amount of milliseconds.",
1502
- "required": false,
1503
- "allowEmptyValue": false,
1504
- "schema": {
1505
- "type": "number",
1506
- "format": "integer",
1507
- "default": 60000
1522
+ "default": "average"
1523
}
1524
+ }
1525
+ ],
1526
+ "responses": {
1527
+ "200": {
1528
+ "description": "All the metrics returned in the format requested."
1529
},
1530
+ "400": {
1531
+ "description": "The format requested is not supported."
1532
+ }
1533
+ }
1534
+ }
1535
+ },
1536
+ "/api/v1/alarms": {
1537
+ "get": {
1538
+ "summary": "Get a list of active or raised alarms on the server",
1539
+ "description": "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.",
1540
+ "parameters": [
1541
{
1511
- "name": "options",
1542
+ "name": "all",
1543
"in": "query",
1513
- "description": "Options that affect data generation.",
1544
+ "description": "If passed, all enabled alarms are returned.",
1545
"required": false,
1515
- "allowEmptyValue": false,
1516
- "schema": {
1517
- "type": "array",
1518
- "items": {
1519
- "type": "string",
1520
- "enum": [
1521
- "min2max",
1522
- "abs",
1523
- "absolute",
1524
- "absolute-sum",
1525
- "null2zero",
1526
- "percentage",
1527
- "unaligned",
1528
- "allow_past",
1529
- "nonzero",
1530
- "anomaly-bit",
1531
- "raw"
1532
- ]
1533
- },
1534
- "default": [
1535
- "null2zero",
1536
- "allow_past",
1537
- "nonzero",
1538
- "unaligned"
1539
- ]
1540
- }
1541
- },
1542
- {
1543
- "name": "group",
1544
- "in": "query",
1545
- "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
1546
- "required": true,
1547
- "allowEmptyValue": false,
1546
+ "allowEmptyValue": true,
1547
"schema": {
1549
- "type": "string",
1550
- "enum": [
1551
- "min",
1552
- "max",
1553
- "average",
1554
- "median",
1555
- "stddev",
1556
- "sum",
1557
- "incremental-sum",
1558
- "ses",
1559
- "des",
1560
- "cv",
1561
- "countif",
1562
- "percentile",
1563
- "percentile25",
1564
- "percentile50",
1565
- "percentile75",
1566
- "percentile80",
1567
- "percentile90",
1568
- "percentile95",
1569
- "percentile97",
1570
- "percentile98",
1571
- "percentile99",
1572
- "trimmed-mean",
1573
- "trimmed-mean1",
1574
- "trimmed-mean2",
1575
- "trimmed-mean3",
1576
- "trimmed-mean5",
1577
- "trimmed-mean10",
1578
- "trimmed-mean15",
1579
- "trimmed-mean20",
1580
- "trimmed-mean25",
1581
- "trimmed-median",
1582
- "trimmed-median1",
1583
- "trimmed-median2",
1584
- "trimmed-median3",
1585
- "trimmed-median5",
1586
- "trimmed-median10",
1587
- "trimmed-median15",
1588
- "trimmed-median20",
1589
- "trimmed-median25"
1590
- ],
1591
- "default": "average"
1548
+ "type": "boolean"
1549
}
1550
},
1551
{
1595
- "name": "group_options",
1552
+ "name": "active",
1553
"in": "query",
1597
- "description": "When the group function supports additional parameters, this field can be used to pass them to it. Currently only \"countif\" supports this.",
1554
+ "description": "If passed, the raised alarms in state WARNING or CRITICAL are returned.",
1555
"required": false,
1599
- "allowEmptyValue": false,
1556
+ "allowEmptyValue": true,
1557
"schema": {
1601
- "type": "string"
1558
+ "type": "boolean"
1559
}
1560
}
1561
],
1562
"responses": {
1563
"200": {
1607
- "description": "JSON object with weights for each chart and dimension.",
1564
+ "description": "An object containing general info and a linked list of alarms.",
1565
"content": {
1566
"application/json": {
1567
"schema": {
1611
- "$ref": "#/components/schemas/metric_correlations"
1568
+ "$ref": "#/components/schemas/alarms"
1569
}
1570
}
1571
}
1615
- },
1616
- "400": {
1617
- "description": "The given parameters are invalid."
1618
- },
1619
- "403": {
1620
- "description": "metrics correlations are not enabled on this Netdata Agent."
1621
- },
1622
- "404": {
1623
- "description": "No charts could be found, or the method that correlated the metrics did not produce any result."
1624
- },
1625
- "504": {
1626
- "description": "Timeout - the query took too long and has been cancelled."
1572
}
1573
}
1574
}
1575
},
1631
- "/function": {
1576
+ "/api/v1/alarms_values": {
1577
"get": {
1633
- "summary": "Execute a collector function.",
1578
+ "summary": "Get a list of active or raised alarms on the server",
1579
+ "description": "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`.",
1580
"parameters": [
1581
{
1636
- "name": "function",
1582
+ "name": "all",
1583
"in": "query",
1638
- "description": "The name of the function, as returned by the collector.",
1639
- "required": true,
1640
- "allowEmptyValue": false,
1584
+ "description": "If passed, all enabled alarms are returned.",
1585
+ "required": false,
1586
+ "allowEmptyValue": true,
1587
"schema": {
1642
- "type": "string"
1588
+ "type": "boolean"
1589
}
1590
},
1591
{
1646
- "name": "timeout",
1592
+ "name": "active",
1593
"in": "query",
1648
- "description": "The timeout in seconds to wait for the function to complete.",
1594
+ "description": "If passed, the raised alarms in state WARNING or CRITICAL are returned.",
1595
"required": false,
1596
+ "allowEmptyValue": true,
1597
"schema": {
1651
- "type": "number",
1652
- "format": "integer",
1653
- "default": 10
1598
+ "type": "boolean"
1599
}
1600
}
1601
],
1602
"responses": {
1603
"200": {
1659
- "description": "The collector function has been executed successfully. Each collector may return a different type of content."
1660
- },
1661
- "400": {
1662
- "description": "The request was rejected by the collector."
1663
- },
1664
- "404": {
1665
- "description": "The requested function is not found."
1666
- },
1667
- "500": {
1668
- "description": "Other internal error, getting this error means there is a bug in Netdata."
1669
- },
1670
- "503": {
1671
- "description": "The collector to execute the function is not currently available."
1672
- },
1673
- "504": {
1674
- "description": "Timeout while waiting for the collector to execute the function."
1675
- },
1676
- "591": {
1677
- "description": "The collector sent a response, but it was invalid or corrupted."
1604
+ "description": "An object containing general info and a linked list of alarms.",
1605
+ "content": {
1606
+ "application/json": {
1607
+ "schema": {
1608
+ "$ref": "#/components/schemas/alarms_values"
1609
+ }
1610
+ }
1611
+ }
1612
}
1613
}
1614
}
1615
},
1682
- "/functions": {
1616
+ "/api/v1/alarm_log": {
1617
"get": {
1684
- "summary": "Get a list of all registered collector functions.",
1685
- "description": "Collector functions are programs that can be executed on demand.",
1618
+ "summary": "Retrieves the entries of the alarm log",
1619
+ "description": "Returns an array of alarm_log entries, with historical information on raised and cleared alarms.",
1620
+ "parameters": [
1621
+ {
1622
+ "name": "after",
1623
+ "in": "query",
1624
+ "description": "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.",
1625
+ "required": false,
1626
+ "schema": {
1627
+ "type": "integer"
1628
+ }
1629
+ }
1630
+ ],
1631
"responses": {
1632
"200": {
1688
- "description": "A JSON object containing one object per supported function."
1633
+ "description": "An array of alarm log entries.",
1634
+ "content": {
1635
+ "application/json": {
1636
+ "schema": {
1637
+ "type": "array",
1638
+ "items": {
1639
+ "$ref": "#/components/schemas/alarm_log_entry"
1640
+ }
1641
+ }
1642
+ }
1643
+ }
1644
}
1645
}
1646
}
1647
},
1693
- "/weights": {
1648
+ "/api/v1/alarm_count": {
1649
"get": {
1695
- "summary": "Analyze all the metrics using an algorithm and score them accordingly",
1696
- "description": "This endpoint goes through all metrics and scores them according to an algorithm.",
1650
+ "summary": "Get an overall status of the chart",
1651
+ "description": "Checks multiple charts with the same context and counts number of alarms with given status.",
1652
"parameters": [
1653
{
1699
- "name": "baseline_after",
1654
"in": "query",
1701
- "description": "This parameter can either be an absolute timestamp specifying the starting point of baseline window, or a relative number of seconds (negative, relative to parameter baseline_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds). This parameter is used in KS2 and VOLUME algorithms.",
1655
+ "name": "context",
1656
+ "description": "Specify context which should be checked.",
1657
"required": false,
1703
- "allowEmptyValue": false,
1658
+ "allowEmptyValue": true,
1659
"schema": {
1705
- "type": "number",
1706
- "format": "integer",
1707
- "default": -300
1660
+ "type": "array",
1661
+ "items": {
1662
+ "type": "string"
1663
+ },
1664
+ "default": [
1665
+ "system.cpu"
1666
+ ]
1667
}
1668
},
1669
{
1711
- "name": "baseline_before",
1670
"in": "query",
1713
- "description": "This parameter can either be an absolute timestamp specifying the ending point of the baseline window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds). This parameter is used in KS2 and VOLUME algorithms.",
1671
+ "name": "status",
1672
+ "description": "Specify alarm status to count.",
1673
+ "required": false,
1674
+ "allowEmptyValue": true,
1675
+ "schema": {
1676
+ "type": "string",
1677
+ "enum": [
1678
+ "REMOVED",
1679
+ "UNDEFINED",
1680
+ "UNINITIALIZED",
1681
+ "CLEAR",
1682
+ "RAISED",
1683
+ "WARNING",
1684
+ "CRITICAL"
1685
+ ],
1686
+ "default": "RAISED"
1687
+ }
1688
+ }
1689
+ ],
1690
+ "responses": {
1691
+ "200": {
1692
+ "description": "An object containing a count of alarms with given status for given contexts.",
1693
+ "content": {
1694
+ "application/json": {
1695
+ "schema": {
1696
+ "type": "array",
1697
+ "items": {
1698
+ "type": "number"
1699
+ }
1700
+ }
1701
+ }
1702
+ }
1703
+ },
1704
+ "500": {
1705
+ "description": "Internal server error. This usually means the server is out of memory."
1706
+ }
1707
+ }
1708
+ }
1709
+ },
1710
+ "/api/v1/manage/health": {
1711
+ "get": {
1712
+ "summary": "Accesses the health management API to control health checks and notifications at runtime.",
1713
+ "description": "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.",
1714
+ "parameters": [
1715
+ {
1716
+ "name": "cmd",
1717
+ "in": "query",
1718
+ "description": "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.",
1719
+ "required": false,
1720
+ "schema": {
1721
+ "type": "string",
1722
+ "enum": [
1723
+ "DISABLE ALL",
1724
+ "SILENCE ALL",
1725
+ "DISABLE",
1726
+ "SILENCE",
1727
+ "RESET",
1728
+ "LIST"
1729
+ ]
1730
+ }
1731
+ },
1732
+ {
1733
+ "name": "alarm",
1734
+ "in": "query",
1735
+ "description": "The expression provided will match both `alarm` and `template` names.",
1736
+ "schema": {
1737
+ "type": "string"
1738
+ }
1739
+ },
1740
+ {
1741
+ "name": "chart",
1742
+ "in": "query",
1743
+ "description": "Chart ids/names, as shown on the dashboard. These will match the `on` entry of a configured `alarm`.",
1744
+ "schema": {
1745
+ "type": "string"
1746
+ }
1747
+ },
1748
+ {
1749
+ "name": "context",
1750
+ "in": "query",
1751
+ "description": "Chart context, as shown on the dashboard. These will match the `on` entry of a configured `template`.",
1752
+ "schema": {
1753
+ "type": "string"
1754
+ }
1755
+ },
1756
+ {
1757
+ "name": "hosts",
1758
+ "in": "query",
1759
+ "description": "The hostnames that will need to match.",
1760
+ "schema": {
1761
+ "type": "string"
1762
+ }
1763
+ },
1764
+ {
1765
+ "name": "families",
1766
+ "in": "query",
1767
+ "description": "The alarm families.",
1768
+ "schema": {
1769
+ "type": "string"
1770
+ }
1771
+ }
1772
+ ],
1773
+ "responses": {
1774
+ "200": {
1775
+ "description": "A plain text response based on the result of the command."
1776
+ },
1777
+ "403": {
1778
+ "description": "Bearer authentication error."
1779
+ }
1780
+ }
1781
+ }
1782
+ },
1783
+ "/api/v1/aclk": {
1784
+ "get": {
1785
+ "summary": "Get information about current ACLK state",
1786
+ "description": "ACLK endpoint returns detailed information about current state of ACLK (Agent to Cloud communication).",
1787
+ "responses": {
1788
+ "200": {
1789
+ "description": "JSON object with ACLK information.",
1790
+ "content": {
1791
+ "application/json": {
1792
+ "schema": {
1793
+ "$ref": "#/components/schemas/aclk_state"
1794
+ }
1795
+ }
1796
+ }
1797
+ }
1798
+ }
1799
+ }
1800
+ },
1801
+ "/api/v1/metric_correlations": {
1802
+ "get": {
1803
+ "summary": "Analyze all the metrics to find their correlations",
1804
+ "description": "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).",
1805
+ "parameters": [
1806
+ {
1807
+ "name": "baseline_after",
1808
+ "in": "query",
1809
+ "description": "This parameter can either be an absolute timestamp specifying the starting point of baseline window, or a relative number of seconds (negative, relative to parameter baseline_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds).",
1810
+ "required": false,
1811
+ "allowEmptyValue": false,
1812
+ "schema": {
1813
+ "type": "number",
1814
+ "format": "integer",
1815
+ "default": -300
1816
+ }
1817
+ },
1818
+ {
1819
+ "name": "baseline_before",
1820
+ "in": "query",
1821
+ "description": "This parameter can either be an absolute timestamp specifying the ending point of the baseline window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds).",
1822
"required": false,
1823
"schema": {
1824
"type": "number",
1849
"default": 0
1850
}
1851
},
1744
- {
1745
- "name": "context",
1746
- "in": "query",
1747
- "description": "A simple pattern matching the contexts to evaluate.",
1748
- "required": false,
1749
- "allowEmptyValue": false,
1750
- "schema": {
1751
- "type": "string"
1752
- }
1753
- },
1852
{
1853
"name": "points",
1854
"in": "query",
1757
- "description": "The number of points to be evaluated for the highlighted window. The baseline window will be adjusted automatically to receive a proportional amount of points. This parameter is only used by the KS2 algorithm.",
1855
+ "description": "The number of points to be evaluated for the highlighted window. The baseline window will be adjusted automatically to receive a proportional amount of points.",
1856
"required": false,
1857
"allowEmptyValue": false,
1858
"schema": {
1870
"type": "string",
1871
"enum": [
1872
"ks2",
1775
- "volume",
1776
- "anomaly-rate"
1873
+ "volume"
1874
],
1778
- "default": "anomaly-rate"
1779
- }
1780
- },
1781
- {
1782
- "name": "tier",
1783
- "in": "query",
1784
- "description": "Use the specified database tier",
1785
- "required": false,
1786
- "allowEmptyValue": false,
1787
- "schema": {
1788
- "type": "number",
1789
- "format": "integer"
1875
+ "default": "ks2"
1876
}
1877
},
1878
{
1905
"null2zero",
1906
"percentage",
1907
"unaligned",
1908
+ "allow_past",
1909
"nonzero",
1910
"anomaly-bit",
1911
"raw"
1913
},
1914
"default": [
1915
"null2zero",
1916
+ "allow_past",
1917
"nonzero",
1918
"unaligned"
1919
]
1984
],
1985
"responses": {
1986
"200": {
1899
- "description": "JSON object with weights for each context, chart and dimension.",
1987
+ "description": "JSON object with weights for each chart and dimension.",
1988
"content": {
1989
"application/json": {
1990
"schema": {
1903
- "$ref": "#/components/schemas/weights"
1991
+ "$ref": "#/components/schemas/metric_correlations"
1992
}
1993
}
1994
}
2007
}
2008
}
2009
}
1922
- }
1923
- },
1924
- "servers": [
1925
- {
1926
- "url": "https://registry.my-netdata.io/api/v1"
2010
},
1928
- {
1929
- "url": "http://registry.my-netdata.io/api/v1"
1930
- }
1931
- ],
1932
- "components": {
1933
- "schemas": {
1934
- "info": {
1935
- "type": "object",
1936
- "properties": {
1937
- "version": {
1938
- "type": "string",
1939
- "description": "netdata version of the server.",
1940
- "example": "1.11.1_rolling"
1941
- },
1942
- "uid": {
1943
- "type": "string",
1944
- "description": "netdata unique id of the server.",
1945
- "example": "24e9fe3c-f2ac-11e8-bafc-0242ac110002"
1946
- },
1947
- "mirrored_hosts": {
1948
- "type": "array",
1949
- "description": "List of hosts mirrored of the server (include itself).",
1950
- "items": {
2011
+ "/api/v1/function": {
2012
+ "get": {
2013
+ "summary": "Execute a collector function.",
2014
+ "parameters": [
2015
+ {
2016
+ "name": "function",
2017
+ "in": "query",
2018
+ "description": "The name of the function, as returned by the collector.",
2019
+ "required": true,
2020
+ "allowEmptyValue": false,
2021
+ "schema": {
2022
"type": "string"
1952
- },
1953
- "example": [
1954
- "host1.example.com",
1955
- "host2.example.com"
1956
- ]
1957
- },
1958
- "mirrored_hosts_status": {
1959
- "type": "array",
1960
- "description": "List of details of hosts mirrored to this served (including self). Indexes correspond to indexes in \"mirrored_hosts\".",
1961
- "items": {
1962
- "type": "object",
1963
- "description": "Host data",
1964
- "properties": {
1965
- "guid": {
1966
- "type": "string",
1967
- "format": "uuid",
1968
- "nullable": false,
1969
- "description": "Host unique GUID from `netdata.public.unique.id`.",
1970
- "example": "245e4bff-3b34-47c1-a6e5-5c535a9abfb2"
1971
- },
1972
- "reachable": {
1973
- "type": "boolean",
1974
- "nullable": false,
1975
- "description": "Current state of streaming. Always true for localhost/self."
1976
- },
1977
- "claim_id": {
1978
- "type": "string",
1979
- "format": "uuid",
1980
- "nullable": true,
1981
- "description": "Cloud GUID/identifier in case the host is claimed. If child status unknown or unclaimed this field is set to `null`",
1982
- "example": "c3b2a66a-3052-498c-ac52-7fe9e8cccb0c"
1983
- }
1984
- }
2023
}
2024
},
1987
- "os_name": {
1988
- "type": "string",
1989
- "description": "Operating System Name.",
1990
- "example": "Manjaro Linux"
1991
- },
1992
- "os_id": {
1993
- "type": "string",
1994
- "description": "Operating System ID.",
1995
- "example": "manjaro"
1996
- },
1997
- "os_id_like": {
1998
- "type": "string",
1999
- "description": "Known OS similar to this OS.",
2000
- "example": "arch"
2001
- },
2002
- "os_version": {
2003
- "type": "string",
2004
- "description": "Operating System Version.",
2005
- "example": "18.0.4"
2006
- },
2007
- "os_version_id": {
2008
- "type": "string",
2009
- "description": "Operating System Version ID.",
2010
- "example": "unknown"
2025
+ {
2026
+ "name": "timeout",
2027
+ "in": "query",
2028
+ "description": "The timeout in seconds to wait for the function to complete.",
2029
+ "required": false,
2030
+ "schema": {
2031
+ "type": "number",
2032
+ "format": "integer",
2033
+ "default": 10
2034
+ }
2035
+ }
2036
+ ],
2037
+ "responses": {
2038
+ "200": {
2039
+ "description": "The collector function has been executed successfully. Each collector may return a different type of content."
2040
},
2012
- "os_detection": {
2013
- "type": "string",
2014
- "description": "OS parameters detection method.",
2015
- "example": "Mixed"
2041
+ "400": {
2042
+ "description": "The request was rejected by the collector."
2043
},
2017
- "kernel_name": {
2018
- "type": "string",
2019
- "description": "Kernel Name.",
2020
- "example": "Linux"
2044
+ "404": {
2045
+ "description": "The requested function is not found."
2046
},
2022
- "kernel_version": {
2023
- "type": "string",
2024
- "description": "Kernel Version.",
2025
- "example": "4.19.32-1-MANJARO"
2047
+ "500": {
2048
+ "description": "Other internal error, getting this error means there is a bug in Netdata."
2049
},
2027
- "is_k8s_node": {
2028
- "type": "boolean",
2029
- "description": "Netdata is running on a K8s node.",
2030
- "example": false
2050
+ "503": {
2051
+ "description": "The collector to execute the function is not currently available."
2052
},
2032
- "architecture": {
2033
- "type": "string",
2034
- "description": "Kernel architecture.",
2035
- "example": "x86_64"
2053
+ "504": {
2054
+ "description": "Timeout while waiting for the collector to execute the function."
2055
},
2037
- "virtualization": {
2038
- "type": "string",
2039
- "description": "Virtualization Type.",
2040
- "example": "kvm"
2056
+ "591": {
2057
+ "description": "The collector sent a response, but it was invalid or corrupted."
2058
+ }
2059
+ }
2060
+ }
2061
+ },
2062
+ "/api/v1/functions": {
2063
+ "get": {
2064
+ "summary": "Get a list of all registered collector functions.",
2065
+ "description": "Collector functions are programs that can be executed on demand.",
2066
+ "responses": {
2067
+ "200": {
2068
+ "description": "A JSON object containing one object per supported function."
2069
+ }
2070
+ }
2071
+ }
2072
+ },
2073
+ "/api/v1/weights": {
2074
+ "get": {
2075
+ "summary": "Analyze all the metrics using an algorithm and score them accordingly",
2076
+ "description": "This endpoint goes through all metrics and scores them according to an algorithm.",
2077
+ "parameters": [
2078
+ {
2079
+ "name": "baseline_after",
2080
+ "in": "query",
2081
+ "description": "This parameter can either be an absolute timestamp specifying the starting point of baseline window, or a relative number of seconds (negative, relative to parameter baseline_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds). This parameter is used in KS2 and VOLUME algorithms.",
2082
+ "required": false,
2083
+ "allowEmptyValue": false,
2084
+ "schema": {
2085
+ "type": "number",
2086
+ "format": "integer",
2087
+ "default": -300
2088
+ }
2089
},
2042
- "virt_detection": {
2043
- "type": "string",
2044
- "description": "Virtualization detection method.",
2045
- "example": "systemd-detect-virt"
2090
+ {
2091
+ "name": "baseline_before",
2092
+ "in": "query",
2093
+ "description": "This parameter can either be an absolute timestamp specifying the ending point of the baseline window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds). This parameter is used in KS2 and VOLUME algorithms.",
2094
+ "required": false,
2095
+ "schema": {
2096
+ "type": "number",
2097
+ "format": "integer",
2098
+ "default": -60
2099
+ }
2100
},
2047
- "container": {
2048
- "type": "string",
2049
- "description": "Container technology.",
2050
- "example": "docker"
2101
+ {
2102
+ "name": "after",
2103
+ "in": "query",
2104
+ "description": "This parameter can either be an absolute timestamp specifying the starting point of highlighted window, or a relative number of seconds (negative, relative to parameter highlight_before). Netdata will assume it is a relative number if it is less that 3 years (in seconds).",
2105
+ "required": false,
2106
+ "allowEmptyValue": false,
2107
+ "schema": {
2108
+ "type": "number",
2109
+ "format": "integer",
2110
+ "default": -60
2111
+ }
2112
},
2052
- "container_detection": {
2053
- "type": "string",
2054
- "description": "Container technology detection method.",
2055
- "example": "dockerenv"
2113
+ {
2114
+ "name": "before",
2115
+ "in": "query",
2116
+ "description": "This parameter can either be an absolute timestamp specifying the ending point of the highlighted window, or a relative number of seconds (negative), relative to the last collected timestamp. Netdata will assume it is a relative number if it is less than 3 years (in seconds).",
2117
+ "required": false,
2118
+ "schema": {
2119
+ "type": "number",
2120
+ "format": "integer",
2121
+ "default": 0
2122
+ }
2123
},
2057
- "stream_compression": {
2058
- "type": "boolean",
2059
- "description": "Stream transmission compression method.",
2060
- "example": true
2124
+ {
2125
+ "name": "context",
2126
+ "in": "query",
2127
+ "description": "A simple pattern matching the contexts to evaluate.",
2128
+ "required": false,
2129
+ "allowEmptyValue": false,
2130
+ "schema": {
2131
+ "type": "string"
2132
+ }
2133
},
2062
- "labels": {
2063
- "type": "object",
2064
- "description": "List of host labels.",
2065
- "properties": {
2066
- "app": {
2067
- "type": "string",
2068
- "description": "Host label.",
2069
- "example": "netdata"
2070
- }
2134
+ {
2135
+ "name": "points",
2136
+ "in": "query",
2137
+ "description": "The number of points to be evaluated for the highlighted window. The baseline window will be adjusted automatically to receive a proportional amount of points. This parameter is only used by the KS2 algorithm.",
2138
+ "required": false,
2139
+ "allowEmptyValue": false,
2140
+ "schema": {
2141
+ "type": "number",
2142
+ "format": "integer",
2143
+ "default": 500
2144
}
2145
},
2073
- "collectors": {
2074
- "type": "array",
2075
- "items": {
2076
- "type": "object",
2077
- "description": "Array of collector plugins and modules.",
2078
- "properties": {
2079
- "plugin": {
2080
- "type": "string",
2081
- "description": "Collector plugin.",
2082
- "example": "python.d.plugin"
2083
- },
2084
- "module": {
2085
- "type": "string",
2086
- "description": "Module of the collector plugin.",
2087
- "example": "dockerd"
2088
- }
2089
- }
2146
+ {
2147
+ "name": "method",
2148
+ "in": "query",
2149
+ "description": "the algorithm to run",
2150
+ "required": false,
2151
+ "schema": {
2152
+ "type": "string",
2153
+ "enum": [
2154
+ "ks2",
2155
+ "volume",
2156
+ "anomaly-rate"
2157
+ ],
2158
+ "default": "anomaly-rate"
2159
}
2160
},
2092
- "alarms": {
2093
- "type": "object",
2094
- "description": "Number of alarms in the server.",
2095
- "properties": {
2096
- "normal": {
2097
- "type": "integer",
2098
- "description": "Number of alarms in normal state."
2099
- },
2100
- "warning": {
2101
- "type": "integer",
2102
- "description": "Number of alarms in warning state."
2103
- },
2104
- "critical": {
2105
- "type": "integer",
2106
- "description": "Number of alarms in critical state."
2107
- }
2161
+ {
2162
+ "name": "tier",
2163
+ "in": "query",
2164
+ "description": "Use the specified database tier",
2165
+ "required": false,
2166
+ "allowEmptyValue": false,
2167
+ "schema": {
2168
+ "type": "number",
2169
+ "format": "integer"
2170
}
2109
- }
2110
- }
2111
- },
2112
- "chart_summary": {
2113
- "type": "object",
2114
- "properties": {
2115
- "hostname": {
2116
- "type": "string",
2117
- "description": "The hostname of the netdata server."
2171
},
2119
- "version": {
2120
- "type": "string",
2121
- "description": "netdata version of the server."
2172
+ {
2173
+ "name": "timeout",
2174
+ "in": "query",
2175
+ "description": "Cancel the query if to takes more that this amount of milliseconds.",
2176
+ "required": false,
2177
+ "allowEmptyValue": false,
2178
+ "schema": {
2179
+ "type": "number",
2180
+ "format": "integer",
2181
+ "default": 60000
2182
+ }
2183
},
2123
- "release_channel": {
2124
- "type": "string",
2125
- "description": "The release channel of the build on the server.",
2126
- "example": "nightly"
2127
- },
2128
- "timezone": {
2129
- "type": "string",
2130
- "description": "The current timezone on the server."
2131
- },
2132
- "os": {
2133
- "type": "string",
2134
- "description": "The netdata server host operating system.",
2135
- "enum": [
2136
- "macos",
2137
- "linux",
2138
- "freebsd"
2139
- ]
2140
- },
2141
- "history": {
2142
- "type": "number",
2143
- "description": "The duration, in seconds, of the round robin database maintained by netdata."
2144
- },
2145
- "memory_mode": {
2146
- "type": "string",
2147
- "description": "The name of the database memory mode on the server."
2184
+ {
2185
+ "name": "options",
2186
+ "in": "query",
2187
+ "description": "Options that affect data generation.",
2188
+ "required": false,
2189
+ "allowEmptyValue": false,
2190
+ "schema": {
2191
+ "type": "array",
2192
+ "items": {
2193
+ "type": "string",
2194
+ "enum": [
2195
+ "min2max",
2196
+ "abs",
2197
+ "absolute",
2198
+ "absolute-sum",
2199
+ "null2zero",
2200
+ "percentage",
2201
+ "unaligned",
2202
+ "nonzero",
2203
+ "anomaly-bit",
2204
+ "raw"
2205
+ ]
2206
+ },
2207
+ "default": [
2208
+ "null2zero",
2209
+ "nonzero",
2210
+ "unaligned"
2211
+ ]
2212
+ }
2213
},
2149
- "update_every": {
2150
- "type": "number",
2151
- "description": "The default update frequency of the netdata server. All charts have an update frequency equal or bigger than this."
2214
+ {
2215
+ "name": "group",
2216
+ "in": "query",
2217
+ "description": "The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. methods supported \"min\", \"max\", \"average\", \"sum\", \"incremental-sum\". \"max\" is actually calculated on the absolute value collected (so it works for both positive and negative dimensions to return the most extreme value in either direction).",
2218
+ "required": true,
2219
+ "allowEmptyValue": false,
2220
+ "schema": {
2221
+ "type": "string",
2222
+ "enum": [
2223
+ "min",
2224
+ "max",
2225
+ "average",
2226
+ "median",
2227
+ "stddev",
2228
+ "sum",
2229
+ "incremental-sum",
2230
+ "ses",
2231
+ "des",
2232
+ "cv",
2233
+ "countif",
2234
+ "percentile",
2235
+ "percentile25",
2236
+ "percentile50",
2237
+ "percentile75",
2238
+ "percentile80",
2239
+ "percentile90",
2240
+ "percentile95",
2241
+ "percentile97",
2242
+ "percentile98",
2243
+ "percentile99",
2244
+ "trimmed-mean",
2245
+ "trimmed-mean1",
2246
+ "trimmed-mean2",
2247
+ "trimmed-mean3",
2248
+ "trimmed-mean5",
2249
+ "trimmed-mean10",
2250
+ "trimmed-mean15",
2251
+ "trimmed-mean20",
2252
+ "trimmed-mean25",
2253
+ "trimmed-median",
2254
+ "trimmed-median1",
2255
+ "trimmed-median2",
2256
+ "trimmed-median3",
2257
+ "trimmed-median5",
2258
+ "trimmed-median10",
2259
+ "trimmed-median15",
2260
+ "trimmed-median20",
2261
+ "trimmed-median25"
2262
+ ],
2263
+ "default": "average"
2264
+ }
2265
},
2153
- "charts": {
2154
- "type": "object",
2155
- "description": "An object containing all the chart objects available at the netdata server. This is used as an indexed array. The key of each chart object is the id of the chart.",
2156
- "additionalProperties": {
2157
- "$ref": "#/components/schemas/chart"
2266
+ {
2267
+ "name": "group_options",
2268
+ "in": "query",
2269
+ "description": "When the group function supports additional parameters, this field can be used to pass them to it. Currently only \"countif\" supports this.",
2270
+ "required": false,
2271
+ "allowEmptyValue": false,
2272
+ "schema": {
2273
+ "type": "string"
2274
+ }
2275
+ }
2276
+ ],
2277
+ "responses": {
2278
+ "200": {
2279
+ "description": "JSON object with weights for each context, chart and dimension.",
2280
+ "content": {
2281
+ "application/json": {
2282
+ "schema": {
2283
+ "$ref": "#/components/schemas/weights"
2284
+ }
2285
+ }
2286
}
2287
},
2160
- "charts_count": {
2161
- "type": "number",
2162
- "description": "The number of charts."
2288
+ "400": {
2289
+ "description": "The given parameters are invalid."
2290
},
2164
- "dimensions_count": {
2165
- "type": "number",
2166
- "description": "The total number of dimensions."
2291
+ "403": {
2292
+ "description": "metrics correlations are not enabled on this Netdata Agent."
2293
},
2168
- "alarms_count": {
2169
- "type": "number",
2170
- "description": "The number of alarms."
2294
+ "404": {
2295
+ "description": "No charts could be found, or the method that correlated the metrics did not produce any result."
2296
},
2172
- "rrd_memory_bytes": {
2173
- "type": "number",
2174
- "description": "The size of the round robin database in bytes."
2297
+ "504": {
2298
+ "description": "Timeout - the query took too long and has been cancelled."
2299
}
2300
}
2177
- },
2178
- "chart": {
2301
+ }
2302
+ }
2303
+ },
2304
+ "servers": [
2305
+ {
2306
+ "url": "https://registry.my-netdata.io"
2307
+ },
2308
+ {
2309
+ "url": "http://registry.my-netdata.io"
2310
+ },
2311
+ {
2312
+ "url": "http://localhost:19999"
2313
+ }
2314
+ ],
2315
+ "components": {
2316
+ "schemas": {
2317
+ "info": {
2318
"type": "object",
2319
"properties": {
2181
- "id": {
2320
+ "version": {
2321
"type": "string",
2183
- "description": "The unique id of the chart."
2322
+ "description": "netdata version of the server.",
2323
+ "example": "1.11.1_rolling"
2324
},
2185
- "name": {
2325
+ "uid": {
2326
"type": "string",
2187
- "description": "The name of the chart."
2327
+ "description": "netdata unique id of the server.",
2328
+ "example": "24e9fe3c-f2ac-11e8-bafc-0242ac110002"
2329
},
2189
- "type": {
2190
- "type": "string",
2191
- "description": "The type of the chart. Types are not handled by netdata. You can use this field for anything you like."
2330
+ "mirrored_hosts": {
2331
+ "type": "array",
2332
+ "description": "List of hosts mirrored of the server (include itself).",
2333
+ "items": {
2334
+ "type": "string"
2335
+ },
2336
+ "example": [
2337
+ "host1.example.com",
2338
+ "host2.example.com"
2339
+ ]
2340
},
2193
- "family": {
2341
+ "mirrored_hosts_status": {
2342
+ "type": "array",
2343
+ "description": "List of details of hosts mirrored to this served (including self). Indexes correspond to indexes in \"mirrored_hosts\".",
2344
+ "items": {
2345
+ "type": "object",
2346
+ "description": "Host data",
2347
+ "properties": {
2348
+ "guid": {
2349
+ "type": "string",
2350
+ "format": "uuid",
2351
+ "nullable": false,
2352
+ "description": "Host unique GUID from `netdata.public.unique.id`.",
2353
+ "example": "245e4bff-3b34-47c1-a6e5-5c535a9abfb2"
2354
+ },
2355
+ "reachable": {
2356
+ "type": "boolean",
2357
+ "nullable": false,
2358
+ "description": "Current state of streaming. Always true for localhost/self."
2359
+ },
2360
+ "claim_id": {
2361
+ "type": "string",
2362
+ "format": "uuid",
2363
+ "nullable": true,
2364
+ "description": "Cloud GUID/identifier in case the host is claimed. If child status unknown or unclaimed this field is set to `null`",
2365
+ "example": "c3b2a66a-3052-498c-ac52-7fe9e8cccb0c"
2366
+ }
2367
+ }
2368
+ }
2369
+ },
2370
+ "os_name": {
2371
"type": "string",
2195
- "description": "The family of the chart. Families are not handled by netdata. You can use this field for anything you like."
2372
+ "description": "Operating System Name.",
2373
+ "example": "Manjaro Linux"
2374
},
2197
- "title": {
2375
+ "os_id": {
2376
"type": "string",
2199
- "description": "The title of the chart."
2377
+ "description": "Operating System ID.",
2378
+ "example": "manjaro"
2379
},
2201
- "priority": {
2202
- "type": "number",
2203
- "description": "The relative priority of the chart. Netdata does not care about priorities. This is just an indication of importance for the chart viewers to sort charts of higher priority (lower number) closer to the top. Priority sorting should only be used among charts of the same type or family."
2380
+ "os_id_like": {
2381
+ "type": "string",
2382
+ "description": "Known OS similar to this OS.",
2383
+ "example": "arch"
2384
},
2205
- "enabled": {
2206
- "type": "boolean",
2207
- "description": "True when the chart is enabled. Disabled charts do not currently collect values, but they may have historical values available."
2385
+ "os_version": {
2386
+ "type": "string",
2387
+ "description": "Operating System Version.",
2388
+ "example": "18.0.4"
2389
},
2209
- "units": {
2390
+ "os_version_id": {
2391
"type": "string",
2211
- "description": "The unit of measurement for the values of all dimensions of the chart."
2392
+ "description": "Operating System Version ID.",
2393
+ "example": "unknown"
2394
},
2213
- "data_url": {
2395
+ "os_detection": {
2396
"type": "string",
2215
- "description": "The absolute path to get data values for this chart. You are expected to use this path as the base when constructing the URL to fetch data values for this chart."
2397
+ "description": "OS parameters detection method.",
2398
+ "example": "Mixed"
2399
},
2217
- "chart_type": {
2400
+ "kernel_name": {
2401
"type": "string",
2219
- "description": "The chart type.",
2220
- "enum": [
2402
+ "description": "Kernel Name.",
2403
+ "example": "Linux"
2404
+ },
2405
+ "kernel_version": {
2406
+ "type": "string",
2407
+ "description": "Kernel Version.",
2408
+ "example": "4.19.32-1-MANJARO"
2409
+ },
2410
+ "is_k8s_node": {
2411
+ "type": "boolean",
2412
+ "description": "Netdata is running on a K8s node.",
2413
+ "example": false
2414
+ },
2415
+ "architecture": {
2416
+ "type": "string",
2417
+ "description": "Kernel architecture.",
2418
+ "example": "x86_64"
2419
+ },
2420
+ "virtualization": {
2421
+ "type": "string",
2422
+ "description": "Virtualization Type.",
2423
+ "example": "kvm"
2424
+ },
2425
+ "virt_detection": {
2426
+ "type": "string",
2427
+ "description": "Virtualization detection method.",
2428
+ "example": "systemd-detect-virt"
2429
+ },
2430
+ "container": {
2431
+ "type": "string",
2432
+ "description": "Container technology.",
2433
+ "example": "docker"
2434
+ },
2435
+ "container_detection": {
2436
+ "type": "string",
2437
+ "description": "Container technology detection method.",
2438
+ "example": "dockerenv"
2439
+ },
2440
+ "stream_compression": {
2441
+ "type": "boolean",
2442
+ "description": "Stream transmission compression method.",
2443
+ "example": true
2444
+ },
2445
+ "labels": {
2446
+ "type": "object",
2447
+ "description": "List of host labels.",
2448
+ "properties": {
2449
+ "app": {
2450
+ "type": "string",
2451
+ "description": "Host label.",
2452
+ "example": "netdata"
2453
+ }
2454
+ }
2455
+ },
2456
+ "collectors": {
2457
+ "type": "array",
2458
+ "items": {
2459
+ "type": "object",
2460
+ "description": "Array of collector plugins and modules.",
2461
+ "properties": {
2462
+ "plugin": {
2463
+ "type": "string",
2464
+ "description": "Collector plugin.",
2465
+ "example": "python.d.plugin"
2466
+ },
2467
+ "module": {
2468
+ "type": "string",
2469
+ "description": "Module of the collector plugin.",
2470
+ "example": "dockerd"
2471
+ }
2472
+ }
2473
+ }
2474
+ },
2475
+ "alarms": {
2476
+ "type": "object",
2477
+ "description": "Number of alarms in the server.",
2478
+ "properties": {
2479
+ "normal": {
2480
+ "type": "integer",
2481
+ "description": "Number of alarms in normal state."
2482
+ },
2483
+ "warning": {
2484
+ "type": "integer",
2485
+ "description": "Number of alarms in warning state."
2486
+ },
2487
+ "critical": {
2488
+ "type": "integer",
2489
+ "description": "Number of alarms in critical state."
2490
+ }
2491
+ }
2492
+ }
2493
+ }
2494
+ },
2495
+ "chart_summary": {
2496
+ "type": "object",
2497
+ "properties": {
2498
+ "hostname": {
2499
+ "type": "string",
2500
+ "description": "The hostname of the netdata server."
2501
+ },
2502
+ "version": {
2503
+ "type": "string",
2504
+ "description": "netdata version of the server."
2505
+ },
2506
+ "release_channel": {
2507
+ "type": "string",
2508
+ "description": "The release channel of the build on the server.",
2509
+ "example": "nightly"
2510
+ },
2511
+ "timezone": {
2512
+ "type": "string",
2513
+ "description": "The current timezone on the server."
2514
+ },
2515
+ "os": {
2516
+ "type": "string",
2517
+ "description": "The netdata server host operating system.",
2518
+ "enum": [
2519
+ "macos",
2520
+ "linux",
2521
+ "freebsd"
2522
+ ]
2523
+ },
2524
+ "history": {
2525
+ "type": "number",
2526
+ "description": "The duration, in seconds, of the round robin database maintained by netdata."
2527
+ },
2528
+ "memory_mode": {
2529
+ "type": "string",
2530
+ "description": "The name of the database memory mode on the server."
2531
+ },
2532
+ "update_every": {
2533
+ "type": "number",
2534
+ "description": "The default update frequency of the netdata server. All charts have an update frequency equal or bigger than this."
2535
+ },
2536
+ "charts": {
2537
+ "type": "object",
2538
+ "description": "An object containing all the chart objects available at the netdata server. This is used as an indexed array. The key of each chart object is the id of the chart.",
2539
+ "additionalProperties": {
2540
+ "$ref": "#/components/schemas/chart"
2541
+ }
2542
+ },
2543
+ "charts_count": {
2544
+ "type": "number",
2545
+ "description": "The number of charts."
2546
+ },
2547
+ "dimensions_count": {
2548
+ "type": "number",
2549
+ "description": "The total number of dimensions."
2550
+ },
2551
+ "alarms_count": {
2552
+ "type": "number",
2553
+ "description": "The number of alarms."
2554
+ },
2555
+ "rrd_memory_bytes": {
2556
+ "type": "number",
2557
+ "description": "The size of the round robin database in bytes."
2558
+ }
2559
+ }
2560
+ },
2561
+ "chart": {
2562
+ "type": "object",
2563
+ "properties": {
2564
+ "id": {
2565
+ "type": "string",
2566
+ "description": "The unique id of the chart."
2567
+ },
2568
+ "name": {
2569
+ "type": "string",
2570
+ "description": "The name of the chart."
2571
+ },
2572
+ "type": {
2573
+ "type": "string",
2574
+ "description": "The type of the chart. Types are not handled by netdata. You can use this field for anything you like."
2575
+ },
2576
+ "family": {
2577
+ "type": "string",
2578
+ "description": "The family of the chart. Families are not handled by netdata. You can use this field for anything you like."
2579
+ },
2580
+ "title": {
2581
+ "type": "string",
2582
+ "description": "The title of the chart."
2583
+ },
2584
+ "priority": {
2585
+ "type": "number",
2586
+ "description": "The relative priority of the chart. Netdata does not care about priorities. This is just an indication of importance for the chart viewers to sort charts of higher priority (lower number) closer to the top. Priority sorting should only be used among charts of the same type or family."
2587
+ },
2588
+ "enabled": {
2589
+ "type": "boolean",
2590
+ "description": "True when the chart is enabled. Disabled charts do not currently collect values, but they may have historical values available."
2591
+ },
2592
+ "units": {
2593
+ "type": "string",
2594
+ "description": "The unit of measurement for the values of all dimensions of the chart."
2595
+ },
2596
+ "data_url": {
2597
+ "type": "string",
2598
+ "description": "The absolute path to get data values for this chart. You are expected to use this path as the base when constructing the URL to fetch data values for this chart."
2599
+ },
2600
+ "chart_type": {
2601
+ "type": "string",
2602
+ "description": "The chart type.",
2603
+ "enum": [
2604
"line",
2605
"area",
2606
"stacked"
2635
}
2636
}
2637
},
2255
- "chart_variables": {
2256
- "type": "object",
2257
- "additionalProperties": {
2258
- "$ref": "#/components/schemas/chart_variables"
2259
- }
2260
- },
2261
- "green": {
2262
- "type": "number",
2263
- "nullable": true,
2264
- "description": "Chart health green threshold."
2265
- },
2266
- "red": {
2267
- "type": "number",
2268
- "nullable": true,
2269
- "description": "Chart health red threshold."
2638
+ "chart_variables": {
2639
+ "type": "object",
2640
+ "additionalProperties": {
2641
+ "$ref": "#/components/schemas/chart_variables"
2642
+ }
2643
+ },
2644
+ "green": {
2645
+ "type": "number",
2646
+ "nullable": true,
2647
+ "description": "Chart health green threshold."
2648
+ },
2649
+ "red": {
2650
+ "type": "number",
2651
+ "nullable": true,
2652
+ "description": "Chart health red threshold."
2653
+ }
2654
+ }
2655
+ },
2656
+ "context_summary": {
2657
+ "type": "object",
2658
+ "properties": {
2659
+ "hostname": {
2660
+ "type": "string",
2661
+ "description": "The hostname of the netdata server."
2662
+ },
2663
+ "machine_guid": {
2664
+ "type": "string",
2665
+ "description": "The unique installation id of this netdata server."
2666
+ },
2667
+ "node_id": {
2668
+ "type": "string",
2669
+ "description": "The unique node id of this netdata server at the hub.",
2670
+ "example": "nightly"
2671
+ },
2672
+ "claim_id": {
2673
+ "type": "string",
2674
+ "description": "The unique handshake id of this netdata server and the hub."
2675
+ },
2676
+ "host_labels": {
2677
+ "type": "object",
2678
+ "description": "The host labels associated with this netdata server."
2679
+ },
2680
+ "context": {
2681
+ "type": "object",
2682
+ "description": "An object containing all the context objects available at the netdata server. This is used as an indexed array. The key of each context object is the id of the context.",
2683
+ "additionalProperties": {
2684
+ "$ref": "#/components/schemas/context"
2685
+ }
2686
+ }
2687
+ }
2688
+ },
2689
+ "context": {
2690
+ "type": "object",
2691
+ "properties": {
2692
+ "version": {
2693
+ "type": "string",
2694
+ "description": "The version of this context. The number are not sequential, but bigger numbers depict a newer object."
2695
+ },
2696
+ "hub_version": {
2697
+ "type": "string",
2698
+ "description": "The version of this context, as known by hub."
2699
+ },
2700
+ "family": {
2701
+ "type": "string",
2702
+ "description": "The family of the context. When multiple charts of a context have different families, the netdata server replaces the different parts with [x], so that the context can have only one family."
2703
+ },
2704
+ "title": {
2705
+ "type": "string",
2706
+ "description": "The title of the context. When multiple charts of a context have different titles, the netdata server replaces the different parts with [x], so that the context can have only one title."
2707
+ },
2708
+ "priority": {
2709
+ "type": "number",
2710
+ "description": "The relative priority of the context. When multiple contexts have different priorities, the minimum among them is selected as the priority of the context."
2711
+ },
2712
+ "units": {
2713
+ "type": "string",
2714
+ "description": "The unit of measurement for the values of all dimensions of the context. If multiple charts of context have different units, the latest collected is selected."
2715
+ },
2716
+ "chart_type": {
2717
+ "type": "string",
2718
+ "description": "The chart type.",
2719
+ "enum": [
2720
+ "line",
2721
+ "area",
2722
+ "stacked"
2723
+ ]
2724
+ },
2725
+ "first_time_t": {
2726
+ "type": "number",
2727
+ "description": "The UNIX timestamp of the first entry (the oldest) in the database."
2728
+ },
2729
+ "last_time_t": {
2730
+ "type": "number",
2731
+ "description": "The UNIX timestamp of the latest entry in the database."
2732
+ },
2733
+ "charts": {
2734
+ "type": "object",
2735
+ "description": "An object containing all the charts available for the chart. This is used as an indexed array. For each pair in the dictionary, the key is the id of the chart and the value provides all details about the chart."
2736
+ }
2737
+ }
2738
+ },
2739
+ "alarm_variables": {
2740
+ "type": "object",
2741
+ "properties": {
2742
+ "chart": {
2743
+ "type": "string",
2744
+ "description": "The unique id of the chart."
2745
+ },
2746
+ "chart_name": {
2747
+ "type": "string",
2748
+ "description": "The name of the chart."
2749
+ },
2750
+ "cnart_context": {
2751
+ "type": "string",
2752
+ "description": "The context of the chart. It is shared across multiple monitored software or hardware instances and used in alarm templates."
2753
+ },
2754
+ "family": {
2755
+ "type": "string",
2756
+ "description": "The family of the chart."
2757
+ },
2758
+ "host": {
2759
+ "type": "string",
2760
+ "description": "The host containing the chart."
2761
+ },
2762
+ "chart_variables": {
2763
+ "type": "object",
2764
+ "additionalProperties": {
2765
+ "$ref": "#/components/schemas/chart_variables"
2766
+ }
2767
+ },
2768
+ "family_variables": {
2769
+ "type": "object",
2770
+ "properties": {
2771
+ "varname1": {
2772
+ "type": "number",
2773
+ "format": "float"
2774
+ },
2775
+ "varname2": {
2776
+ "type": "number",
2777
+ "format": "float"
2778
+ }
2779
+ }
2780
+ },
2781
+ "host_variables": {
2782
+ "type": "object",
2783
+ "properties": {
2784
+ "varname1": {
2785
+ "type": "number",
2786
+ "format": "float"
2787
+ },
2788
+ "varname2": {
2789
+ "type": "number",
2790
+ "format": "float"
2791
+ }
2792
+ }
2793
+ }
2794
+ }
2795
+ },
2796
+ "chart_variables": {
2797
+ "type": "object",
2798
+ "properties": {
2799
+ "varname1": {
2800
+ "type": "number",
2801
+ "format": "float"
2802
+ },
2803
+ "varname2": {
2804
+ "type": "number",
2805
+ "format": "float"
2806
+ }
2807
+ }
2808
+ },
2809
+ "data": {
2810
+ "type": "object",
2811
+ "discriminator": {
2812
+ "propertyName": "format"
2813
+ },
2814
+ "description": "Response will contain the appropriate subtype, e.g. data_json depending on the requested format.",
2815
+ "properties": {
2816
+ "api": {
2817
+ "type": "number",
2818
+ "description": "The API version this conforms to, currently 1."
2819
+ },
2820
+ "id": {
2821
+ "type": "string",
2822
+ "description": "The unique id of the chart."
2823
+ },
2824
+ "name": {
2825
+ "type": "string",
2826
+ "description": "The name of the chart."
2827
+ },
2828
+ "update_every": {
2829
+ "type": "number",
2830
+ "description": "The update frequency of this chart, in seconds. One value every this amount of time is kept in the round robin database (independently of the current view)."
2831
+ },
2832
+ "view_update_every": {
2833
+ "type": "number",
2834
+ "description": "The current view appropriate update frequency of this chart, in seconds. There is no point to request chart refreshes, using the same settings, more frequently than this."
2835
+ },
2836
+ "first_entry": {
2837
+ "type": "number",
2838
+ "description": "The UNIX timestamp of the first entry (the oldest) in the round robin database (independently of the current view)."
2839
+ },
2840
+ "last_entry": {
2841
+ "type": "number",
2842
+ "description": "The UNIX timestamp of the latest entry in the round robin database (independently of the current view)."
2843
+ },
2844
+ "after": {
2845
+ "type": "number",
2846
+ "description": "The UNIX timestamp of the first entry (the oldest) returned in this response."
2847
+ },
2848
+ "before": {
2849
+ "type": "number",
2850
+ "description": "The UNIX timestamp of the latest entry returned in this response."
2851
+ },
2852
+ "min": {
2853
+ "type": "number",
2854
+ "description": "The minimum value returned in the current view. This can be used to size the y-series of the chart."
2855
+ },
2856
+ "max": {
2857
+ "type": "number",
2858
+ "description": "The maximum value returned in the current view. This can be used to size the y-series of the chart."
2859
+ },
2860
+ "dimension_names": {
2861
+ "description": "The dimension names of the chart as returned in the current view.",
2862
+ "type": "array",
2863
+ "items": {
2864
+ "type": "string"
2865
+ }
2866
+ },
2867
+ "dimension_ids": {
2868
+ "description": "The dimension IDs of the chart as returned in the current view.",
2869
+ "type": "array",
2870
+ "items": {
2871
+ "type": "string"
2872
+ }
2873
+ },
2874
+ "latest_values": {
2875
+ "description": "The latest values collected for the chart (independently of the current view).",
2876
+ "type": "array",
2877
+ "items": {
2878
+ "type": "string"
2879
+ }
2880
+ },
2881
+ "view_latest_values": {
2882
+ "description": "The latest values returned with this response.",
2883
+ "type": "array",
2884
+ "items": {
2885
+ "type": "string"
2886
+ }
2887
+ },
2888
+ "dimensions": {
2889
+ "type": "number",
2890
+ "description": "The number of dimensions returned."
2891
+ },
2892
+ "points": {
2893
+ "type": "number",
2894
+ "description": "The number of rows / points returned."
2895
+ },
2896
+ "format": {
2897
+ "type": "string",
2898
+ "description": "The format of the result returned."
2899
+ },
2900
+ "chart_variables": {
2901
+ "type": "object",
2902
+ "additionalProperties": {
2903
+ "$ref": "#/components/schemas/chart_variables"
2904
+ }
2905
+ }
2906
+ }
2907
+ },
2908
+ "data_json2": {
2909
+ "description": "Data response with `format=json2`\n",
2910
+ "type": "object",
2911
+ "properties": {
2912
+ "versions": {
2913
+ "description": "Hashes that allow the caller to detect important database changes of Netdata agents.\n",
2914
+ "type": "object",
2915
+ "properties": {
2916
+ "contexts_hard_hash": {
2917
+ "description": "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.\n",
2918
+ "type": "integer"
2919
+ },
2920
+ "contexts_soft_hash": {
2921
+ "description": "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.\n",
2922
+ "type": "integer"
2923
+ }
2924
+ }
2925
+ },
2926
+ "summary": {
2927
+ "description": "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.\n",
2928
+ "type": "object",
2929
+ "properties": {
2930
+ "nodes": {
2931
+ "type": "array",
2932
+ "items": {
2933
+ "type": "object",
2934
+ "description": "An object describing a node. `is` stands for instances, `ds` for dimensions, `al` for alerts, `sts` for statistics.\n",
2935
+ "properties": {
2936
+ "ni": {
2937
+ "description": "the node index id, a number that uniquely identifies this node for this query.",
2938
+ "type": "integer"
2939
+ },
2940
+ "mg": {
2941
+ "description": "the machine guid of the node.",
2942
+ "type": "string",
2943
+ "format": "UUID"
2944
+ },
2945
+ "nd": {
2946
+ "description": "the node id of the node.",
2947
+ "type": "string",
2948
+ "format": "UUID"
2949
+ },
2950
+ "nm": {
2951
+ "description": "the name (hostname) of the node.",
2952
+ "type": "string"
2953
+ },
2954
+ "is": {
2955
+ "$ref": "#/components/schemas/data_json2_items_count"
2956
+ },
2957
+ "ds": {
2958
+ "$ref": "#/components/schemas/data_json2_items_count"
2959
+ },
2960
+ "al": {
2961
+ "$ref": "#/components/schemas/data_json2_alerts_count"
2962
+ },
2963
+ "sts": {
2964
+ "oneOf": [
2965
+ {
2966
+ "$ref": "#/components/schemas/data_json2_sts"
2967
+ },
2968
+ {
2969
+ "$ref": "#/components/schemas/data_json2_sts_raw"
2970
+ }
2971
+ ]
2972
+ }
2973
+ }
2974
+ }
2975
+ },
2976
+ "contexts": {
2977
+ "type": "array",
2978
+ "items": {
2979
+ "type": "object",
2980
+ "description": "An object describing a unique context. `is` stands for instances, `ds` for dimensions, `al` for alerts, `sts` for statistics.\n",
2981
+ "properties": {
2982
+ "id": {
2983
+ "description": "the context id.",
2984
+ "type": "string"
2985
+ },
2986
+ "is": {
2987
+ "$ref": "#/components/schemas/data_json2_items_count"
2988
+ },
2989
+ "ds": {
2990
+ "$ref": "#/components/schemas/data_json2_items_count"
2991
+ },
2992
+ "al": {
2993
+ "$ref": "#/components/schemas/data_json2_alerts_count"
2994
+ },
2995
+ "sts": {
2996
+ "oneOf": [
2997
+ {
2998
+ "$ref": "#/components/schemas/data_json2_sts"
2999
+ },
3000
+ {
3001
+ "$ref": "#/components/schemas/data_json2_sts_raw"
3002
+ }
3003
+ ]
3004
+ }
3005
+ }
3006
+ }
3007
+ },
3008
+ "instances": {
3009
+ "type": "array",
3010
+ "items": {
3011
+ "type": "object",
3012
+ "description": "An object describing an instance. `ds` stands for dimensions, `al` for alerts, `sts` for statistics.\n",
3013
+ "properties": {
3014
+ "id": {
3015
+ "description": "the id of the instance.",
3016
+ "type": "string"
3017
+ },
3018
+ "nm": {
3019
+ "description": "the name of the instance (may be absent when it is the same with the id)",
3020
+ "type": "string"
3021
+ },
3022
+ "ni": {
3023
+ "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."
3024
+ },
3025
+ "ds": {
3026
+ "$ref": "#/components/schemas/data_json2_items_count"
3027
+ },
3028
+ "al": {
3029
+ "$ref": "#/components/schemas/data_json2_alerts_count"
3030
+ },
3031
+ "sts": {
3032
+ "oneOf": [
3033
+ {
3034
+ "$ref": "#/components/schemas/data_json2_sts"
3035
+ },
3036
+ {
3037
+ "$ref": "#/components/schemas/data_json2_sts_raw"
3038
+ }
3039
+ ]
3040
+ }
3041
+ }
3042
+ }
3043
+ },
3044
+ "dimensions": {
3045
+ "type": "array",
3046
+ "items": {
3047
+ "type": "object",
3048
+ "description": "An object describing a unique dimension. `ds` stands for `dimensions`, `sts` for statistics.\n",
3049
+ "properties": {
3050
+ "id": {
3051
+ "description": "the id of the dimension.",
3052
+ "type": "string"
3053
+ },
3054
+ "nm": {
3055
+ "description": "the name of the dimension (may be absent when it is the same with the id)",
3056
+ "type": "string"
3057
+ },
3058
+ "ds": {
3059
+ "$ref": "#/components/schemas/data_json2_items_count"
3060
+ },
3061
+ "sts": {
3062
+ "oneOf": [
3063
+ {
3064
+ "$ref": "#/components/schemas/data_json2_sts"
3065
+ },
3066
+ {
3067
+ "$ref": "#/components/schemas/data_json2_sts_raw"
3068
+ }
3069
+ ]
3070
+ }
3071
+ }
3072
+ }
3073
+ },
3074
+ "labels": {
3075
+ "type": "array",
3076
+ "items": {
3077
+ "type": "object",
3078
+ "description": "An object describing a label key. `ds` stands for `dimensions`, `sts` for statistics.\n",
3079
+ "properties": {
3080
+ "id": {
3081
+ "description": "the key of the label.",
3082
+ "type": "string"
3083
+ },
3084
+ "ds": {
3085
+ "$ref": "#/components/schemas/data_json2_items_count"
3086
+ },
3087
+ "sts": {
3088
+ "oneOf": [
3089
+ {
3090
+ "$ref": "#/components/schemas/data_json2_sts"
3091
+ },
3092
+ {
3093
+ "$ref": "#/components/schemas/data_json2_sts_raw"
3094
+ }
3095
+ ]
3096
+ },
3097
+ "vl": {
3098
+ "description": "An array of values for this key.\n",
3099
+ "type": "array",
3100
+ "items": {
3101
+ "type": "object",
3102
+ "properties": {
3103
+ "id": {
3104
+ "description": "The value string",
3105
+ "type": "string"
3106
+ },
3107
+ "ds": {
3108
+ "$ref": "#/components/schemas/data_json2_items_count"
3109
+ },
3110
+ "sts": {
3111
+ "oneOf": [
3112
+ {
3113
+ "$ref": "#/components/schemas/data_json2_sts"
3114
+ },
3115
+ {
3116
+ "$ref": "#/components/schemas/data_json2_sts_raw"
3117
+ }
3118
+ ]
3119
+ }
3120
+ }
3121
+ }
3122
+ }
3123
+ }
3124
+ }
3125
+ },
3126
+ "alerts": {
3127
+ "description": "An array of all the unique alerts running, grouped by alert name (`nm` is available here)\n",
3128
+ "type": "array",
3129
+ "items": {
3130
+ "$ref": "#/components/schemas/data_json2_alerts_count"
3131
+ }
3132
+ }
3133
+ }
3134
+ },
3135
+ "totals": {
3136
+ "type": "object",
3137
+ "properties": {
3138
+ "nodes": {
3139
+ "$ref": "#/components/schemas/data_json2_items_count"
3140
+ },
3141
+ "contexts": {
3142
+ "$ref": "#/components/schemas/data_json2_items_count"
3143
+ },
3144
+ "instances": {
3145
+ "$ref": "#/components/schemas/data_json2_items_count"
3146
+ },
3147
+ "dimensions": {
3148
+ "$ref": "#/components/schemas/data_json2_items_count"
3149
+ },
3150
+ "label_keys": {
3151
+ "$ref": "#/components/schemas/data_json2_items_count"
3152
+ },
3153
+ "label_key_values": {
3154
+ "$ref": "#/components/schemas/data_json2_items_count"
3155
+ }
3156
+ }
3157
+ },
3158
+ "functions": {
3159
+ "type": "array",
3160
+ "items": {
3161
+ "type": "string"
3162
+ }
3163
+ },
3164
+ "db": {
3165
+ "type": "object",
3166
+ "properties": {
3167
+ "tiers": {
3168
+ "description": "The number of tiers this server is using.\n",
3169
+ "type": "integer"
3170
+ },
3171
+ "update_every": {
3172
+ "description": "The minimum update every, in seconds, for all tiers and all metrics aggregated into this query.\n",
3173
+ "type": "integer"
3174
+ },
3175
+ "first_entry": {
3176
+ "description": "The minimum unix epoch timestamp of the retention across all tiers for all metrics aggregated into this query.\n",
3177
+ "type": "integer"
3178
+ },
3179
+ "last_entry": {
3180
+ "description": "The maximum unix epoch timestamp of the retention across all tier for all metrics aggregated into this query.\n",
3181
+ "type": "integer"
3182
+ },
3183
+ "per_tier": {
3184
+ "description": "An array with information for each of the tiers available, related to this query.\n",
3185
+ "type": "array",
3186
+ "items": {
3187
+ "type": "object",
3188
+ "properties": {
3189
+ "tier": {
3190
+ "description": "The tier number of this tier, starting at 0.\n",
3191
+ "type": "integer"
3192
+ },
3193
+ "queries": {
3194
+ "description": "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.\n",
3195
+ "type": "integer"
3196
+ },
3197
+ "points": {
3198
+ "description": "The number of points read from this tier.\n",
3199
+ "type": "integer"
3200
+ },
3201
+ "update_every": {
3202
+ "description": "The minimum resolution of all metrics queried on this tier.\n",
3203
+ "type": "integer"
3204
+ },
3205
+ "first_entry": {
3206
+ "description": "The minimum unix epoch timestamp available across all metrics that used this tier. This reflects the oldest timestamp of the tier's retention.\n",
3207
+ "type": "integer"
3208
+ },
3209
+ "last_entry": {
3210
+ "description": "The maximum unix epoch timestamp available across all metrics that used this tier. This reflects the newest timestamp of the tier's retention.\n"
3211
+ }
3212
+ }
3213
+ }
3214
+ }
3215
+ }
3216
+ },
3217
+ "view": {
3218
+ "type": "object",
3219
+ "properties": {
3220
+ "title": {
3221
+ "description": "The title the chart should have.\n",
3222
+ "type": "string"
3223
+ },
3224
+ "format": {
3225
+ "description": "The format the `result` top level member has.\n",
3226
+ "type": "string"
3227
+ },
3228
+ "options": {
3229
+ "description": "An array presenting all the options given to the query.\n",
3230
+ "type": "array",
3231
+ "items": {
3232
+ "type": "string"
3233
+ }
3234
+ },
3235
+ "time_group": {
3236
+ "description": "The same as the parameter `time_group`.\n",
3237
+ "type": "string"
3238
+ },
3239
+ "after": {
3240
+ "description": "The oldest unix epoch timestamp of the data returned in the `result`.\n",
3241
+ "type": "integer"
3242
+ },
3243
+ "before": {
3244
+ "description": "The newest unix epoch timestamp of the data returned in the `result`.\n",
3245
+ "type": "integer"
3246
+ },
3247
+ "partial_data_trimming": {
3248
+ "description": "Information related to trimming of the last few points of the `result`, that was required to remove (increasing) partial data.\nTrimming is disabled when the `raw` option is given to the query.\n",
3249
+ "type": "object",
3250
+ "properties": {
3251
+ "max_update_every": {
3252
+ "description": "The maximum `update_every` for all metrics aggregated into the query.\nTrimming is by default enabled at `view.before - max_update_every`, but only when `view.before >= now - max_update_every`.\n",
3253
+ "type": "integer"
3254
+ },
3255
+ "expected_after": {
3256
+ "description": "The timestamp at which trimming can be enabled.\nIf this timestamp is greater or equal to `view.before`, there is no trimming.\n",
3257
+ "type": "integer"
3258
+ },
3259
+ "trimmed_after": {
3260
+ "description": "The timestamp at which trimming has been applied.\nIf this timestamp is greater or equal to `view.before`, there is no trimming.\n",
3261
+ "type": "integer"
3262
+ }
3263
+ }
3264
+ },
3265
+ "points": {
3266
+ "description": "The number of points in `result`.\n",
3267
+ "type": "integer"
3268
+ },
3269
+ "units": {
3270
+ "description": "The units of the query.\n",
3271
+ "oneOf": [
3272
+ {
3273
+ "type": "string"
3274
+ },
3275
+ {
3276
+ "type": "array",
3277
+ "items": {
3278
+ "type": "string"
3279
+ }
3280
+ }
3281
+ ]
3282
+ },
3283
+ "chart_type": {
3284
+ "description": "The default chart type of the query.\n",
3285
+ "type": "string",
3286
+ "enum": [
3287
+ "line",
3288
+ "area",
3289
+ "stacked"
3290
+ ]
3291
+ },
3292
+ "dimensions": {
3293
+ "description": "Detailed information about the chart dimensions included in the `result`.\n",
3294
+ "type": "object",
3295
+ "properties": {
3296
+ "grouped_by": {
3297
+ "description": "An array with the order of the groupings performed.\n",
3298
+ "type": "array",
3299
+ "items": {
3300
+ "type": "string",
3301
+ "enum": [
3302
+ "selected",
3303
+ "dimension",
3304
+ "instance",
3305
+ "node",
3306
+ "context",
3307
+ "units",
3308
+ "label:key1",
3309
+ "label:key2",
3310
+ "label:keyN"
3311
+ ]
3312
+ }
3313
+ },
3314
+ "ids": {
3315
+ "description": "An array with the dimension ids that uniquely identify the dimensions for this query.\n",
3316
+ "type": "array",
3317
+ "items": {
3318
+ "type": "string"
3319
+ }
3320
+ },
3321
+ "names": {
3322
+ "description": "An array with the dimension names to be presented to users. Names may be overlapping, but IDs are not.\n",
3323
+ "type": "array",
3324
+ "items": {
3325
+ "type": "string"
3326
+ }
3327
+ },
3328
+ "units": {
3329
+ "description": "An array with the units each dimension has.\n",
3330
+ "type": "array",
3331
+ "items": {
3332
+ "type": "string"
3333
+ }
3334
+ },
3335
+ "priorities": {
3336
+ "description": "An array with the relative priorities of the dimensions.\nNumbers may not be sequential or unique. The application is expected to order by this and then by name.\n",
3337
+ "type": "array",
3338
+ "items": {
3339
+ "type": "integer"
3340
+ }
3341
+ },
3342
+ "aggregated": {
3343
+ "description": "An array with the number of source metrics aggregated into each dimension.\n",
3344
+ "type": "array",
3345
+ "items": {
3346
+ "type": "integer"
3347
+ }
3348
+ },
3349
+ "view_average_values": {
3350
+ "description": "An array of the average value of each dimension across the entire query.\n",
3351
+ "type": "array",
3352
+ "items": {
3353
+ "type": "number"
3354
+ }
3355
+ },
3356
+ "view_latest_values": {
3357
+ "description": "An array of the latest value of each dimension, included in this query.\n",
3358
+ "type": "array",
3359
+ "items": {
3360
+ "type": "number"
3361
+ }
3362
+ },
3363
+ "count": {
3364
+ "description": "The number of dimensions in the `result`.\n",
3365
+ "type": "integer"
3366
+ },
3367
+ "labels": {
3368
+ "description": "The labels associated with each dimension in the query.\nThis object is only available when the `group-by-labels` option is given to the query.\n",
3369
+ "type": "object",
3370
+ "properties": {
3371
+ "label_key1": {
3372
+ "description": "An array having one entry for each of the dimensions of the query.\n",
3373
+ "type": "array",
3374
+ "items": {
3375
+ "description": "An array having one entry for each of the values this label key has for the given dimension.\n",
3376
+ "type": "array",
3377
+ "items": {
3378
+ "type": "string"
3379
+ }
3380
+ }
3381
+ }
3382
+ }
3383
+ }
3384
+ }
3385
+ },
3386
+ "min": {
3387
+ "description": "The minimum value of all points included in the `result`.\n",
3388
+ "type": "number"
3389
+ },
3390
+ "max": {
3391
+ "description": "The maximum value of all points included in the `result`.\n",
3392
+ "type": "number"
3393
+ }
3394
+ }
3395
+ },
3396
+ "result": {
3397
+ "description": "The result of the query.\nThe format explained here is `json2`.\n",
3398
+ "type": "object",
3399
+ "properties": {
3400
+ "labels": {
3401
+ "description": "The IDs of the dimensions returned. The first is always `time`.\n",
3402
+ "type": "array",
3403
+ "items": {
3404
+ "type": "string"
3405
+ }
3406
+ },
3407
+ "point": {
3408
+ "description": "The format of each point returned.\n",
3409
+ "type": "object",
3410
+ "properties": {
3411
+ "value": {
3412
+ "description": "The index of the value in each point.\n",
3413
+ "type": "integer"
3414
+ },
3415
+ "ar": {
3416
+ "description": "The index of the anomaly rate in each point.\n",
3417
+ "type": "integer"
3418
+ },
3419
+ "pa": {
3420
+ "description": "The index of the point annotations in each point.\nThis is a bitmap. `EMPTY = 1`, `RESET = 2`, `PARTIAL = 4`.\n`EMPTY` means the point has no value.\n`RESET` means that at least one metric aggregated experienced an overflow (a counter that wrapped).\n`PARTIAL` means that this point should have more metrics aggregated into it, but not all metrics had data.\n",
3421
+ "type": "integer"
3422
+ },
3423
+ "count": {
3424
+ "description": "The number of metrics aggregated into this point. This exists only when the option `raw` is given to the query.\n",
3425
+ "type": "integer"
3426
+ }
3427
+ }
3428
+ },
3429
+ "data": {
3430
+ "type": "array",
3431
+ "items": {
3432
+ "allOf": [
3433
+ {
3434
+ "type": "integer"
3435
+ },
3436
+ {
3437
+ "type": "array"
3438
+ }
3439
+ ]
3440
+ }
3441
+ }
3442
+ }
3443
+ },
3444
+ "timings": {
3445
+ "type": "object"
3446
}
3447
}
3448
},
2273
- "context_summary": {
3449
+ "data_json2_sts": {
3450
+ "description": "Statistical values\n",
3451
"type": "object",
3452
"properties": {
2276
- "hostname": {
2277
- "type": "string",
2278
- "description": "The hostname of the netdata server."
2279
- },
2280
- "machine_guid": {
2281
- "type": "string",
2282
- "description": "The unique installation id of this netdata server."
2283
- },
2284
- "node_id": {
2285
- "type": "string",
2286
- "description": "The unique node id of this netdata server at the hub.",
2287
- "example": "nightly"
2288
- },
2289
- "claim_id": {
2290
- "type": "string",
2291
- "description": "The unique handshake id of this netdata server and the hub."
3453
+ "avg": {
3454
+ "description": "The average value of all metrics aggregated",
3455
+ "type": "number"
3456
},
2293
- "host_labels": {
2294
- "type": "object",
2295
- "description": "The host labels associated with this netdata server."
3457
+ "arp": {
3458
+ "description": "The average anomaly rate of all metrics aggregated",
3459
+ "type": "number"
3460
},
2297
- "context": {
2298
- "type": "object",
2299
- "description": "An object containing all the context objects available at the netdata server. This is used as an indexed array. The key of each context object is the id of the context.",
2300
- "additionalProperties": {
2301
- "$ref": "#/components/schemas/context"
2302
- }
3461
+ "con": {
3462
+ "description": "The contribution percentage of all the metrics aggregated",
3463
+ "type": "number"
3464
}
3465
}
3466
},
2306
- "context": {
3467
+ "data_json2_sts_raw": {
3468
+ "description": "Statistical values when `raw` option is given.\n",
3469
"type": "object",
3470
"properties": {
2309
- "version": {
2310
- "type": "string",
2311
- "description": "The version of this context. The number are not sequential, but bigger numbers depict a newer object."
2312
- },
2313
- "hub_version": {
2314
- "type": "string",
2315
- "description": "The version of this context, as known by hub."
2316
- },
2317
- "family": {
2318
- "type": "string",
2319
- "description": "The family of the context. When multiple charts of a context have different families, the netdata server replaces the different parts with [x], so that the context can have only one family."
2320
- },
2321
- "title": {
2322
- "type": "string",
2323
- "description": "The title of the context. When multiple charts of a context have different titles, the netdata server replaces the different parts with [x], so that the context can have only one title."
2324
- },
2325
- "priority": {
2326
- "type": "number",
2327
- "description": "The relative priority of the context. When multiple contexts have different priorities, the minimum among them is selected as the priority of the context."
2328
- },
2329
- "units": {
2330
- "type": "string",
2331
- "description": "The unit of measurement for the values of all dimensions of the context. If multiple charts of context have different units, the latest collected is selected."
2332
- },
2333
- "chart_type": {
2334
- "type": "string",
2335
- "description": "The chart type.",
2336
- "enum": [
2337
- "line",
2338
- "area",
2339
- "stacked"
2340
- ]
3471
+ "sum": {
3472
+ "description": "The sum value of all metrics aggregated",
3473
+ "type": "number"
3474
},
2342
- "first_time_t": {
2343
- "type": "number",
2344
- "description": "The UNIX timestamp of the first entry (the oldest) in the database."
3475
+ "ars": {
3476
+ "description": "The sum anomaly rate of all metrics aggregated",
3477
+ "type": "number"
3478
},
2346
- "last_time_t": {
2347
- "type": "number",
2348
- "description": "The UNIX timestamp of the latest entry in the database."
3479
+ "vol": {
3480
+ "description": "The volume of all the metrics aggregated",
3481
+ "type": "number"
3482
},
2350
- "charts": {
2351
- "type": "object",
2352
- "description": "An object containing all the charts available for the chart. This is used as an indexed array. For each pair in the dictionary, the key is the id of the chart and the value provides all details about the chart."
3483
+ "cnt": {
3484
+ "description": "The count of all metrics aggregated",
3485
+ "type": "integer"
3486
}
3487
}
3488
},
2356
- "alarm_variables": {
3489
+ "data_json2_items_count": {
3490
+ "description": "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.\n",
3491
"type": "object",
3492
"properties": {
2359
- "chart": {
2360
- "type": "string",
2361
- "description": "The unique id of the chart."
2362
- },
2363
- "chart_name": {
2364
- "type": "string",
2365
- "description": "The name of the chart."
2366
- },
2367
- "cnart_context": {
2368
- "type": "string",
2369
- "description": "The context of the chart. It is shared across multiple monitored software or hardware instances and used in alarm templates."
2370
- },
2371
- "family": {
2372
- "type": "string",
2373
- "description": "The family of the chart."
2374
- },
2375
- "host": {
2376
- "type": "string",
2377
- "description": "The host containing the chart."
2378
- },
2379
- "chart_variables": {
2380
- "type": "object",
2381
- "additionalProperties": {
2382
- "$ref": "#/components/schemas/chart_variables"
2383
- }
3493
+ "sl": {
3494
+ "description": "The number of items `selected` to query. If absent it is zero.",
3495
+ "type": "integer"
3496
},
2385
- "family_variables": {
2386
- "type": "object",
2387
- "properties": {
2388
- "varname1": {
2389
- "type": "number",
2390
- "format": "float"
2391
- },
2392
- "varname2": {
2393
- "type": "number",
2394
- "format": "float"
2395
- }
2396
- }
3497
+ "ex": {
3498
+ "description": "The number of items `excluded` from querying. If absent it is zero.",
3499
+ "type": "integer"
3500
},
2398
- "host_variables": {
2399
- "type": "object",
2400
- "properties": {
2401
- "varname1": {
2402
- "type": "number",
2403
- "format": "float"
2404
- },
2405
- "varname2": {
2406
- "type": "number",
2407
- "format": "float"
2408
- }
2409
- }
2410
- }
2411
- }
2412
- },
2413
- "chart_variables": {
2414
- "type": "object",
2415
- "properties": {
2416
- "varname1": {
2417
- "type": "number",
2418
- "format": "float"
3501
+ "qr": {
3502
+ "description": "The number of items (out of `selected`) the query successfully `queried`. If absent it is zero.",
3503
+ "type": "integer"
3504
},
2420
- "varname2": {
2421
- "type": "number",
2422
- "format": "float"
3505
+ "fl": {
3506
+ "description": "The number of items (from `selected`) that `failed` to be queried. If absent it is zero.",
3507
+ "type": "integer"
3508
}
3509
}
3510
},
2426
- "data": {
3511
+ "data_json2_alerts_count": {
3512
+ "description": "Counters about alert statuses. If this object is missing, it is assumed that all its members are zero.\n",
3513
"type": "object",
2428
- "discriminator": {
2429
- "propertyName": "format"
2430
- },
2431
- "description": "Response will contain the appropriate subtype, e.g. data_json depending on the requested format.",
3514
"properties": {
2433
- "api": {
2434
- "type": "number",
2435
- "description": "The API version this conforms to, currently 1."
2436
- },
2437
- "id": {
2438
- "type": "string",
2439
- "description": "The unique id of the chart."
2440
- },
2441
- "name": {
2442
- "type": "string",
2443
- "description": "The name of the chart."
2444
- },
2445
- "update_every": {
2446
- "type": "number",
2447
- "description": "The update frequency of this chart, in seconds. One value every this amount of time is kept in the round robin database (independently of the current view)."
2448
- },
2449
- "view_update_every": {
2450
- "type": "number",
2451
- "description": "The current view appropriate update frequency of this chart, in seconds. There is no point to request chart refreshes, using the same settings, more frequently than this."
2452
- },
2453
- "first_entry": {
2454
- "type": "number",
2455
- "description": "The UNIX timestamp of the first entry (the oldest) in the round robin database (independently of the current view)."
2456
- },
2457
- "last_entry": {
2458
- "type": "number",
2459
- "description": "The UNIX timestamp of the latest entry in the round robin database (independently of the current view)."
2460
- },
2461
- "after": {
2462
- "type": "number",
2463
- "description": "The UNIX timestamp of the first entry (the oldest) returned in this response."
2464
- },
2465
- "before": {
2466
- "type": "number",
2467
- "description": "The UNIX timestamp of the latest entry returned in this response."
2468
- },
2469
- "min": {
2470
- "type": "number",
2471
- "description": "The minimum value returned in the current view. This can be used to size the y-series of the chart."
2472
- },
2473
- "max": {
2474
- "type": "number",
2475
- "description": "The maximum value returned in the current view. This can be used to size the y-series of the chart."
2476
- },
2477
- "dimension_names": {
2478
- "description": "The dimension names of the chart as returned in the current view.",
2479
- "type": "array",
2480
- "items": {
2481
- "type": "string"
2482
- }
2483
- },
2484
- "dimension_ids": {
2485
- "description": "The dimension IDs of the chart as returned in the current view.",
2486
- "type": "array",
2487
- "items": {
2488
- "type": "string"
2489
- }
2490
- },
2491
- "latest_values": {
2492
- "description": "The latest values collected for the chart (independently of the current view).",
2493
- "type": "array",
2494
- "items": {
2495
- "type": "string"
2496
- }
2497
- },
2498
- "view_latest_values": {
2499
- "description": "The latest values returned with this response.",
2500
- "type": "array",
2501
- "items": {
2502
- "type": "string"
2503
- }
3515
+ "nm": {
3516
+ "description": "The name of the alert. Can be absent when the counters refer to more than one alert instances.",
3517
+ "type": "string"
3518
},
2505
- "dimensions": {
2506
- "type": "number",
2507
- "description": "The number of dimensions returned."
3519
+ "cl": {
3520
+ "description": "The number of CLEAR alerts. If absent, it is zero.",
3521
+ "type": "integer"
3522
},
2509
- "points": {
2510
- "type": "number",
2511
- "description": "The number of rows / points returned."
3523
+ "wr": {
3524
+ "description": "The number of WARNING alerts. If absent, it is zero.",
3525
+ "type": "integer"
3526
},
2513
- "format": {
2514
- "type": "string",
2515
- "description": "The format of the result returned."
3527
+ "cr": {
3528
+ "description": "The number of CRITICAL alerts. If absent, it is zero.",
3529
+ "type": "integer"
3530
},
2517
- "chart_variables": {
2518
- "type": "object",
2519
- "additionalProperties": {
2520
- "$ref": "#/components/schemas/chart_variables"
2521
- }
3531
+ "ot": {
3532
+ "description": "The number of alerts that are not CLEAR, WARNING, CRITICAL (so, they are \"other\"). If absent, it is zero.\n",
3533
+ "type": "integer"
3534
}
3535
}
3536
},
3553
}
3554
},
3555
"data": {
2544
- "description": "The data requested, one element per sample with each element containing the values of the dimensions described in the labels value.",
3556
+ "description": "The data requested, one element per sample with each element containing the values of the dimensions described in the labels value.\n",
3557
"type": "array",
3558
"items": {
3559
"type": "number"