1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

editing the response models

This commit is contained in:
shimon 2023-11-09 12:54:33 +02:00
parent d54615d376
commit 91fed7a255
9 changed files with 71 additions and 71 deletions

View file

@ -12,32 +12,32 @@ class UsageBuckets extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('filesTotal', [ ->addRule('filesTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of bucket files.', 'description' => 'Total aggregated number of bucket files.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('filesStorageTotal', [ ->addRule('filesStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of bucket files storage.', 'description' => 'Total aggregated number of bucket files storage (in bytes).',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('files', [ ->addRule('files', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of bucket files per period.', 'description' => 'Aggregated number of bucket files per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('storage', [ ->addRule('storage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of bucket storage files per period.', 'description' => 'Aggregated number of bucket storage files (in bytes) per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,19 +12,19 @@ class UsageCollection extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('documentsTotal', [ ->addRule('documentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of documents.', 'description' => 'Total aggregated number of of documents.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('documents', [ ->addRule('documents', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of documents per period.', 'description' => 'Aggregated number of documents per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,32 +12,32 @@ class UsageDatabase extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('collectionsTotal', [ ->addRule('collectionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of collections.', 'description' => 'Total aggregated number of collections.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('documentsTotal', [ ->addRule('documentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of documents.', 'description' => 'Total aggregated number of documents.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('collections', [ ->addRule('collections', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics collections per period.', 'description' => 'Aggregated number of collections per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('documents', [ ->addRule('documents', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of documents per period.', 'description' => 'Aggregated number of documents per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,45 +12,45 @@ class UsageDatabases extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('databasesTotal', [ ->addRule('databasesTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of documents.', 'description' => 'Total aggregated number of databases.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('collectionsTotal', [ ->addRule('collectionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of collections.', 'description' => 'Total aggregated number of collections.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('documentsTotal', [ ->addRule('documentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of documents.', 'description' => 'Total aggregated number of documents.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('databases', [ ->addRule('databases', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated total statistics of documents per period.', 'description' => 'Aggregated number of databases per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('collections', [ ->addRule('collections', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated total statistics of collections per period.', 'description' => 'Aggregated number of collections per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('documents', [ ->addRule('documents', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated total statistics of documents per period.', 'description' => 'Aggregated number of documents per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -18,84 +18,84 @@ class UsageFunction extends Model
]) ])
->addRule('deploymentsTotal', [ ->addRule('deploymentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function deployments.', 'description' => 'Total aggregated number of function deployments.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('deploymentsStorageTotal', [ ->addRule('deploymentsStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function deployments storage.', 'description' => 'Total aggregated sum of function deployments storage.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsTotal', [ ->addRule('buildsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function builds.', 'description' => 'Total aggregated number of function builds.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsStorageTotal', [ ->addRule('buildsStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregate total statistics of builds storage.', 'description' => 'total aggregated sum of function builds storage.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsTimeTotal', [ ->addRule('buildsTimeTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregate total statistics of build compute time.', 'description' => 'Total aggregated sum of function builds compute time.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('executionsTotal', [ ->addRule('executionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of executions.', 'description' => 'Total aggregated number of function executions.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('executionsTimeTotal', [ ->addRule('executionsTimeTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics if execution compute time.', 'description' => 'Total aggregated sum of function executions compute time.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('deployments', [ ->addRule('deployments', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of deployments per time period.', 'description' => 'Aggregated number of function deployments per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('deploymentsStorage', [ ->addRule('deploymentsStorage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of deployment storage per time period.', 'description' => 'Aggregated number of function deployments storage per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('builds', [ ->addRule('builds', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of builds per time period.', 'description' => 'Aggregated number of function builds per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('buildsStorage', [ ->addRule('buildsStorage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of build storage per time period.', 'description' => 'Aggregated sum of function builds storage per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('buildsTime', [ ->addRule('buildsTime', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of build compute per time period.', 'description' => 'Aggregated sum of function builds compute time per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('executions', [ ->addRule('executions', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of executions per time period.', 'description' => 'Aggregated number of function executions per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
@ -103,7 +103,7 @@ class UsageFunction extends Model
->addRule('executionsTime', [ ->addRule('executionsTime', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of executions compute per time period.', 'description' => 'Aggregated number of function executions compute time per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,103 +12,103 @@ class UsageFunctions extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('functionsTotal', [ ->addRule('functionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of functions.', 'description' => 'Total aggregated number of functions.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('deploymentsTotal', [ ->addRule('deploymentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function deployments.', 'description' => 'Total aggregated number of functions deployments.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('deploymentsStorageTotal', [ ->addRule('deploymentsStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function deployments storage.', 'description' => 'Total aggregated sum of functions deployment storage.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsTotal', [ ->addRule('buildsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of function builds.', 'description' => 'Total aggregated number of functions build.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsStorageTotal', [ ->addRule('buildsStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of builds storage.', 'description' => 'total aggregated sum of functions build storage.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buildsTimeTotal', [ ->addRule('buildsTimeTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of build compute time.', 'description' => 'Total aggregated sum of functions build compute time.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('executionsTotal', [ ->addRule('executionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of functions executions.', 'description' => 'Total aggregated number of functions execution.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('executionsTimeTotal', [ ->addRule('executionsTimeTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of functions execution compute time.', 'description' => 'Total aggregated sum of functions execution compute time.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('functions', [ ->addRule('functions', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of functions per period.', 'description' => 'Aggregated number of functions per period.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
'array' => true 'array' => true
]) ])
->addRule('deployments', [ ->addRule('deployments', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of deployments per period.', 'description' => 'Aggregated number of functions deployment per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('deploymentsStorage', [ ->addRule('deploymentsStorage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of deployments storage per period.', 'description' => 'Aggregated number of functions deployment storage per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('builds', [ ->addRule('builds', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of builds per period.', 'description' => 'Aggregated number of functions build per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('buildsStorage', [ ->addRule('buildsStorage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of storage per period.', 'description' => 'Aggregated sum of functions build storage per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('buildsTime', [ ->addRule('buildsTime', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of builds compute time per period.', 'description' => 'Aggregated sum of functions build compute time per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('executions', [ ->addRule('executions', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of executions per period.', 'description' => 'Aggregated number of functions execution per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
@ -116,7 +116,7 @@ class UsageFunctions extends Model
->addRule('executionsTime', [ ->addRule('executionsTime', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of execution compute time per period.', 'description' => 'Aggregated number of functions execution compute time per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -18,50 +18,50 @@ class UsageProject extends Model
]) ])
->addRule('executionsTotal', [ ->addRule('executionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total function executions.', 'description' => 'Total aggregated number of function executions.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('documentsTotal', [ ->addRule('documentsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total number of documents.', 'description' => 'Total aggregated number of documents.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('databasesTotal', [ ->addRule('databasesTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total number of databases.', 'description' => 'Total aggregated number of databases.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('usersTotal', [ ->addRule('usersTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total number of users.', 'description' => 'Total aggregated number of users.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('filesStorageTotal', [ ->addRule('filesStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total occupied storage size (in bytes).', 'description' => 'Total aggregated sum of files storage size (in bytes).',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('bucketsTotal', [ ->addRule('bucketsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of total number of buckets.', 'description' => 'Total aggregated number of buckets.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('requests', [ ->addRule('requests', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of number of requests per period.', 'description' => 'Aggregated number of requests per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('network', [ ->addRule('network', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated statistics of consumed bandwidth per period.', 'description' => 'Aggregated number of consumed bandwidth per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,45 +12,45 @@ class UsageStorage extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('bucketsTotal', [ ->addRule('bucketsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of buckets', 'description' => 'Total aggregated number of buckets',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('filesTotal', [ ->addRule('filesTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of files.', 'description' => 'Total aggregated number of files.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('filesStorageTotal', [ ->addRule('filesStorageTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of files storage (in bytes).', 'description' => 'Total aggregated number of files storage (in bytes).',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('buckets', [ ->addRule('buckets', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of buckets per period.', 'description' => 'Aggregated number of buckets per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('files', [ ->addRule('files', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of files per period.', 'description' => 'Aggregated number of files per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
]) ])
->addRule('storage', [ ->addRule('storage', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of storage (in bytes) per period .', 'description' => 'Aggregated number of files storage (in bytes) per period .',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true

View file

@ -12,26 +12,26 @@ class UsageUsers extends Model
$this $this
->addRule('range', [ ->addRule('range', [
'type' => self::TYPE_STRING, 'type' => self::TYPE_STRING,
'description' => 'The time range of the usage stats.', 'description' => 'Time range of the usage stats.',
'default' => '', 'default' => '',
'example' => '30d', 'example' => '30d',
]) ])
->addRule('usersTotal', [ ->addRule('usersTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics of users.', 'description' => 'Total aggregated number of statistics of users.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('sessionsTotal', [ ->addRule('sessionsTotal', [
'type' => self::TYPE_INTEGER, 'type' => self::TYPE_INTEGER,
'description' => 'Aggregated total statistics sessions created.', 'description' => 'Total aggregated number of active sessions.',
'default' => 0, 'default' => 0,
'example' => 0, 'example' => 0,
]) ])
->addRule('users', [ ->addRule('users', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics of users per period.', 'description' => 'Aggregated number of users per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true
@ -39,7 +39,7 @@ class UsageUsers extends Model
->addRule('sessions', [ ->addRule('sessions', [
'type' => Response::MODEL_METRIC, 'type' => Response::MODEL_METRIC,
'description' => 'Aggregated statistics sessions created per period.', 'description' => 'Aggregated number of active sessions per period.',
'default' => [], 'default' => [],
'example' => [], 'example' => [],
'array' => true 'array' => true