Event Sources - Get
Gets the event source with the specified name in the specified environment.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/eventSources/{eventSourceName}?api-version=2020-05-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
environment
|
path | True |
string |
The name of the Time Series Insights environment associated with the specified resource group. |
event
|
path | True |
string |
The name of the Time Series Insights event source associated with the specified environment. |
resource
|
path | True |
string |
Name of an Azure Resource group. |
subscription
|
path | True |
string |
Azure Subscription ID. |
api-version
|
query | True |
string |
Version of the API to be used with the client request. |
Responses
Name | Type | Description |
---|---|---|
200 OK | EventSourceResource: |
The event source definition was successfully retrieved and is in the response. |
Other Status Codes |
HTTP 404 (Not Found): The subscription, resource group, environment, or event source could not be found. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
GetEventHubEventSource
Sample Request
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1",
"location": "West US",
"name": "es1",
"type": "Microsoft.TimeSeriesInsights/Environments/EventSources",
"tags": {},
"kind": "Microsoft.EventHub",
"properties": {
"eventSourceResourceId": "somePathInArm",
"serviceBusNamespace": "sbn",
"consumerGroupName": "cgn",
"eventHubName": "ehn",
"keyName": "managementKey",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z",
"localTimestamp": {
"format": "TimeSpan",
"timeZoneOffset": {
"propertyName": "someEventPropertyName"
}
},
"ingressStartAt": {
"type": "EarliestAvailable"
}
}
}
Definitions
Name | Description |
---|---|
Cloud |
Contains information about an API error. |
Cloud |
Describes a particular API error with an error code and a message. |
Event |
An event source that receives its data from an Azure EventHub. |
Ingress |
The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". |
Io |
An event source that receives its data from an Azure IoTHub. |
Local |
An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. |
Local |
An enum that represents the format of the local timestamp property that needs to be set. |
Provisioning |
Provisioning state of the resource. |
Time |
An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded. |
CloudError
Contains information about an API error.
Name | Type | Description |
---|---|---|
error |
Describes a particular API error with an error code and a message. |
CloudErrorBody
Describes a particular API error with an error code and a message.
Name | Type | Description |
---|---|---|
code |
string |
An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases. |
details |
Contains nested errors that are related to this error. |
|
message |
string |
A message that describes the error in detail and provides debugging information. |
target |
string |
The target of the particular error (for example, the name of the property in error). |
EventHubEventSourceResource
An event source that receives its data from an Azure EventHub.
Name | Type | Description |
---|---|---|
creationTime |
string |
The time the resource was created. |
eventSourceResourceId |
string |
The resource id of the event source in Azure Resource Manager. |
id |
string |
Resource Id |
ingressStartAt.time |
string |
ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed. |
ingressStartAt.type |
The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". |
|
kind |
string:
Microsoft. |
The kind of the event source. |
localTimestamp |
An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. |
|
location |
string |
Resource location |
name |
string |
Resource name |
properties.consumerGroupName |
string |
The name of the event hub's consumer group that holds the partitions from which events will be read. |
properties.eventHubName |
string |
The name of the event hub. |
properties.keyName |
string |
The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub. |
properties.serviceBusNamespace |
string |
The name of the service bus that contains the event hub. |
provisioningState |
Provisioning state of the resource. |
|
tags |
object |
Resource tags |
timestampPropertyName |
string |
The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. |
type |
string |
Resource type |
IngressStartAtType
The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".
Name | Type | Description |
---|---|---|
CustomEnqueuedTime |
string |
|
EarliestAvailable |
string |
|
EventSourceCreationTime |
string |
IoTHubEventSourceResource
An event source that receives its data from an Azure IoTHub.
Name | Type | Description |
---|---|---|
creationTime |
string |
The time the resource was created. |
eventSourceResourceId |
string |
The resource id of the event source in Azure Resource Manager. |
id |
string |
Resource Id |
ingressStartAt.time |
string |
ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed. |
ingressStartAt.type |
The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". |
|
kind |
string:
Microsoft. |
The kind of the event source. |
localTimestamp |
An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events. |
|
location |
string |
Resource location |
name |
string |
Resource name |
properties.consumerGroupName |
string |
The name of the iot hub's consumer group that holds the partitions from which events will be read. |
properties.iotHubName |
string |
The name of the iot hub. |
properties.keyName |
string |
The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub. |
provisioningState |
Provisioning state of the resource. |
|
tags |
object |
Resource tags |
timestampPropertyName |
string |
The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. |
type |
string |
Resource type |
LocalTimestamp
An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
Name | Type | Description |
---|---|---|
format |
An enum that represents the format of the local timestamp property that needs to be set. |
|
timeZoneOffset |
An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded. |
LocalTimestampFormat
An enum that represents the format of the local timestamp property that needs to be set.
Name | Type | Description |
---|---|---|
Embedded |
string |
ProvisioningState
Provisioning state of the resource.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Succeeded |
string |
|
Updating |
string |
TimeZoneOffset
An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded.
Name | Type | Description |
---|---|---|
propertyName |
string |
The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00) |