Fixed missing default values
This commit is contained in:
parent
8e4a87ea04
commit
7272ca857e
|
@ -26,20 +26,20 @@ class UsageV1
|
||||||
|
|
||||||
$statsd = $register->get('statsd', true);
|
$statsd = $register->get('statsd', true);
|
||||||
|
|
||||||
$projectId = $this->args['projectId'];
|
$projectId = $this->args['projectId'] ?? '';
|
||||||
|
|
||||||
$storage = $this->args['storage'];
|
$storage = $this->args['storage'] ?? 0;
|
||||||
|
|
||||||
$networkRequestSize = $this->args['networkRequestSize'];
|
$networkRequestSize = $this->args['networkRequestSize'] ?? 0;
|
||||||
$networkResponseSize = $this->args['networkResponseSize'];
|
$networkResponseSize = $this->args['networkResponseSize'] ?? 0;
|
||||||
|
|
||||||
$httpMethod = $this->args['httpMethod'];
|
$httpMethod = $this->args['httpMethod'] ?? '';
|
||||||
$httpRequest = $this->args['httpRequest'];
|
$httpRequest = $this->args['httpRequest'] ?? 0;
|
||||||
|
|
||||||
$functionId = $this->args['functionId'];
|
$functionId = $this->args['functionId'];
|
||||||
$functionExecution = $this->args['functionExecution'];
|
$functionExecution = $this->args['functionExecution'] ?? 0;
|
||||||
$functionExecutionTime = $this->args['functionExecutionTime'];
|
$functionExecutionTime = $this->args['functionExecutionTime'] ?? 0;
|
||||||
$functionStatus = $this->args['functionStatus'];
|
$functionStatus = $this->args['functionStatus'] ?? '';
|
||||||
|
|
||||||
$tags = ",project={$projectId},version=".App::getEnv('_APP_VERSION', 'UNKNOWN').'';
|
$tags = ",project={$projectId},version=".App::getEnv('_APP_VERSION', 'UNKNOWN').'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue