stats.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "get": {
  3. "tags": ["Organizations"],
  4. "deprecated": true,
  5. "description": "This endpoint is deprecated in favor of [Organization Stats V2](/api/organizations/retrieve-event-counts-for-an-organization-v2/).",
  6. "operationId": "Retrieve Event Counts for an Organization",
  7. "parameters": [
  8. {
  9. "name": "organization_slug",
  10. "in": "path",
  11. "description": "The slug of the organization the event ID should be looked up in.",
  12. "required": true,
  13. "schema": {
  14. "type": "string"
  15. }
  16. },
  17. {
  18. "name": "stat",
  19. "in": "query",
  20. "description": "The name of the stat to query `(\"received\", \"rejected\", \"blacklisted\")`.",
  21. "schema": {
  22. "type": "string",
  23. "enum": ["received", "rejected", "blacklisted"]
  24. }
  25. },
  26. {
  27. "name": "since",
  28. "in": "query",
  29. "description": "A timestamp to set the start of the query in seconds since UNIX epoch.",
  30. "schema": {
  31. "type": "string",
  32. "format": "date-time"
  33. }
  34. },
  35. {
  36. "name": "until",
  37. "in": "query",
  38. "description": "A timestamp to set the end of the query in seconds since UNIX epoch.",
  39. "schema": {
  40. "type": "string",
  41. "format": "date-time"
  42. }
  43. },
  44. {
  45. "name": "resolution",
  46. "in": "query",
  47. "description": "An explicit resolution to search for (one of `10s`, `1h`, and `1d`).",
  48. "schema": {
  49. "type": "string",
  50. "enum": ["10s", "1h", "1d"]
  51. }
  52. }
  53. ],
  54. "responses": {
  55. "200": {
  56. "description": "Success",
  57. "content": {
  58. "application/json": {
  59. "schema": {
  60. "type": "array",
  61. "items": {
  62. "type": "array",
  63. "items": {
  64. "type": "integer"
  65. }
  66. }
  67. },
  68. "example": [
  69. [1541455200.0, 8264],
  70. [1541458800.0, 6564],
  71. [1541462400.0, 8652],
  72. [1541466000.0, 7436],
  73. [1541469600.0, 8127],
  74. [1541473200.0, 7643],
  75. [1541476800.0, 6518],
  76. [1541480400.0, 6752],
  77. [1541484000.0, 6559],
  78. [1541487600.0, 7039],
  79. [1541491200.0, 7384],
  80. [1541494800.0, 6265],
  81. [1541498400.0, 8390],
  82. [1541502000.0, 6393],
  83. [1541505600.0, 7298],
  84. [1541509200.0, 7422],
  85. [1541512800.0, 5603],
  86. [1541516400.0, 6846],
  87. [1541520000.0, 8886],
  88. [1541523600.0, 6544],
  89. [1541527200.0, 8812],
  90. [1541530800.0, 8172],
  91. [1541534400.0, 5733],
  92. [1541538000.0, 9435]
  93. ]
  94. }
  95. }
  96. },
  97. "403": {
  98. "description": "Forbidden"
  99. },
  100. "401": {
  101. "description": "Unauthorized"
  102. },
  103. "404": {
  104. "description": "Not Found"
  105. }
  106. },
  107. "security": [
  108. {
  109. "auth_token": ["org: read"]
  110. }
  111. ]
  112. }
  113. }