e2e tests

This commit is contained in:
shimon
2022-12-15 09:56:06 +02:00
parent 961c408885
commit 285bfe9fd7
10 changed files with 132 additions and 288 deletions
+5 -2
View File
@@ -18,11 +18,14 @@ class Usage extends Event
* Add metric.
*
* @param string $key
* @param int $value
* @param int|float $value
* @return self
*/
public function addMetric(string $key, int $value): self
public function addMetric(string $key, int|float $value): self
{
if($key == 'executions.compute'){
var_dump($value);
}
$this->metrics[] = [
'key' => $key,
'value' => $value,
@@ -16,7 +16,7 @@ class UsageStorage extends Model
'default' => '',
'example' => '30d',
])
->addRule('buckets', [
->addRule('bucketsCount', [
'type' => Response::MODEL_METRIC,
'description' => 'Aggregated stats for total number of buckets.',
'default' => [],