event_sources
Creates, updates, deletes, gets or lists a event_sources
resource.
Overview
Name | event_sources |
Type | Resource |
Id | azure.time_series_insights.event_sources |
Fields
Name | Datatype | Description |
---|---|---|
kind | string | The kind of the event source. |
location | string | Resource location |
tags | object | Resource tags |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentName, eventSourceName, resourceGroupName, subscriptionId | Gets the event source with the specified name in the specified environment. |
list_by_environment | SELECT | environmentName, resourceGroupName, subscriptionId | Lists all the available event sources associated with the subscription and within the specified resource group and environment. |
create_or_update | INSERT | environmentName, eventSourceName, resourceGroupName, subscriptionId, data__kind | Create or update an event source under the specified environment. |
delete | DELETE | environmentName, eventSourceName, resourceGroupName, subscriptionId | Deletes the event source with the specified name in the specified subscription, resource group, and environment |
update | UPDATE | environmentName, eventSourceName, resourceGroupName, subscriptionId, data__kind | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: localTimestamp
value:
- name: format
value: string
- name: timeZoneOffset
value:
- name: propertyName
value: string
- name: location
value: string
- name: tags
value: object
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 }}';