-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adds UsageRecord in subscription
- Loading branch information
Showing
7 changed files
with
161 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"type": "object", | ||
"title": "SubscriptionMeteredItem", | ||
"description": "Critères de sélection des appels enregistrés.", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Nom de l'item" | ||
}, | ||
"ref": { | ||
"type": "string", | ||
"description": "Référence de l'item." | ||
}, | ||
"paths": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "./SubscriptionMeteredPath.v1.json" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"ref", | ||
"paths" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "object", | ||
"title": "SubscriptionMeteredPath", | ||
"description": "Chemin HTTP.", | ||
"properties": { | ||
"method": { | ||
"$ref": "./SubscriptionRequestLogMethod.v1.json" | ||
}, | ||
"path": { | ||
"type": "string", | ||
"description": "Chemin de la resource." | ||
} | ||
}, | ||
"required": [ | ||
"method", | ||
"path" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "SubscriptionRequestLogMethod", | ||
"type": "string", | ||
"description": "Méthode HTTP utilisée.", | ||
"enum": [ | ||
"POST", | ||
"PUT", | ||
"DELETE" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"title": "SubscriptionUsageRecord", | ||
"description": "Enregistrement de l'utilisation d'une soucription.", | ||
"type": "object", | ||
"properties": { | ||
"timestamp": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "Date d'enregistrement." | ||
}, | ||
"ref": { | ||
"type": "string", | ||
"description": "Référence de l'item." | ||
}, | ||
"count": { | ||
"type": "number", | ||
"description": "Nombre d'appels enregistrés." | ||
} | ||
}, | ||
"required": [ | ||
"timestamp", | ||
"ref", | ||
"count" | ||
] | ||
} |
Oops, something went wrong.