Documentation ¶
Index ¶
- Variables
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetCallUrl() string
- func (x *Notification) GetPercent() uint32
- func (x *Notification) GetRepeat() bool
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Unit_name = map[int32]string{ 0: "UNIT_UNIMPLEMENTED", 1: "UNIT_REQUESTS_ALL_AUTHENTICATED", 2: "UNIT_ACTIONS_ALL_RUN_SECONDS", } Unit_value = map[string]int32{ "UNIT_UNIMPLEMENTED": 0, "UNIT_REQUESTS_ALL_AUTHENTICATED": 1, "UNIT_ACTIONS_ALL_RUN_SECONDS": 2, } )
Enum value maps for Unit.
View Source
var File_zitadel_quota_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { // The percentage relative to the quotas amount on which the call_url should be called. Percent uint32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // If true, the call_url is called each time a factor of percentage is reached. Repeat bool `protobuf:"varint,2,opt,name=repeat,proto3" json:"repeat,omitempty"` // The URL, which is called with HTTP method POST and a JSON payload with the properties "unit", "id" (notification id), "callURL", "periodStart", "threshold" and "usage". CallUrl string `protobuf:"bytes,3,opt,name=call_url,json=callUrl,proto3" json:"call_url,omitempty"` // contains filtered or unexported fields }
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetCallUrl ¶
func (x *Notification) GetCallUrl() string
func (*Notification) GetPercent ¶
func (x *Notification) GetPercent() uint32
func (*Notification) GetRepeat ¶
func (x *Notification) GetRepeat() bool
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type Unit ¶
type Unit int32
const ( Unit_UNIT_UNIMPLEMENTED Unit = 0 // The sum of all requests to the ZITADEL API with an authorization header, // excluding the following exceptions // - Calls to the System API // - Calls that cause internal server errors // - Failed authorizations // - Requests after the quota already exceeded Unit_UNIT_REQUESTS_ALL_AUTHENTICATED Unit = 1 // The sum of all actions run durations in seconds Unit_UNIT_ACTIONS_ALL_RUN_SECONDS Unit = 2 )
func (Unit) Descriptor ¶
func (Unit) Descriptor() protoreflect.EnumDescriptor
func (Unit) EnumDescriptor
deprecated
func (Unit) Number ¶
func (x Unit) Number() protoreflect.EnumNumber
func (Unit) Type ¶
func (Unit) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.