This repository was archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathanonymize_query.json
More file actions
executable file
·52 lines (52 loc) · 2.09 KB
/
anonymize_query.json
File metadata and controls
executable file
·52 lines (52 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"script":{
"released":"2021-01-01",
"license":"Licensed under the Apache License, Version 2.0",
"copyright":"Copyright 2020 Google LLC",
"icon":"waves",
"title":"BigQuery Anonymize Query",
"description":"Runs a query and anynonamizes all rows. Used to create sample table for dashboards.",
"instructions":[
"Ensure you have user access to both datasets.",
"Provide the source project, dataset and query.",
"Provide the destination project, dataset, and table."
],
"image":"https://google.github.io/starthinker/static/anonymize_dataset.png",
"test":"https://github.com/google/starthinker/blob/master/tests/anonymize.json",
"from":["bigquery"],
"to":["bigquery"],
"pitches":[
"Create anonymous tables for demos.",
"Anonymize dashboard data."
],
"impacts":{
"spend optimization":0,
"spend growth":0,
"time savings":100,
"account health":0,
"csat improvement":100
},
"authors":["kenjora@google.com"]
},
"setup":{
"day":[],
"hour":[]
},
"tasks":[
{ "anonymize":{
"auth":{"field":{ "name":"auth_read", "kind":"authentication", "order":0, "default":"service", "description":"Credentials used." }},
"bigquery":{
"from":{
"project":{"field":{ "name":"from_project", "kind":"string", "order":1, "description":"Original project to read from." }},
"dataset":{"field":{ "name":"from_dataset", "kind":"string", "order":2, "description":"Original dataset to read from." }},
"query":{"field":{ "name":"from_query", "kind":"string", "order":3, "description":"Query to read data." }}
},
"to":{
"project":{"field":{ "name":"to_project", "kind":"string", "order":4, "default":null, "description":"Anonymous data will be writen to." }},
"dataset":{"field":{ "name":"to_dataset", "kind":"string", "order":5, "description":"Anonymous data will be writen to." }},
"table":{"field":{ "name":"to_table", "kind":"string", "order":6, "description":"Anonymous data will be writen to." }}
}
}
}}
]
}