contentful-management 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +19 -13
- data/lib/contentful/management/client.rb +10 -12
- data/lib/contentful/management/{client_usage_period_methods_factory.rb → client_organization_periodic_usage_methods_factory.rb} +3 -4
- data/lib/contentful/management/{client_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
- data/lib/contentful/management/organization.rb +8 -8
- data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
- data/lib/contentful/management/resource_builder.rb +4 -4
- data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml +368 -0
- data/spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml +167 -0
- data/spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml +6800 -0
- data/spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml +1976 -0
- data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
- data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
- metadata +18 -14
- data/spec/fixtures/vcr_cassettes/api_usage/all.yml +0 -155
- data/spec/fixtures/vcr_cassettes/usage_period/all.yml +0 -114
- data/spec/lib/contentful/management/api_usage_spec.rb +0 -28
- data/spec/lib/contentful/management/usage_period_spec.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3bf4a2b6f65d7eeb5ce00aac89a702a19b39341bb83e2ad88f1e0c2fbd7a9a
|
4
|
+
data.tar.gz: 7344ac4078ddd411c5a64178e67f89b1dad6b164f06f75e45edae3a6154c20d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea320a9e9f20bd0d6781d42a332b90cfd78cafb0448afda780f0110601032ba15d5b77ff93adcb123ef1902711f5ffb87a9504ee4b75efbb6f5fbb88b9b08730
|
7
|
+
data.tar.gz: 82f9d53aab9f40aa67e8e34c389c0aa8abe03ea66af48f6133803d8ab5dd9befb9c904ac335fc50ba362b8fa9400946a559a96a417b7a930932826d692899037
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
## Master
|
4
4
|
|
5
|
+
## 2.12.0
|
6
|
+
|
7
|
+
*Note*: Only a minor change because the removed feature was *Alpha*.
|
8
|
+
|
9
|
+
### Added
|
10
|
+
* Add `OrganizationPeriodicUsage`, `Client#organization_periodic_usages` and `Organization#periodic_usages`.
|
11
|
+
* Add `SpacePeriodicUsage`, `Client#space_periodic_usages` and `Organization#space_periodic_usages`.
|
12
|
+
|
13
|
+
### Removed
|
14
|
+
* Removed now deprecated Alpha Usage APIs, which have been superseeded by the new APIs added.
|
15
|
+
|
5
16
|
## 2.11.0
|
6
17
|
### Added
|
7
18
|
* Added support for Rich Text specific validations. [#200](https://github.com/contentful/contentful-management.rb/pull/200)
|
data/README.md
CHANGED
@@ -827,40 +827,46 @@ Retrieving all organization details:
|
|
827
827
|
organizations = client.organizations.all
|
828
828
|
```
|
829
829
|
|
830
|
-
### Usage
|
830
|
+
### Usage
|
831
831
|
|
832
832
|
*Note*: This feature is available only to Commited v2 customers.
|
833
833
|
|
834
|
-
|
834
|
+
#### Organization Periodic Usage
|
835
|
+
|
836
|
+
Retrieving all API Usage statistics for an Organization during a given usage period, broken down by organization for all APIs:
|
835
837
|
|
836
838
|
```ruby
|
837
|
-
|
839
|
+
# Optionally, you can pass the metric, start and end date filters
|
840
|
+
usage = client.organization_periodic_usages('organization_id').all
|
841
|
+
|
842
|
+
# For example only CDA and CMA metrics from yesterday onwards
|
843
|
+
usage = client.organization_periodic_usages('organization_id').all('metric[in]': ['cda', 'cma'], startDate: (Date.today - 1).iso8601)
|
838
844
|
```
|
839
845
|
|
840
846
|
Alternatively, if you have an already fetched organization:
|
841
847
|
|
842
848
|
```ruby
|
843
|
-
|
849
|
+
# Breaking down CMA usage by space, for a given period.
|
850
|
+
usage = organization.periodic_usages.all
|
844
851
|
```
|
845
852
|
|
846
|
-
|
853
|
+
#### Space Periodic Usage
|
847
854
|
|
848
|
-
|
849
|
-
|
850
|
-
Retrieving all API Usage statistics for an Organizations during a given usage period, broken down by organization for all APIs:
|
855
|
+
Retrieving all API Usage statistics for an Organization during a given usage period, broken down by space for all APIs:
|
851
856
|
|
852
857
|
```ruby
|
853
|
-
#
|
854
|
-
|
855
|
-
|
856
|
-
|
858
|
+
# Optionally, you can pass the metric, start and end date filters
|
859
|
+
usage = client.space_periodic_usages('organization_id').all
|
860
|
+
|
861
|
+
# For example only CDA and CMA metrics from yesterday onwards
|
862
|
+
usage = client.space_periodic_usages('organization_id').all('metric[in]': ['cda', 'cma'], startDate: (Date.today - 1).iso8601)
|
857
863
|
```
|
858
864
|
|
859
865
|
Alternatively, if you have an already fetched organization:
|
860
866
|
|
861
867
|
```ruby
|
862
868
|
# Breaking down CMA usage by space, for a given period.
|
863
|
-
usage = organization.
|
869
|
+
usage = organization.space_periodic_usages.all
|
864
870
|
```
|
865
871
|
|
866
872
|
### Users
|
@@ -20,9 +20,7 @@ require 'contentful/management/client_upload_methods_factory'
|
|
20
20
|
require 'contentful/management/client_api_key_methods_factory'
|
21
21
|
require 'contentful/management/client_webhook_methods_factory'
|
22
22
|
require 'contentful/management/client_snapshot_methods_factory'
|
23
|
-
require 'contentful/management/client_api_usage_methods_factory'
|
24
23
|
require 'contentful/management/client_environment_methods_factory'
|
25
|
-
require 'contentful/management/client_usage_period_methods_factory'
|
26
24
|
require 'contentful/management/client_organization_methods_factory'
|
27
25
|
require 'contentful/management/client_content_type_methods_factory'
|
28
26
|
require 'contentful/management/client_ui_extension_methods_factory'
|
@@ -31,7 +29,9 @@ require 'contentful/management/client_webhook_health_methods_factory'
|
|
31
29
|
require 'contentful/management/client_preview_api_key_methods_factory'
|
32
30
|
require 'contentful/management/client_space_membership_methods_factory'
|
33
31
|
require 'contentful/management/client_editor_interface_methods_factory'
|
32
|
+
require 'contentful/management/client_space_periodic_usage_methods_factory'
|
34
33
|
require 'contentful/management/client_personal_access_tokens_methods_factory'
|
34
|
+
require 'contentful/management/client_organization_periodic_usage_methods_factory'
|
35
35
|
|
36
36
|
module Contentful
|
37
37
|
module Management
|
@@ -133,22 +133,20 @@ module Contentful
|
|
133
133
|
ClientOrganizationMethodsFactory.new(self)
|
134
134
|
end
|
135
135
|
|
136
|
-
# Allows
|
137
|
-
# Allows listing all usage periods for client.
|
136
|
+
# Allows listing all usage periods for organization grouped by organization.
|
138
137
|
# @see _ README for details.
|
139
138
|
#
|
140
|
-
# @return [Contentful::Management::
|
141
|
-
def
|
142
|
-
|
139
|
+
# @return [Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory]
|
140
|
+
def organization_periodic_usages(organization_id)
|
141
|
+
ClientOrganizationPeriodicUsageMethodsFactory.new(self, organization_id)
|
143
142
|
end
|
144
143
|
|
145
|
-
# Allows
|
146
|
-
# Allows listing all api usage for client.
|
144
|
+
# Allows listing all usage periods for organization grouped by space.
|
147
145
|
# @see _ README for details.
|
148
146
|
#
|
149
|
-
# @return [Contentful::Management::
|
150
|
-
def
|
151
|
-
|
147
|
+
# @return [Contentful::Management::ClientSpacePeriodicUsageMethodsFactory]
|
148
|
+
def space_periodic_usages(organization_id)
|
149
|
+
ClientSpacePeriodicUsageMethodsFactory.new(self, organization_id)
|
152
150
|
end
|
153
151
|
|
154
152
|
# Allows viewing of users in context of the current client
|
@@ -2,9 +2,9 @@ require_relative 'client_association_methods_factory'
|
|
2
2
|
|
3
3
|
module Contentful
|
4
4
|
module Management
|
5
|
-
# Wrapper for
|
5
|
+
# Wrapper for Organization Periodic Usages for usage from within Client
|
6
6
|
# @private
|
7
|
-
class
|
7
|
+
class ClientOrganizationPeriodicUsageMethodsFactory
|
8
8
|
include Contentful::Management::ClientAssociationMethodsFactory
|
9
9
|
|
10
10
|
def initialize(client, organization_id)
|
@@ -17,8 +17,7 @@ module Contentful
|
|
17
17
|
{
|
18
18
|
organization_id: @organization_id
|
19
19
|
},
|
20
|
-
params
|
21
|
-
'x-contentful-enable-alpha-feature' => 'usage-insights'
|
20
|
+
params
|
22
21
|
)
|
23
22
|
end
|
24
23
|
|
@@ -2,9 +2,9 @@ require_relative 'client_association_methods_factory'
|
|
2
2
|
|
3
3
|
module Contentful
|
4
4
|
module Management
|
5
|
-
# Wrapper for
|
5
|
+
# Wrapper for Space Periodic Usages for usage from within Client
|
6
6
|
# @private
|
7
|
-
class
|
7
|
+
class ClientSpacePeriodicUsageMethodsFactory
|
8
8
|
include Contentful::Management::ClientAssociationMethodsFactory
|
9
9
|
|
10
10
|
def initialize(client, organization_id)
|
@@ -12,19 +12,12 @@ module Contentful
|
|
12
12
|
@organization_id = organization_id
|
13
13
|
end
|
14
14
|
|
15
|
-
def all(
|
16
|
-
mandatory_params = {
|
17
|
-
'filters[usagePeriod]' => usage_period_id,
|
18
|
-
'filters[metric]' => api
|
19
|
-
}
|
20
|
-
|
15
|
+
def all(params = {})
|
21
16
|
@resource_requester.all(
|
22
17
|
{
|
23
|
-
usage_type: usage_type,
|
24
18
|
organization_id: @organization_id
|
25
19
|
},
|
26
|
-
|
27
|
-
'x-contentful-enable-alpha-feature' => 'usage-insights'
|
20
|
+
params
|
28
21
|
)
|
29
22
|
end
|
30
23
|
|
@@ -16,20 +16,20 @@ module Contentful
|
|
16
16
|
'organizations'
|
17
17
|
end
|
18
18
|
|
19
|
-
# Allows listing all usage periods for organization.
|
19
|
+
# Allows listing all usage periods for organization grouped by organization or space.
|
20
20
|
# @see _ README for details.
|
21
21
|
#
|
22
|
-
# @return [Contentful::Management::
|
23
|
-
def
|
24
|
-
|
22
|
+
# @return [Contentful::Management::ClientOrganizationPeriodicUsageMethodsFactory]
|
23
|
+
def periodic_usages
|
24
|
+
ClientOrganizationPeriodicUsageMethodsFactory.new(client, id)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Allows listing all
|
27
|
+
# Allows listing all usage periods for organization grouped by organization or space.
|
28
28
|
# @see _ README for details.
|
29
29
|
#
|
30
|
-
# @return [Contentful::Management::
|
31
|
-
def
|
32
|
-
|
30
|
+
# @return [Contentful::Management::ClientSpacePeriodicUsageMethodsFactory]
|
31
|
+
def space_periodic_usages
|
32
|
+
ClientSpacePeriodicUsageMethodsFactory.new(client, id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -2,40 +2,35 @@ require_relative 'resource'
|
|
2
2
|
|
3
3
|
module Contentful
|
4
4
|
module Management
|
5
|
-
# Resource class for
|
6
|
-
# @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/
|
7
|
-
class
|
5
|
+
# Resource class for OrganizationPeriodicUsage.
|
6
|
+
# @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/usage/organization-usage/get-organization-usage/console/curl
|
7
|
+
class OrganizationPeriodicUsage
|
8
8
|
include Contentful::Management::Resource
|
9
9
|
include Contentful::Management::Resource::Refresher
|
10
10
|
include Contentful::Management::Resource::SystemProperties
|
11
11
|
|
12
|
-
property :
|
13
|
-
property :
|
14
|
-
property :
|
15
|
-
property :
|
16
|
-
property :
|
12
|
+
property :metric, :string
|
13
|
+
property :usage, :integer
|
14
|
+
property :usagePerDay, :object
|
15
|
+
property :unitOfMeasure, :string
|
16
|
+
property :dateRange, :object
|
17
17
|
|
18
18
|
# @private
|
19
19
|
def self.build_endpoint(endpoint_options)
|
20
20
|
organization_id = endpoint_options[:organization_id]
|
21
|
-
usage_type = endpoint_options[:usage_type]
|
22
21
|
|
23
|
-
"organizations/#{organization_id}/
|
22
|
+
"organizations/#{organization_id}/organization_periodic_usages"
|
24
23
|
end
|
25
24
|
|
26
|
-
# Gets all
|
25
|
+
# Gets all organization periodic usages for a given organization.
|
27
26
|
#
|
28
27
|
# @param [Contentful::Management::Client] client
|
29
28
|
# @param [String] organization_id
|
30
|
-
# @param [String] usage_type
|
31
|
-
# @param [Integer] usage_period_id
|
32
|
-
# @param [String] api
|
33
29
|
# @param [Hash] params
|
34
30
|
#
|
35
|
-
# @return [Contentful::Management::Array<Contentful::Management::
|
36
|
-
|
37
|
-
|
38
|
-
ClientApiUsageMethodsFactory.new(client, organization_id).all(usage_type, usage_period_id, api, params)
|
31
|
+
# @return [Contentful::Management::Array<Contentful::Management::OrganizationPeriodicUsage>]
|
32
|
+
def self.all(client, organization_id, params = {})
|
33
|
+
ClientOrganizationPeriodicUsageMethodsFactory.new(client, organization_id).all(params)
|
39
34
|
end
|
40
35
|
|
41
36
|
# Not supported
|
@@ -12,9 +12,7 @@ require_relative 'webhook'
|
|
12
12
|
require_relative 'api_key'
|
13
13
|
require_relative 'resource'
|
14
14
|
require_relative 'snapshot'
|
15
|
-
require_relative 'api_usage'
|
16
15
|
require_relative 'environment'
|
17
|
-
require_relative 'usage_period'
|
18
16
|
require_relative 'organization'
|
19
17
|
require_relative 'content_type'
|
20
18
|
require_relative 'webhook_call'
|
@@ -24,7 +22,9 @@ require_relative 'webhook_health'
|
|
24
22
|
require_relative 'preview_api_key'
|
25
23
|
require_relative 'space_membership'
|
26
24
|
require_relative 'editor_interface'
|
25
|
+
require_relative 'space_periodic_usage'
|
27
26
|
require_relative 'personal_access_token'
|
27
|
+
require_relative 'organization_periodic_usage'
|
28
28
|
|
29
29
|
module Contentful
|
30
30
|
module Management
|
@@ -37,8 +37,8 @@ module Contentful
|
|
37
37
|
'Space' => Contentful::Management::Space,
|
38
38
|
'SpaceMembership' => Contentful::Management::SpaceMembership,
|
39
39
|
'Organization' => Contentful::Management::Organization,
|
40
|
-
'
|
41
|
-
'
|
40
|
+
'SpacePeriodicUsage' => Contentful::Management::SpacePeriodicUsage,
|
41
|
+
'OrganizationPeriodicUsage' => Contentful::Management::OrganizationPeriodicUsage,
|
42
42
|
'User' => Contentful::Management::User,
|
43
43
|
'Environment' => Contentful::Management::Environment,
|
44
44
|
'ContentType' => Contentful::Management::ContentType,
|
@@ -2,32 +2,35 @@ require_relative 'resource'
|
|
2
2
|
|
3
3
|
module Contentful
|
4
4
|
module Management
|
5
|
-
# Resource class for
|
6
|
-
# @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/
|
7
|
-
class
|
5
|
+
# Resource class for SpacePeriodicUsage.
|
6
|
+
# @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/usage/space-usage/get-space-usage/console/curl
|
7
|
+
class SpacePeriodicUsage
|
8
8
|
include Contentful::Management::Resource
|
9
9
|
include Contentful::Management::Resource::Refresher
|
10
10
|
include Contentful::Management::Resource::SystemProperties
|
11
11
|
|
12
|
-
property :
|
13
|
-
property :
|
12
|
+
property :metric, :string
|
13
|
+
property :usage, :integer
|
14
|
+
property :usagePerDay, :object
|
15
|
+
property :unitOfMeasure, :string
|
16
|
+
property :dateRange, :object
|
14
17
|
|
15
18
|
# @private
|
16
19
|
def self.build_endpoint(endpoint_options)
|
17
20
|
organization_id = endpoint_options[:organization_id]
|
18
21
|
|
19
|
-
"organizations/#{organization_id}/
|
22
|
+
"organizations/#{organization_id}/space_periodic_usages"
|
20
23
|
end
|
21
24
|
|
22
|
-
# Gets all
|
25
|
+
# Gets all space periodic usages for a given organization.
|
23
26
|
#
|
24
27
|
# @param [Contentful::Management::Client] client
|
25
28
|
# @param [String] organization_id
|
26
29
|
# @param [Hash] params
|
27
30
|
#
|
28
|
-
# @return [Contentful::Management::Array<Contentful::Management::
|
31
|
+
# @return [Contentful::Management::Array<Contentful::Management::SpacePeriodicUsage>]
|
29
32
|
def self.all(client, organization_id, params = {})
|
30
|
-
|
33
|
+
ClientSpacePeriodicUsageMethodsFactory.new(client, organization_id).all(params)
|
31
34
|
end
|
32
35
|
|
33
36
|
# Not supported
|
@@ -0,0 +1,368 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/organizations/org_id/organization_periodic_usages
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/2.11.0; platform ruby/2.6.3; os macOS/18;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/4.1.1
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Alpha-Feature,X-Contentful-Source-Environment,X-Contentful-Team,X-Contentful-Parent-Id,x-contentful-validate-only,X-Contentful-Marketplace
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Cf-Organization-Id:
|
42
|
+
- org_id
|
43
|
+
Content-Type:
|
44
|
+
- application/vnd.contentful.management.v1+json
|
45
|
+
Contentful-Api:
|
46
|
+
- cma
|
47
|
+
Date:
|
48
|
+
- Fri, 28 Feb 2020 14:42:27 GMT
|
49
|
+
Etag:
|
50
|
+
- W/"d2185e97c2daf1cd0f0be72a79f7b315"
|
51
|
+
Referrer-Policy:
|
52
|
+
- strict-origin-when-cross-origin
|
53
|
+
Server:
|
54
|
+
- Contentful
|
55
|
+
Strict-Transport-Security:
|
56
|
+
- max-age=15768000
|
57
|
+
X-Content-Type-Options:
|
58
|
+
- nosniff
|
59
|
+
X-Contentful-Request-Id:
|
60
|
+
- 36e77549021b20853a9535e89d0bdd4e
|
61
|
+
X-Download-Options:
|
62
|
+
- noopen
|
63
|
+
X-Frame-Options:
|
64
|
+
- ALLOWALL
|
65
|
+
X-Permitted-Cross-Domain-Policies:
|
66
|
+
- none
|
67
|
+
X-Xss-Protection:
|
68
|
+
- 1; mode=block
|
69
|
+
Content-Length:
|
70
|
+
- '6586'
|
71
|
+
Connection:
|
72
|
+
- Close
|
73
|
+
Set-Cookie:
|
74
|
+
- incap_ses_876_673446=yp+VcZuKci5d35NHZS4oDNImWV4AAAAAqAbS4TY59bq7c7UoUQsrmA==;
|
75
|
+
path=/; Domain=.contentful.com
|
76
|
+
- nlbi_673446=9x0YNII5ygys9olsYMlkBAAAAAAYBop9w7vJ9Qre8KLQ27zB; path=/; Domain=.contentful.com
|
77
|
+
- visid_incap_673446=C/6W96tTQ8qknLo2jzjsgNImWV4AAAAAQUIPAAAAAABjOhaX4s1ZCfVNuGwkxVaw;
|
78
|
+
expires=Fri, 26 Feb 2021 18:55:11 GMT; path=/; Domain=.contentful.com
|
79
|
+
X-Cdn:
|
80
|
+
- Incapsula
|
81
|
+
X-Iinfo:
|
82
|
+
- 10-14741526-14741528 NNNY CT(0 0 0) RT(1582900946537 55) q(0 0 0 -1) r(2 2)
|
83
|
+
U5
|
84
|
+
body:
|
85
|
+
encoding: ASCII-8BIT
|
86
|
+
string: |+
|
87
|
+
{
|
88
|
+
"total":4,
|
89
|
+
"limit":100,
|
90
|
+
"skip":0,
|
91
|
+
"sys":{
|
92
|
+
"type":"Array"
|
93
|
+
},
|
94
|
+
"items":[
|
95
|
+
{
|
96
|
+
"metric":"cma",
|
97
|
+
"usage":22951,
|
98
|
+
"usagePerDay":{
|
99
|
+
"2020-01-15":2629,
|
100
|
+
"2020-01-16":12,
|
101
|
+
"2020-01-17":874,
|
102
|
+
"2020-01-18":0,
|
103
|
+
"2020-01-19":0,
|
104
|
+
"2020-01-20":797,
|
105
|
+
"2020-01-21":483,
|
106
|
+
"2020-01-22":169,
|
107
|
+
"2020-01-23":185,
|
108
|
+
"2020-01-24":251,
|
109
|
+
"2020-01-25":0,
|
110
|
+
"2020-01-26":0,
|
111
|
+
"2020-01-27":1502,
|
112
|
+
"2020-01-28":161,
|
113
|
+
"2020-01-29":33,
|
114
|
+
"2020-01-30":49,
|
115
|
+
"2020-01-31":305,
|
116
|
+
"2020-02-01":0,
|
117
|
+
"2020-02-02":0,
|
118
|
+
"2020-02-03":541,
|
119
|
+
"2020-02-04":6083,
|
120
|
+
"2020-02-05":4185,
|
121
|
+
"2020-02-06":38,
|
122
|
+
"2020-02-07":87,
|
123
|
+
"2020-02-08":0,
|
124
|
+
"2020-02-09":28,
|
125
|
+
"2020-02-10":81,
|
126
|
+
"2020-02-11":433,
|
127
|
+
"2020-02-12":558,
|
128
|
+
"2020-02-13":82,
|
129
|
+
"2020-02-14":0,
|
130
|
+
"2020-02-15":126,
|
131
|
+
"2020-02-16":0,
|
132
|
+
"2020-02-17":1165,
|
133
|
+
"2020-02-18":656,
|
134
|
+
"2020-02-19":178,
|
135
|
+
"2020-02-20":133,
|
136
|
+
"2020-02-21":645,
|
137
|
+
"2020-02-22":0,
|
138
|
+
"2020-02-23":0,
|
139
|
+
"2020-02-24":0,
|
140
|
+
"2020-02-25":0,
|
141
|
+
"2020-02-26":324,
|
142
|
+
"2020-02-27":132,
|
143
|
+
"2020-02-28":26
|
144
|
+
},
|
145
|
+
"unitOfMeasure":"apiRequestsCount",
|
146
|
+
"sys":{
|
147
|
+
"type":"OrganizationPeriodicUsage",
|
148
|
+
"id":"usage-cma-org_id-2020-01-15-2020-02-28",
|
149
|
+
"organization":{
|
150
|
+
"sys":{
|
151
|
+
"type":"Link",
|
152
|
+
"linkType":"Organization",
|
153
|
+
"id":"org_id"
|
154
|
+
}
|
155
|
+
}
|
156
|
+
},
|
157
|
+
"dateRange":{
|
158
|
+
"startAt":"2020-01-15",
|
159
|
+
"endAt":"2020-02-28"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"metric":"cda",
|
164
|
+
"usage":961,
|
165
|
+
"usagePerDay":{
|
166
|
+
"2020-01-15":0,
|
167
|
+
"2020-01-16":0,
|
168
|
+
"2020-01-17":9,
|
169
|
+
"2020-01-18":0,
|
170
|
+
"2020-01-19":0,
|
171
|
+
"2020-01-20":21,
|
172
|
+
"2020-01-21":1,
|
173
|
+
"2020-01-22":0,
|
174
|
+
"2020-01-23":7,
|
175
|
+
"2020-01-24":0,
|
176
|
+
"2020-01-25":0,
|
177
|
+
"2020-01-26":0,
|
178
|
+
"2020-01-27":0,
|
179
|
+
"2020-01-28":0,
|
180
|
+
"2020-01-29":0,
|
181
|
+
"2020-01-30":0,
|
182
|
+
"2020-01-31":6,
|
183
|
+
"2020-02-01":0,
|
184
|
+
"2020-02-02":0,
|
185
|
+
"2020-02-03":521,
|
186
|
+
"2020-02-04":180,
|
187
|
+
"2020-02-05":157,
|
188
|
+
"2020-02-06":0,
|
189
|
+
"2020-02-07":9,
|
190
|
+
"2020-02-08":0,
|
191
|
+
"2020-02-09":0,
|
192
|
+
"2020-02-10":0,
|
193
|
+
"2020-02-11":0,
|
194
|
+
"2020-02-12":0,
|
195
|
+
"2020-02-13":0,
|
196
|
+
"2020-02-14":0,
|
197
|
+
"2020-02-15":10,
|
198
|
+
"2020-02-16":0,
|
199
|
+
"2020-02-17":0,
|
200
|
+
"2020-02-18":0,
|
201
|
+
"2020-02-19":0,
|
202
|
+
"2020-02-20":0,
|
203
|
+
"2020-02-21":0,
|
204
|
+
"2020-02-22":0,
|
205
|
+
"2020-02-23":0,
|
206
|
+
"2020-02-24":0,
|
207
|
+
"2020-02-25":1,
|
208
|
+
"2020-02-26":39,
|
209
|
+
"2020-02-27":0,
|
210
|
+
"2020-02-28":0
|
211
|
+
},
|
212
|
+
"unitOfMeasure":"apiRequestsCount",
|
213
|
+
"sys":{
|
214
|
+
"type":"OrganizationPeriodicUsage",
|
215
|
+
"id":"usage-cda-org_id-2020-01-15-2020-02-28",
|
216
|
+
"organization":{
|
217
|
+
"sys":{
|
218
|
+
"type":"Link",
|
219
|
+
"linkType":"Organization",
|
220
|
+
"id":"org_id"
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
224
|
+
"dateRange":{
|
225
|
+
"startAt":"2020-01-15",
|
226
|
+
"endAt":"2020-02-28"
|
227
|
+
}
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"metric":"gql",
|
231
|
+
"usage":51,
|
232
|
+
"usagePerDay":{
|
233
|
+
"2020-01-15":1,
|
234
|
+
"2020-01-16":1,
|
235
|
+
"2020-01-17":1,
|
236
|
+
"2020-01-18":1,
|
237
|
+
"2020-01-19":1,
|
238
|
+
"2020-01-20":1,
|
239
|
+
"2020-01-21":1,
|
240
|
+
"2020-01-22":1,
|
241
|
+
"2020-01-23":1,
|
242
|
+
"2020-01-24":1,
|
243
|
+
"2020-01-25":1,
|
244
|
+
"2020-01-26":1,
|
245
|
+
"2020-01-27":1,
|
246
|
+
"2020-01-28":2,
|
247
|
+
"2020-01-29":6,
|
248
|
+
"2020-01-30":1,
|
249
|
+
"2020-01-31":1,
|
250
|
+
"2020-02-01":1,
|
251
|
+
"2020-02-02":1,
|
252
|
+
"2020-02-03":1,
|
253
|
+
"2020-02-04":1,
|
254
|
+
"2020-02-05":1,
|
255
|
+
"2020-02-06":1,
|
256
|
+
"2020-02-07":1,
|
257
|
+
"2020-02-08":1,
|
258
|
+
"2020-02-09":1,
|
259
|
+
"2020-02-10":1,
|
260
|
+
"2020-02-11":1,
|
261
|
+
"2020-02-12":1,
|
262
|
+
"2020-02-13":1,
|
263
|
+
"2020-02-14":1,
|
264
|
+
"2020-02-15":2,
|
265
|
+
"2020-02-16":1,
|
266
|
+
"2020-02-17":1,
|
267
|
+
"2020-02-18":1,
|
268
|
+
"2020-02-19":1,
|
269
|
+
"2020-02-20":1,
|
270
|
+
"2020-02-21":1,
|
271
|
+
"2020-02-22":1,
|
272
|
+
"2020-02-23":1,
|
273
|
+
"2020-02-24":1,
|
274
|
+
"2020-02-25":1,
|
275
|
+
"2020-02-26":0,
|
276
|
+
"2020-02-27":1,
|
277
|
+
"2020-02-28":1
|
278
|
+
},
|
279
|
+
"unitOfMeasure":"apiRequestsCount",
|
280
|
+
"sys":{
|
281
|
+
"type":"OrganizationPeriodicUsage",
|
282
|
+
"id":"usage-gql-org_id-2020-01-15-2020-02-28",
|
283
|
+
"organization":{
|
284
|
+
"sys":{
|
285
|
+
"type":"Link",
|
286
|
+
"linkType":"Organization",
|
287
|
+
"id":"org_id"
|
288
|
+
}
|
289
|
+
}
|
290
|
+
},
|
291
|
+
"dateRange":{
|
292
|
+
"startAt":"2020-01-15",
|
293
|
+
"endAt":"2020-02-28"
|
294
|
+
}
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"metric":"cpa",
|
298
|
+
"usage":1,
|
299
|
+
"usagePerDay":{
|
300
|
+
"2020-01-15":0,
|
301
|
+
"2020-01-16":0,
|
302
|
+
"2020-01-17":0,
|
303
|
+
"2020-01-18":0,
|
304
|
+
"2020-01-19":0,
|
305
|
+
"2020-01-20":0,
|
306
|
+
"2020-01-21":0,
|
307
|
+
"2020-01-22":0,
|
308
|
+
"2020-01-23":0,
|
309
|
+
"2020-01-24":0,
|
310
|
+
"2020-01-25":0,
|
311
|
+
"2020-01-26":0,
|
312
|
+
"2020-01-27":0,
|
313
|
+
"2020-01-28":0,
|
314
|
+
"2020-01-29":0,
|
315
|
+
"2020-01-30":0,
|
316
|
+
"2020-01-31":0,
|
317
|
+
"2020-02-01":0,
|
318
|
+
"2020-02-02":0,
|
319
|
+
"2020-02-03":1,
|
320
|
+
"2020-02-04":0,
|
321
|
+
"2020-02-05":0,
|
322
|
+
"2020-02-06":0,
|
323
|
+
"2020-02-07":0,
|
324
|
+
"2020-02-08":0,
|
325
|
+
"2020-02-09":0,
|
326
|
+
"2020-02-10":0,
|
327
|
+
"2020-02-11":0,
|
328
|
+
"2020-02-12":0,
|
329
|
+
"2020-02-13":0,
|
330
|
+
"2020-02-14":0,
|
331
|
+
"2020-02-15":0,
|
332
|
+
"2020-02-16":0,
|
333
|
+
"2020-02-17":0,
|
334
|
+
"2020-02-18":0,
|
335
|
+
"2020-02-19":0,
|
336
|
+
"2020-02-20":0,
|
337
|
+
"2020-02-21":0,
|
338
|
+
"2020-02-22":0,
|
339
|
+
"2020-02-23":0,
|
340
|
+
"2020-02-24":0,
|
341
|
+
"2020-02-25":0,
|
342
|
+
"2020-02-26":0,
|
343
|
+
"2020-02-27":0,
|
344
|
+
"2020-02-28":0
|
345
|
+
},
|
346
|
+
"unitOfMeasure":"apiRequestsCount",
|
347
|
+
"sys":{
|
348
|
+
"type":"OrganizationPeriodicUsage",
|
349
|
+
"id":"usage-cpa-org_id-2020-01-15-2020-02-28",
|
350
|
+
"organization":{
|
351
|
+
"sys":{
|
352
|
+
"type":"Link",
|
353
|
+
"linkType":"Organization",
|
354
|
+
"id":"org_id"
|
355
|
+
}
|
356
|
+
}
|
357
|
+
},
|
358
|
+
"dateRange":{
|
359
|
+
"startAt":"2020-01-15",
|
360
|
+
"endAt":"2020-02-28"
|
361
|
+
}
|
362
|
+
}
|
363
|
+
]
|
364
|
+
}
|
365
|
+
|
366
|
+
http_version:
|
367
|
+
recorded_at: Fri, 28 Feb 2020 14:42:27 GMT
|
368
|
+
recorded_with: VCR 4.0.0
|