You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2022/10/13 08:14:16 UTC

[GitHub] [james-project] quantranhong1999 commented on a diff in pull request #1241: Quotas documentation

quantranhong1999 commented on code in PR #1241:
URL: https://github.com/apache/james-project/pull/1241#discussion_r994308247


##########
server/protocols/jmap-rfc-8621/doc/specs/spec/quotas/quota.mdown:
##########
@@ -0,0 +1,157 @@
+# Quota
+
+The quota is an object that displays the limit set to an account usage as well as the current usage in regard to that limit.
+
+The quota object MUST contain the following fields:
+
+* **id**: `Id` The unique identifier for this object. It should respect the JMAP ID datatype defined in section 1.2 of [@!RFC8620]
+
+* **resourceType**: `ResourceType` The resource type of the quota.
+
+* **used**: `UnsignedInt` The current usage of the defined quota. Computation of this value is handled by the server.
+
+* **limit**: `UnsignedInt` The hard limit set by this quota. Objects in scope may not be created or updated if we reach this limit. It should be higher than the `warnLimit` and the `softLimit`.
+
+* **scope**: `Scope` The `Scope` of this quota.
+
+* **name**: `String` The name of the quota object. Useful for managing quotas and use queries for searching.
+
+* **datatypes**: `String[]` A list of all the data types values that are applying to this quota. This allows to assign
+quotas to separated or shared data types. This MAY include data types the client does not recognise. Clients MUST
+ignore any unknown data type in the list.
+
+The quota object MAY contain the following field:
+
+* **warnLimit**: `UnsignedInt|null` The warn limit set by this quota object. It can be used to send a warning to an

Review Comment:
   No, I think that is rather an implementation detail of a server than a spec detail



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org