feat: add quotas (#4779)

adds possibilities to cap authenticated requests and execution seconds of actions on a defined intervall
This commit is contained in:
Elio Bischof
2023-02-15 02:52:11 +01:00
committed by GitHub
parent 45f6a4436e
commit 681541f41b
117 changed files with 4652 additions and 510 deletions

View File

@@ -437,6 +437,28 @@ Errors:
CloseRows: SQL Statement could not be finished
SQLStatement: SQL Statement could not be created
InvalidRequest: Request is invalid
Quota:
AlreadyExists: Quota already exists for this unit
NotFound: Quota not found for this unit
Invalid:
CallURL: Quota call URL is invalid
Percent: Quota percent is lower than 1
Unimplemented: Quotas are not implemented for this unit
Amount: Quota amount is lower than 1
ResetInterval: Quota reset interval is shorter than a minute
Noop: An unlimited quota without notifications has no effect
Access:
Exhausted: The quota for authenticated requests is exhausted
Execution:
Exhausted: The quota for execution seconds is exhausted
LogStore:
Access:
StorageFailed: Storing access log to database failed
ScanFailed: Querying usage for authenticated requests failed
Execution:
StorageFailed: Storing action execution log to database failed
ScanFailed: Querying usage for action execution seconds failed
AggregateTypes:
action: Action
@@ -446,6 +468,7 @@ AggregateTypes:
project: Project
user: User
usergrant: User grant
quota: Quota
EventTypes:
user: