-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add query_samples for cpd_monitoring database (#410)
Co-authored-by: Yuu Ohmura <[email protected]>
- Loading branch information
Showing
4 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This document is a list of query samples for each tables of cdp_monitoring database. | ||
|
||
| # | file | reference table | description | result | | ||
|----|----|----|----|----| | ||
| 1 | [parent_segment_list.sql](parent_segment_list.sql) | cdp_monitoring.parent_segments_configuration | extract a list of Parent Segment with cretedby and updatedby | | | ||
| 2 | [entity_list_per_parent_segment.sql](entity_list_per_parent_segment.sql)| cdp_monitoring.entities| extract a list of entity per Parent Segment | ![](images/2.png) | |
7 changes: 7 additions & 0 deletions
7
scenarios/monitoring/cdp_monitoring/query_samples/entity_list_per_parent_segment.sql
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,7 @@ | ||
select | ||
JSON_EXTRACT_SCALAR(JSON_PARSE(attributes), '$.audienceId') as parent_segment_id, | ||
id, | ||
JSON_EXTRACT_SCALAR(JSON_PARSE(attributes), '$.name') as name, | ||
type | ||
from entities | ||
order by 1, 2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
scenarios/monitoring/cdp_monitoring/query_samples/parent_segment_list.sql
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,5 @@ | ||
select | ||
id, name, | ||
JSON_EXTRACT_SCALAR(JSON_PARSE(createdby), '$.name') as createdby, | ||
JSON_EXTRACT_SCALAR(JSON_PARSE(updatedby), '$.name') as updatedby | ||
from parent_segments_configuration |