-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathoutput.txt
More file actions
80 lines (71 loc) · 1.86 KB
/
output.txt
File metadata and controls
80 lines (71 loc) · 1.86 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
>>> [CLI] bundle deploy
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/alerts-basic-[UNIQUE_NAME]/default/files...
Deploying resources...
Updating deployment state...
Deployment complete!
>>> [CLI] alerts-v2 get-alert [ALERT_ID]
{
"display_name": "My alert",
"lifecycle_state": "ACTIVE",
"custom_summary": "My alert",
"evaluation": {
"comparison_operator": "EQUAL",
"notification": {
"notify_on_ok": false,
"retrigger_seconds": 1
},
"source": {
"aggregation": "MAX",
"display": "1",
"name": "1"
},
"threshold": {
"value": {
"double_value": 2
}
}
},
"query_text": "select 2",
"schedule": {
"pause_status": "UNPAUSED",
"quartz_cron_schedule": "44 19 */1 * * ?",
"timezone_id": "Europe/Amsterdam"
},
"warehouse_id": "[TEST_DEFAULT_WAREHOUSE_ID]"
}
=== assert that permissions are applied
>>> [CLI] permissions get alertsv2 [ALERT_ID]
{
"user_name": "deco-test-user@databricks.com",
"all_permissions": [
{
"inherited": false,
"permission_level": "CAN_MANAGE"
}
]
}
=== assert that no permanent drift happens
>>> [CLI] bundle plan
Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
delete resources.alerts.myalert
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/alerts-basic-[UNIQUE_NAME]/default
Deleting files...
Destroy complete!
>>> [CLI] alerts-v2 get-alert [ALERT_ID]
{
"display_name": "My alert",
"lifecycle_state": "DELETED"
}
>>> [CLI] bundle summary
Name: alerts-basic-[UNIQUE_NAME]
Target: default
Workspace:
User: [USERNAME]
Path: /Workspace/Users/[USERNAME]/.bundle/alerts-basic-[UNIQUE_NAME]/default
Resources:
Alerts:
myalert:
Name: My alert
URL: (not deployed)