customer_events
Creates, updates, deletes, gets or lists a customer_events
resource.
Overview
Name | customer_events |
Type | Resource |
Id | azure_extras.test_base.customer_events |
Fields
- vw_customer_events
- customer_events
Name | Datatype | Description |
---|---|---|
customerEventName | text | field from the properties object |
event_name | text | field from the properties object |
receivers | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
testBaseAccountName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | A notification events subscribed to be received by customer. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customerEventName, resourceGroupName, subscriptionId, testBaseAccountName | Gets a Test Base CustomerEvent. |
list_by_test_base_account | SELECT | resourceGroupName, subscriptionId, testBaseAccountName | Lists all notification events subscribed under a Test Base Account. |
create | INSERT | customerEventName, resourceGroupName, subscriptionId, testBaseAccountName | Create or replace a Test Base Customer Event. |
delete | DELETE | customerEventName, resourceGroupName, subscriptionId, testBaseAccountName | Deletes a Test Base Customer Event. |
SELECT
examples
Lists all notification events subscribed under a Test Base Account.
- vw_customer_events
- customer_events
SELECT
customerEventName,
event_name,
receivers,
resourceGroupName,
subscriptionId,
testBaseAccountName
FROM azure_extras.test_base.vw_customer_events
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
SELECT
properties
FROM azure_extras.test_base.customer_events
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new customer_events
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.test_base.customer_events (
customerEventName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ customerEventName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: eventName
value: string
- name: receivers
value:
- - name: receiverType
value: string
- name: receiverValue
value:
- name: userObjectReceiverValue
value:
- name: userObjectIds
value:
- string
- name: subscriptionReceiverValue
value:
- name: subscriptionId
value: string
- name: subscriptionName
value: string
- name: role
value: string
- name: distributionGroupListReceiverValue
value:
- name: distributionGroups
value:
- string
DELETE
example
Deletes the specified customer_events
resource.
/*+ delete */
DELETE FROM azure_extras.test_base.customer_events
WHERE customerEventName = '{{ customerEventName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND testBaseAccountName = '{{ testBaseAccountName }}';