Struct primitives::config::Limits
source · pub struct Limits {
pub units_for_slot: UnitsForSlot,
pub campaigns_find: u32,
pub spendable_find: u32,
pub channels_find: u32,
pub analytics_find: u32,
pub msgs_find: u32,
pub ip_rate_limit: RateLimit,
}
Fields
units_for_slot: UnitsForSlot
campaigns_find: u32
The maximum number of Campaign
s per page
returned by Sentry’s GET /v5/campaign/list
route.
Also see: CampaignListResponse
spendable_find: u32
The maximum number of Spender
s per page
returned by Sentry’s GET /v5/channel/0xXXX.../spender/all
route.
Also see: AllSpendersResponse
channels_find: u32
The maximum number of Channel
s per page
returned by Sentry’s GET /v5/channel/list
route.
Also see: ChannelListResponse
analytics_find: u32
The maximum allowed limit of FetchedAnalytics
s per page
returned by Sentry’s GET /v5/analytics
routes:
- GET
/v5/analytics
- GET
/v5/analytics/for-publisher
- GET
/v5/analytics/for-advertiser
- GET
/v5/analytics/for-admin
Request query also has a limit
parameter, which can be used to return
<= limits.analytics_find
messages in the request.
Also see: AnalyticsQuery
msgs_find: u32
The maximum allowed limit of ValidatorMessage
s per page
returned by Sentry’s GET /v5/channel/0xXXX.../validator-messages
route.
Request query also has a limit
parameter, which can be used to return
<= limits.msgs_find
messages in the request.
Also see: ValidatorMessagesListResponse
,
ValidatorMessagesListQuery
ip_rate_limit: RateLimit
The default IP rate limit that will be imposed if
Campaign.event_submission
is None
.