File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2121from sentry .apidocs .utils import inline_sentry_response_serializer
2222from sentry .models .environment import Environment
2323from sentry .tagstore .types import TagKeySerializer , TagKeySerializerResponse
24+ from sentry .types .ratelimit import RateLimit , RateLimitCategory
2425
2526
2627@extend_schema (tags = ["Events" ])
@@ -30,6 +31,15 @@ class GroupTagKeyDetailsEndpoint(GroupEndpoint):
3031 "GET" : ApiPublishStatus .PUBLIC ,
3132 }
3233 owner = ApiOwner .ISSUES
34+ enforce_rate_limit = True
35+
36+ rate_limits = {
37+ "GET" : {
38+ RateLimitCategory .IP : RateLimit (limit = 10 , window = 1 ),
39+ RateLimitCategory .USER : RateLimit (limit = 10 , window = 1 ),
40+ RateLimitCategory .ORGANIZATION : RateLimit (limit = 40 , window = 1 ),
41+ }
42+ }
3343
3444 @extend_schema (
3545 operation_id = "Retrieve Tag Details" ,
You can’t perform that action at this time.
0 commit comments