# Functions
CheckValidityForReuseStatistic checks whether the read-only stat-metric with given attributes (i.e.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RegistryBlockType adds block type and corresponding description in order.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
global variable.
default 10s (total length).
global variable.
global variable.
default 10*1000/500 = 20.
global variable.
Inbound represents the inbound traffic (e.g.
sentinel rules check block.
There are five events to record pass + block == Total.
Biz error, used for circuit breaker.
sentinel rules check pass.
request execute rt, unit is millisecond.
hack for the number of event.
Outbound represents the outbound traffic (e.g.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
global variable.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
BlockError indicates the request was blocked by Sentinel.
No description provided by the author
No description provided by the author
MetricItem represents the data of metric log per line.
ResourceWrapper represents the invocation.
No description provided by the author
The input data of sentinel.
SlotChain hold all system slots and customized slot.
No description provided by the author
# Interfaces
No description provided by the author
ConcurrencyStat provides read/update operation for concurrency statistics.
No description provided by the author
No description provided by the author
RuleCheckSlot is rule based checking strategy All checking rule must implement this interface.
No description provided by the author
StatNode holds real-time statistics for resources.
StatPrepareSlot is responsible for some preparation before statistic For example: init structure and so on.
StatSlot is responsible for counting all custom biz metrics.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResourceType represents classification of the resources.
No description provided by the author
No description provided by the author
TrafficType describes the traffic type: Inbound or Outbound.