stats.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "get": {
  3. "tags": ["Teams"],
  4. "summary": "Caution: this endpoint may change in the future without notice.",
  5. "description": "Return a set of points representing a normalized timestamp and the number of events seen in the period.\n\nQuery ranges are limited to Sentry’s configured time-series resolutions.",
  6. "operationId": "Retrieve Event Counts for a Team",
  7. "parameters": [
  8. {
  9. "name": "organization_slug",
  10. "in": "path",
  11. "description": "The slug of the organization the team belongs to.",
  12. "required": true,
  13. "schema": {
  14. "type": "string"
  15. }
  16. },
  17. {
  18. "name": "team_id_or_slug",
  19. "in": "path",
  20. "description": "The id or slug of the team to get.",
  21. "required": true,
  22. "schema": {
  23. "type": "string"
  24. }
  25. },
  26. {
  27. "name": "stat",
  28. "in": "query",
  29. "description": "The name of the stat to query `(\"received\", \"rejected\")`.",
  30. "schema": {
  31. "type": "string",
  32. "enum": ["received", "rejected"]
  33. }
  34. },
  35. {
  36. "name": "since",
  37. "in": "query",
  38. "description": "A timestamp to set the start of the query in seconds since UNIX epoch.",
  39. "schema": {
  40. "type": "string",
  41. "format": "date-time"
  42. }
  43. },
  44. {
  45. "name": "until",
  46. "in": "query",
  47. "description": "A timestamp to set the end of the query in seconds since UNIX epoch.",
  48. "schema": {
  49. "type": "string",
  50. "format": "date-time"
  51. }
  52. },
  53. {
  54. "name": "resolution",
  55. "in": "query",
  56. "description": "An explicit resolution to search for (one of `10s`, `1h`, and `1d`).",
  57. "schema": {
  58. "type": "string",
  59. "enum": ["10s", "1h", "1d"]
  60. }
  61. }
  62. ],
  63. "responses": {
  64. "200": {
  65. "description": "Success",
  66. "content": {
  67. "application/json": {
  68. "schema": {
  69. "type": "array",
  70. "items": {
  71. "type": "array",
  72. "items": {
  73. "type": "integer"
  74. }
  75. }
  76. },
  77. "example": [
  78. [1541455200, 3302],
  79. [1541458800, 3832],
  80. [1541462400, 3669],
  81. [1541466000, 3533],
  82. [1541469600, 3499],
  83. [1541473200, 3201],
  84. [1541476800, 3769],
  85. [1541480400, 2706],
  86. [1541484000, 2698],
  87. [1541487600, 3747],
  88. [1541491200, 3261],
  89. [1541494800, 2860],
  90. [1541498400, 4350],
  91. [1541502000, 2924],
  92. [1541505600, 3389],
  93. [1541509200, 2931],
  94. [1541512800, 3132],
  95. [1541516400, 3213],
  96. [1541520000, 3650],
  97. [1541523600, 3096],
  98. [1541527200, 3845],
  99. [1541530800, 3545],
  100. [1541534400, 2880],
  101. [1541538000, 4057]
  102. ]
  103. }
  104. }
  105. },
  106. "403": {
  107. "description": "Forbidden"
  108. },
  109. "404": {
  110. "description": "Team not found"
  111. }
  112. },
  113. "security": [
  114. {
  115. "auth_token": ["team:read"]
  116. }
  117. ]
  118. }
  119. }