diff --git a/.editorconfig b/.editorconfig index 677e36e2..c835f941 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,9 +1,13 @@ root = true +# All files. [*] -charset = utf-8 -end_of_line = lf -indent_size = 4 +end_of_line = LF indent_style = space -insert_final_newline = true +indent_size = 2 +charset = utf-8 trim_trailing_whitespace = true +insert_final_newline = true + +[composer.{json,lock}] +indent_size = 4 diff --git a/examples/create_new_app_with_credential.php b/examples/create_new_app_with_credential.php index 6e773a04..71881d50 100644 --- a/examples/create_new_app_with_credential.php +++ b/examples/create_new_app_with_credential.php @@ -36,10 +36,11 @@ /** @var \Apigee\Edge\Api\Management\Entity\DeveloperApp $developerApp */ $developerApp = new DeveloperApp(['name' => 'test_app_1']); $developerApp->setDisplayName('My first app'); + $developerApp->setAttributes(new AttributesProperty(['bar' => 'baz'])); $dac->create($developerApp); $dacc = new DeveloperAppCredentialController($organization, $developerMail, $developerApp->id(), $client); - $attributes = new AttributesProperty(['foo' => 'bar']); + $credAttributes = new AttributesProperty(['foo' => 'bar']); $apiProducts = ['product_1', 'product_2']; $scopes = ['scope 1', 'scope 2']; @@ -48,16 +49,16 @@ /** @var \Apigee\Edge\Api\Management\Entity\AppCredential $credential */ $credential = reset($credentials); $dacc->addProducts($credential->id(), $apiProducts); - $dacc->overrideAttributes($credential->id(), $attributes); + $dacc->updateAttributes($credential->id(), $credAttributes); $dacc->overrideScopes($credential->id(), $scopes); // Create a new, auto-generated credential that expires after 1 week. - $dacc->generate($apiProducts, $attributes, $scopes, 604800000); + $dacc->generate($apiProducts, $developerApp->getAttributes(), $developerApp->getCallbackUrl(), $scopes, 604800000); // Create a credential with a specific key and secret and add the same products, attributes and scopes to it. $credential = $dacc->create('MY_CONSUMER_KEY', 'MY_CONSUMER_SECRET'); $dacc->addProducts($credential->id(), $apiProducts); - $dacc->overrideAttributes($credential->id(), $attributes); + $dacc->updateAttributes($credential->id(), $credAttributes); $dacc->overrideScopes($credential->id(), $scopes); } catch (ClientErrorException $e) { // HTTP code >= 400 and < 500. Ex.: 401 Unauthorised. diff --git a/src/Api/Management/Controller/AppCredentialController.php b/src/Api/Management/Controller/AppCredentialController.php index 5190f6cb..67184967 100644 --- a/src/Api/Management/Controller/AppCredentialController.php +++ b/src/Api/Management/Controller/AppCredentialController.php @@ -94,6 +94,7 @@ public function create(string $consumerKey, string $consumerSecret): AppCredenti public function generate( array $apiProducts, AttributesProperty $appAttributes, + string $callbackUrl, array $scopes = [], string $keyExpiresIn = '-1' ): AppCredentialInterface { @@ -102,8 +103,9 @@ public function generate( (string) json_encode((object) [ 'apiProducts' => $apiProducts, 'attributes' => $this->entityTransformer->normalize($appAttributes), - 'scopes' => $scopes, + 'callbackUrl' => $callbackUrl, 'keyExpiresIn' => $keyExpiresIn, + 'scopes' => $scopes, ]) ); // It returns a complete developer app entity, but we only returns the newly created credential for the diff --git a/src/Api/Management/Controller/AppCredentialControllerInterface.php b/src/Api/Management/Controller/AppCredentialControllerInterface.php index 6e458f80..088ee41b 100644 --- a/src/Api/Management/Controller/AppCredentialControllerInterface.php +++ b/src/Api/Management/Controller/AppCredentialControllerInterface.php @@ -56,6 +56,8 @@ public function create(string $consumerKey, string $consumerSecret): AppCredenti * @param \Apigee\Edge\Structure\AttributesProperty $appAttributes * Current attributes of the app. "In this API call, be sure to include any existing app attributes. * If you don't, the existing attributes are deleted." + * @param string callbackUrl + * Current callback url of the app. (If you don't include it then the existing callback url gets deleted.) * @param string[] $scopes * List of OAuth scopes (from API products). * @param string $keyExpiresIn @@ -66,6 +68,7 @@ public function create(string $consumerKey, string $consumerSecret): AppCredenti public function generate( array $apiProducts, AttributesProperty $appAttributes, + string $callbackUrl, array $scopes = [], string $keyExpiresIn = '-1' ): AppCredentialInterface; diff --git a/tests/Api/Management/Controller/AppCredentialControllerBase.php b/tests/Api/Management/Controller/AppCredentialControllerBase.php index 98996385..b4e1188d 100644 --- a/tests/Api/Management/Controller/AppCredentialControllerBase.php +++ b/tests/Api/Management/Controller/AppCredentialControllerBase.php @@ -242,6 +242,7 @@ public function testGenerate(): string $credential = $controller->generate( [static::$apiProductName], $app->getAttributes(), + $app->getCallbackUrl(), ['scope 1'], 604800000 ); diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/POST.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/POST.json index 769e4e6a..398921d5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/POST.json @@ -15,7 +15,7 @@ "lastModifiedBy": "phpunit@example.com", "name": "phpunit_test", "proxies": [], - "quota" : "10", + "quota": "10", "quotaInterval": "1", "quotaTimeUnit": "minute", "scopes": [ diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/GET.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/GET.json index 769e4e6a..398921d5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/GET.json @@ -15,7 +15,7 @@ "lastModifiedBy": "phpunit@example.com", "name": "phpunit_test", "proxies": [], - "quota" : "10", + "quota": "10", "quotaInterval": "1", "quotaTimeUnit": "minute", "scopes": [ diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/PUT.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/PUT.json index ec25d6b3..6d258b82 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/PUT.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/PUT.json @@ -19,7 +19,7 @@ "lastModifiedBy": "phpunit@example.com", "name": "phpunit_test", "proxies": [], - "quota" : "1000", + "quota": "1000", "quotaInterval": "12", "quotaTimeUnit": "hour", "scopes": [ diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/GET.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/GET.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/GET.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/POST.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/POST.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/POST.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/GET.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/GET.json index 1ec17f83..70781593 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/GET.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/POST.json b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/POST.json index 4ccdc65f..9edebb0a 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apiproducts/phpunit_test/attributes/name1/POST.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1-edited" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/apps/f98678b9-4d1b-4927-ba17-62e6efaadfb3/GET.json b/tests/offline-test-data/v1/organizations/phpunit/apps/f98678b9-4d1b-4927-ba17-62e6efaadfb3/GET.json index ce0caf45..fe424a5c 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/apps/f98678b9-4d1b-4927-ba17-62e6efaadfb3/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/apps/f98678b9-4d1b-4927-ba17-62e6efaadfb3/GET.json @@ -35,4 +35,4 @@ "name": "phpunit_test_app", "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/GET.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/GET.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/GET.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/POST.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/POST.json index 2bfbe218..ef0e2310 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/POST.json @@ -21,4 +21,4 @@ "value": "This is a test app created by PHP Unit." } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/GET.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/GET.json index 1ec17f83..70781593 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/GET.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/POST.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/POST.json index 4ccdc65f..9edebb0a 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/attributes/name1/POST.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1-edited" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/create/POST.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/create/POST.json index ffe5aa15..c9ab77b8 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/create/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/create/POST.json @@ -6,4 +6,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json index d67c409d..d868a733 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json @@ -12,4 +12,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json index d67c409d..d868a733 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json @@ -12,4 +12,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json index 599ccce6..28798535 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json +++ b/tests/offline-test-data/v1/organizations/phpunit/companies/phpunit/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json @@ -14,4 +14,4 @@ "scope 1" ], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/GET-expand-true.json b/tests/offline-test-data/v1/organizations/phpunit/developers/GET-expand-true.json index 65ee5107..6b26ad1c 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/GET-expand-true.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/GET-expand-true.json @@ -148,4 +148,4 @@ "lastModifiedBy": "phpunit@example.com" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/GET_expand=true.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/GET_expand=true.json index c6a66c99..f52208db 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/GET_expand=true.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/GET_expand=true.json @@ -39,4 +39,4 @@ "status": "approved" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/POST.json index ce0caf45..fe424a5c 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/POST.json @@ -35,4 +35,4 @@ "name": "phpunit_test_app", "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/GET.json index ce0caf45..fe424a5c 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/GET.json @@ -35,4 +35,4 @@ "name": "phpunit_test_app", "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/PUT.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/PUT.json index 8c72662f..c805883d 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/PUT.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/PUT.json @@ -38,4 +38,4 @@ "name": "phpunit_test_app", "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/GET.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/GET.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/POST.json index 2bfbe218..ef0e2310 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/POST.json @@ -21,4 +21,4 @@ "value": "This is a test app created by PHP Unit." } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/GET.json index 1ec17f83..70781593 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/GET.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/POST.json index 4ccdc65f..9edebb0a 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/attributes/name1/POST.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1-edited" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/create/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/create/POST.json index ffe5aa15..c9ab77b8 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/create/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/create/POST.json @@ -6,4 +6,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json index d67c409d..d868a733 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/GET.json @@ -12,4 +12,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json index d67c409d..d868a733 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/POST.json @@ -12,4 +12,4 @@ "issuedAt": 648345600000, "scopes": [], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json index 599ccce6..28798535 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/PUT.json @@ -14,4 +14,4 @@ "scope 1" ], "status": "approved" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/GET.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/GET.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/POST.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/POST.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/GET.json index 1ec17f83..70781593 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/GET.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/POST.json index 4ccdc65f..9edebb0a 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/apps/phpunit_test_app/keys/phpunit_test_app_key/attributes/name1/POST.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1-edited" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/GET.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/GET.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/POST.json index b1a37068..b8e46ed5 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/POST.json @@ -13,4 +13,4 @@ "value": "value2" } ] -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/GET.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/GET.json index 1ec17f83..70781593 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/GET.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/GET.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/POST.json b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/POST.json index 4ccdc65f..9edebb0a 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/POST.json +++ b/tests/offline-test-data/v1/organizations/phpunit/developers/f43ffa3c-e147-47de-8cd6-f5b34429a531/attributes/name1/POST.json @@ -1,4 +1,4 @@ { "name": "name1", "value": "value1-edited" -} \ No newline at end of file +} diff --git a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json index 34c332d8..cabe7bab 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json +++ b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json @@ -1,21 +1,53 @@ { - "Response" : { - "TimeUnit" : [1518480000000, 1517961600000, 1517788800000, 1517702400000, 1517616000000, 1517529600000, 1517443200000 ], - "metaData" : { - "errors" : [ ], - "notices" : [ "Source:Postgres", "query served by:e9f88317-f457-452c-917a-c29e7ee11252", "Table used: edge.api.xyz.agg_api", "PG Host:localhost" ] + "Response": { + "TimeUnit": [ + 1518480000000, + 1517961600000, + 1517788800000, + 1517702400000, + 1517616000000, + 1517529600000, + 1517443200000 + ], + "metaData": { + "errors": [], + "notices": [ + "Source:Postgres", + "query served by:e9f88317-f457-452c-917a-c29e7ee11252", + "Table used: edge.api.xyz.agg_api", + "PG Host:localhost" + ] }, - "resultTruncated" : false, - "stats" : { - "data" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 33.0, 38.0, 1389.0, 461.0, 1747.0, 606.0, 5452.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 11.0, 20.0, 798.0, 89.0, 362.0, 122.0, 3224.0 ] - } ] + "resultTruncated": false, + "stats": { + "data": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 33.0, + 38.0, + 1389.0, + 461.0, + 1747.0, + 606.0, + 5452.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 11.0, + 20.0, + 798.0, + 89.0, + 362.0, + 122.0, + 3224.0 + ] + } + ] } } } diff --git a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json index 6695fa9e..4bed2bb7 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json +++ b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/GET__optimized=js-select=summessage_count-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json @@ -1,21 +1,53 @@ { - "Response" : { - "TimeUnit" : [ 1517443200000, 1517529600000, 1517616000000, 1517702400000, 1517788800000, 1517961600000, 1518480000000 ], - "metaData" : { - "errors" : [ ], - "notices" : [ "Source:Postgres", "query served by:e9f88317-f457-452c-917a-c29e7ee11252", "Table used: edge.api.xyz.agg_api", "PG Host:localhost" ] + "Response": { + "TimeUnit": [ + 1517443200000, + 1517529600000, + 1517616000000, + 1517702400000, + 1517788800000, + 1517961600000, + 1518480000000 + ], + "metaData": { + "errors": [], + "notices": [ + "Source:Postgres", + "query served by:e9f88317-f457-452c-917a-c29e7ee11252", + "Table used: edge.api.xyz.agg_api", + "PG Host:localhost" + ] }, - "resultTruncated" : false, - "stats" : { - "data" : [ { - "env" : "prod", - "name" : "sum(message_count)", - "values" : [ 5452.0, 606.0, 1747.0, 461.0, 1389.0, 38.0, 33.0 ] - }, { - "env" : "prod", - "name" : "sum(is_error)", - "values" : [ 3224.0, 122.0, 362.0, 89.0, 798.0, 20.0, 11.0 ] - } ] + "resultTruncated": false, + "stats": { + "data": [ + { + "env": "prod", + "name": "sum(message_count)", + "values": [ + 5452.0, + 606.0, + 1747.0, + 461.0, + 1389.0, + 38.0, + 33.0 + ] + }, + { + "env": "prod", + "name": "sum(is_error)", + "values": [ + 3224.0, + 122.0, + 362.0, + 89.0, + 798.0, + 20.0, + 11.0 + ] + } + ] } } } diff --git a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json index e85c14fe..3cd30e74 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json +++ b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=false.json @@ -1,55 +1,147 @@ { - "Response" : { - "TimeUnit" : [ 1518480000000, 1517961600000, 1517788800000, 1517702400000, 1517616000000, 1517529600000, 1517443200000 ], - "metaData" : { - "errors" : [ ], - "notices" : [ "Source:Postgres", "query served by:e9f88317-f457-452c-917a-c29e7ee11252", "Table used: edge.api.xyz.agg_api", "PG Host:localhost" ] + "Response": { + "TimeUnit": [ + 1518480000000, + 1517961600000, + 1517788800000, + 1517702400000, + 1517616000000, + 1517529600000, + 1517443200000 + ], + "metaData": { + "errors": [], + "notices": [ + "Source:Postgres", + "query served by:e9f88317-f457-452c-917a-c29e7ee11252", + "Table used: edge.api.xyz.agg_api", + "PG Host:localhost" + ] }, - "resultTruncated" : false, - "stats" : { - "data" : [ { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "(not set)", "(not set)" ] + "resultTruncated": false, + "stats": { + "data": [ + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "(not set)", + "(not set)" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 33.0, + 20.0, + 798.0, + 89.0, + 362.0, + 122.0, + 3224.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 22.0, + 20.0, + 798.0, + 89.0, + 362.0, + 122.0, + 3224.0 + ] + } + ] }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 33.0, 20.0, 798.0, 89.0, 362.0, 122.0, 3224.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 22.0, 20.0, 798.0, 89.0, 362.0, 122.0, 3224.0 ] - } ] - }, { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "helloApp", "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" ] + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "helloApp", + "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 11.0, + 18.0, + 557.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 9.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + } + ] }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 11.0, 18.0, 557.0, 0.0, 0.0, 0.0, 0.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] - } ] - }, { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "analytics-test", "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" ] - }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 66.0, 0.0, 34.0, 372.0, 1385.0, 484.0, 2228.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 42.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] - } ] - } ] + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "analytics-test", + "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 66.0, + 0.0, + 34.0, + 372.0, + 1385.0, + 484.0, + 2228.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 42.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + } + ] + } + ] } } } diff --git a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json index e85c14fe..3cd30e74 100644 --- a/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json +++ b/tests/offline-test-data/v1/organizations/phpunit/environments/test/stats/developer_app,developer/GET__optimized=js-select=summessage_countsumis_error-timeRange=020120180000022820182359-timeUnit=day-tsAscending=true.json @@ -1,55 +1,147 @@ { - "Response" : { - "TimeUnit" : [ 1518480000000, 1517961600000, 1517788800000, 1517702400000, 1517616000000, 1517529600000, 1517443200000 ], - "metaData" : { - "errors" : [ ], - "notices" : [ "Source:Postgres", "query served by:e9f88317-f457-452c-917a-c29e7ee11252", "Table used: edge.api.xyz.agg_api", "PG Host:localhost" ] + "Response": { + "TimeUnit": [ + 1518480000000, + 1517961600000, + 1517788800000, + 1517702400000, + 1517616000000, + 1517529600000, + 1517443200000 + ], + "metaData": { + "errors": [], + "notices": [ + "Source:Postgres", + "query served by:e9f88317-f457-452c-917a-c29e7ee11252", + "Table used: edge.api.xyz.agg_api", + "PG Host:localhost" + ] }, - "resultTruncated" : false, - "stats" : { - "data" : [ { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "(not set)", "(not set)" ] + "resultTruncated": false, + "stats": { + "data": [ + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "(not set)", + "(not set)" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 33.0, + 20.0, + 798.0, + 89.0, + 362.0, + 122.0, + 3224.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 22.0, + 20.0, + 798.0, + 89.0, + 362.0, + 122.0, + 3224.0 + ] + } + ] }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 33.0, 20.0, 798.0, 89.0, 362.0, 122.0, 3224.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 22.0, 20.0, 798.0, 89.0, 362.0, 122.0, 3224.0 ] - } ] - }, { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "helloApp", "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" ] + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "helloApp", + "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 11.0, + 18.0, + 557.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 9.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + } + ] }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 11.0, 18.0, 557.0, 0.0, 0.0, 0.0, 0.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 9.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] - } ] - }, { - "identifier" : { - "names" : [ "developer_app", "developer" ], - "values" : [ "analytics-test", "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" ] - }, - "metric" : [ { - "env" : "test", - "name" : "sum(message_count)", - "values" : [ 66.0, 0.0, 34.0, 372.0, 1385.0, 484.0, 2228.0 ] - }, { - "env" : "test", - "name" : "sum(is_error)", - "values" : [ 42.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] - } ] - } ] + { + "identifier": { + "names": [ + "developer_app", + "developer" + ], + "values": [ + "analytics-test", + "phpunit@@@b5ada6f0-139f-4cbe-8bcc-9870ffe329" + ] + }, + "metric": [ + { + "env": "test", + "name": "sum(message_count)", + "values": [ + 66.0, + 0.0, + 34.0, + 372.0, + 1385.0, + 484.0, + 2228.0 + ] + }, + { + "env": "test", + "name": "sum(is_error)", + "values": [ + 42.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + } + ] + } + ] } } }