Skip to main content

customer_events

Creates, updates, deletes, gets or lists a customer_events resource.

Overview

Namecustomer_events
TypeResource
Idazure_extras.test_base.customer_events

Fields

NameDatatypeDescription
customerEventNametextfield from the properties object
event_nametextfield from the properties object
receiverstextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
testBaseAccountNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomerEventName, resourceGroupName, subscriptionId, testBaseAccountNameGets a Test Base CustomerEvent.
list_by_test_base_accountSELECTresourceGroupName, subscriptionId, testBaseAccountNameLists all notification events subscribed under a Test Base Account.
createINSERTcustomerEventName, resourceGroupName, subscriptionId, testBaseAccountNameCreate or replace a Test Base Customer Event.
deleteDELETEcustomerEventName, resourceGroupName, subscriptionId, testBaseAccountNameDeletes a Test Base Customer Event.

SELECT examples

Lists all notification events subscribed under a Test Base Account.

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new customer_events resource.

/*+ create */
INSERT INTO azure_extras.test_base.customer_events (
customerEventName,
resourceGroupName,
subscriptionId,
testBaseAccountName,
properties
)
SELECT
'{{ customerEventName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ testBaseAccountName }}',
'{{ properties }}'
;

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 }}';