Skip to main content

event_sources

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

Overview

Nameevent_sources
TypeResource
Idazure.time_series_insights.event_sources

Fields

NameDatatypeDescription
kindstringThe kind of the event source.
locationstringResource location
tagsobjectResource tags

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, eventSourceName, resourceGroupName, subscriptionIdGets the event source with the specified name in the specified environment.
list_by_environmentSELECTenvironmentName, resourceGroupName, subscriptionIdLists all the available event sources associated with the subscription and within the specified resource group and environment.
create_or_updateINSERTenvironmentName, eventSourceName, resourceGroupName, subscriptionId, data__kindCreate or update an event source under the specified environment.
deleteDELETEenvironmentName, eventSourceName, resourceGroupName, subscriptionIdDeletes the event source with the specified name in the specified subscription, resource group, and environment
updateUPDATEenvironmentName, eventSourceName, resourceGroupName, subscriptionId, data__kindUpdates the event source with the specified name in the specified subscription, resource group, and environment.

SELECT examples

Lists all the available event sources associated with the subscription and within the specified resource group and environment.

SELECT
kind,
location,
tags
FROM azure.time_series_insights.event_sources
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.time_series_insights.event_sources (
environmentName,
eventSourceName,
resourceGroupName,
subscriptionId,
data__kind,
kind,
localTimestamp,
location,
tags
)
SELECT
'{{ environmentName }}',
'{{ eventSourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__kind }}',
'{{ kind }}',
'{{ localTimestamp }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a event_sources resource.

/*+ update */
UPDATE azure.time_series_insights.event_sources
SET
kind = '{{ kind }}',
tags = '{{ tags }}'
WHERE
environmentName = '{{ environmentName }}'
AND eventSourceName = '{{ eventSourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND data__kind = '{{ data__kind }}';

DELETE example

Deletes the specified event_sources resource.

/*+ delete */
DELETE FROM azure.time_series_insights.event_sources
WHERE environmentName = '{{ environmentName }}'
AND eventSourceName = '{{ eventSourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';