cloud_notification.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "Netdata notification mechanism metadata.",
  4. "oneOf": [
  5. {
  6. "$ref": "#/$defs/entry"
  7. },
  8. {
  9. "type": "array",
  10. "minLength": 1,
  11. "items": {
  12. "$ref": "#/$defs/entry"
  13. }
  14. }
  15. ],
  16. "$defs": {
  17. "entry": {
  18. "type": "object",
  19. "description": "Data for a single notification method.",
  20. "properties": {
  21. "id": {
  22. "$ref": "./shared.json#/$defs/id"
  23. },
  24. "meta": {
  25. "$ref": "./shared.json#/$defs/instance"
  26. },
  27. "keywords": {
  28. "$ref": "./shared.json#/$defs/keywords"
  29. },
  30. "global_setup": {
  31. "type": "object",
  32. "description": "Flags that show which global setup sections are relevant for this notification method.",
  33. "properties": {
  34. "severity_filtering": {
  35. "type": "boolean"
  36. },
  37. "http_proxy": {
  38. "type": "boolean"
  39. }
  40. },
  41. "required": [
  42. "severity_filtering",
  43. "http_proxy"
  44. ]
  45. },
  46. "setup": {
  47. "oneOf": [
  48. {
  49. "$ref": "./shared.json#/$defs/short_setup"
  50. },
  51. {
  52. "$ref": "./shared.json#/$defs/full_setup"
  53. }
  54. ]
  55. },
  56. "troubleshooting": {
  57. "$ref": "./shared.json#/$defs/troubleshooting"
  58. }
  59. },
  60. "required": [
  61. "id",
  62. "meta",
  63. "keywords",
  64. "setup"
  65. ]
  66. }
  67. }
  68. }