Sites

Menu

WorkerRateLimit Class

Namespace: Improbable.SpatialOS.Deployment.V1Beta1

Inheritance

pb::IMessage<WorkerRateLimit>


Const Fields

WorkerTypeFieldNumber
const int WorkerTypeFieldNumber = 1

Field number for the "worker_type" field.
DurationFieldNumber
const int DurationFieldNumber = 2

Field number for the "duration" field.
RequestsInDurationFieldNumber
const int RequestsInDurationFieldNumber = 3

Field number for the "requests_in_duration" field.


Static Properties

Parser
pb::MessageParser<WorkerRateLimit> Parser { get; }

Descriptor
pbr::MessageDescriptor Descriptor { get; }


Properties

WorkerType
string WorkerType { get; set; }

The type of worker that this rate limit applies to.
Duration
global::Google.Protobuf.WellKnownTypes.Duration Duration { get; set; }

Mutable.

Notes:
  • The duration window to apply the rate limit in.
RequestsInDuration
uint RequestsInDuration { get; set; }

Mutable.

Notes:
  • The maximum number of requests allowed during the specified duration window.


Constructors

WorkerRateLimit
WorkerRateLimit()

WorkerRateLimit
WorkerRateLimit(WorkerRateLimit other)

Parameters


Methods

Clone
WorkerRateLimit Clone()

Equals
bool Equals(WorkerRateLimit other)

Parameters
WriteTo
void WriteTo(pb::CodedOutputStream output)

Parameters
  • pb::CodedOutputStream output :
CalculateSize
int CalculateSize()

MergeFrom
void MergeFrom(WorkerRateLimit other)

Parameters
MergeFrom
void MergeFrom(pb::CodedInputStream input)

Parameters
  • pb::CodedInputStream input :


Overrides

Equals
override bool Equals(object other)

Parameters
  • object other :
GetHashCode
override int GetHashCode()

ToString
override string ToString()

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums