forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CD-2] Added cb_acdc_call_stats for Kazoo 4.1 (2600hz#3948)
- Loading branch information
1 parent
87eaa4c
commit f2cca7c
Showing
9 changed files
with
584 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Acdc Call Stats | ||
|
||
#### About Acdc Call Stats | ||
|
||
#### Schema | ||
|
||
|
||
|
||
#### Fetch | ||
|
||
> GET /v2/accounts/{ACCOUNT_ID}/acdc_call_stats | ||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/acdc_call_stats | ||
``` | ||
|
||
Get a time range of ACDC Call Stats (using gregorian seconds for timestamps): | ||
|
||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/acdc_call_stats?created_from={FROM_TIMESTAMP}&created_to={TO_TIMESTAMP} | ||
``` | ||
|
||
Get ACDC Call Stats as CSV: | ||
|
||
```shell | ||
curl -v -X GET \ | ||
-H "Accept: text/csv" \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/acdc_call_stats | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### Acdc Call Stats | ||
|
||
#### About Acdc Call Stats | ||
|
||
#### Schema | ||
|
||
|
||
|
||
#### Fetch | ||
|
||
> GET /v2/accounts/{ACCOUNT_ID}/acdc_call_stats | ||
```shell | ||
curl -v -X GET \ | ||
-H "X-Auth-Token: {AUTH_TOKEN}" \ | ||
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/acdc_call_stats | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
applications/crossbar/priv/couchdb/schemas/system_config.crossbar.acdc_call_stats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "system_config.crossbar.acdc_call_stats", | ||
"description": "Schema for crossbar.acdc_call_stats system_config", | ||
"properties": { | ||
"maximum_bulk": { | ||
"default": 50, | ||
"description": "The maximum number of call stats to load in a request", | ||
"type": "integer" | ||
}, | ||
"maximum_range": { | ||
"default": 2682000, | ||
"description": "The maximum number of seconds between the start and end time of a call stats request", | ||
"type": "integer" | ||
} | ||
}, | ||
"type": "object" | ||
} |
Oops, something went wrong.