-
Notifications
You must be signed in to change notification settings - Fork 3
/
optimus-plugin-predator.yaml
39 lines (39 loc) · 1.14 KB
/
optimus-plugin-predator.yaml
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
name: predator
description: Auditing and Profiling Tool for BigQuery
plugintype: hook
pluginversion: 0.1.1
image: docker.io/odpf/predator:0.1.1
entrypoint:
script: 'predator ${SUB_COMMAND} -s ${PREDATOR_URL} -u "${BQ_PROJECT}.${BQ_DATASET}.${BQ_TABLE}"'
hooktype: post
questions:
- name: FILTER
prompt: Filter expression for extracting transformation rows?
help: "for example: \nDATE(event_timestamp) >= \"{{ .DSTART|Date }}\" AND DATE(event_timestamp)
< \"{{ .DEND|Date }}\"\n"
required: false
- name: GROUP
prompt: Specify the profile/audit result grouping field (empty to not group the
result)
help: 'for example: __PARTITION__'
required: false
- name: MODE
prompt: Choose the profiling mode
default: complete
multiselect:
- complete
- incremental
required: true
defaultconfig:
- name: BQ_PROJECT
value: '{{.TASK__PROJECT}}'
- name: BQ_DATASET
value: '{{.TASK__DATASET}}'
- name: BQ_TABLE
value: '{{.TASK__TABLE}}'
- name: AUDIT_TIME
value: '{{.EXECUTION_TIME}}'
- name: PREDATOR_URL
value: '{{.GLOBAL__PREDATOR_HOST}}'
- name: SUB_COMMAND
value: profile_audit