Skip to content

Instantly share code, notes, and snippets.

@Thakurvaibhav
Created November 26, 2019 07:29
Show Gist options
  • Save Thakurvaibhav/101205f149a358816179bd3cc3869661 to your computer and use it in GitHub Desktop.
Save Thakurvaibhav/101205f149a358816179bd3cc3869661 to your computer and use it in GitHub Desktop.
domain: apis
descriptors:
- key: generic_key
value: global
rate_limit:
unit: second
requests_per_unit: 60
- key: generic_key
value: local
rate_limit:
unit: second
requests_per_unit: 50
- key: header_match
value: "123"
rate_limit:
unit: second
requests_per_unit: 40
- key: header_match
value: "456"
rate_limit:
unit: second
requests_per_unit: 30
- key: header_match
value: post
rate_limit:
unit: second
requests_per_unit: 20
- key: header_match
value: get
rate_limit:
unit: second
requests_per_unit: 10
- key: header_match
value: path
rate_limit:
unit: second
requests_per_unit: 5
#Using nested descriptors
- key: custom_header
descriptors:
- key: plan
value: BASIC
rate_limit:
requests_per_unit: 2
unit: second
- key: plan
value: PLUS
rate_limit:
requests_per_unit: 3
unit: second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment