syntax = "proto3";

package NSrvKernel.NRpsLimiter;

message TQuotaStorageState {
    // Ugly for the sake of backward compatibility

    message TSimpleState {
        double Rate = 2;
    }

    message TQuotaStateProto {
        string Name = 1;
        int64 IntervalMicrosec = 2;
        TSimpleState State = 4;
        optional bool IsByQuota = 5;
    }

    string HostId = 1;
    int64 TstampMicrosec = 2;

    repeated TQuotaStateProto QuotaStates = 4;
}
