EventSources interface

Interface representing a EventSources.

Methods

createOrUpdate(string, string, string, EventSourceCreateOrUpdateParametersUnion, EventSourcesCreateOrUpdateOptionalParams)

Create or update an event source under the specified environment.

delete(string, string, string, EventSourcesDeleteOptionalParams)

Deletes the event source with the specified name in the specified subscription, resource group, and environment

get(string, string, string, EventSourcesGetOptionalParams)

Gets the event source with the specified name in the specified environment.

listByEnvironment(string, string, EventSourcesListByEnvironmentOptionalParams)

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

update(string, string, string, EventSourceUpdateParametersUnion, EventSourcesUpdateOptionalParams)

Updates the event source with the specified name in the specified subscription, resource group, and environment.

Method Details

createOrUpdate(string, string, string, EventSourceCreateOrUpdateParametersUnion, EventSourcesCreateOrUpdateOptionalParams)

Create or update an event source under the specified environment.

function createOrUpdate(resourceGroupName: string, environmentName: string, eventSourceName: string, parameters: EventSourceCreateOrUpdateParametersUnion, options?: EventSourcesCreateOrUpdateOptionalParams): Promise<EventSourceResourceUnion>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

environmentName

string

The name of the Time Series Insights environment associated with the specified resource group.

eventSourceName

string

Name of the event source.

parameters
EventSourceCreateOrUpdateParametersUnion

Parameters for creating an event source resource.

options
EventSourcesCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, string, EventSourcesDeleteOptionalParams)

Deletes the event source with the specified name in the specified subscription, resource group, and environment

function delete(resourceGroupName: string, environmentName: string, eventSourceName: string, options?: EventSourcesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

environmentName

string

The name of the Time Series Insights environment associated with the specified resource group.

eventSourceName

string

The name of the Time Series Insights event source associated with the specified environment.

options
EventSourcesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, EventSourcesGetOptionalParams)

Gets the event source with the specified name in the specified environment.

function get(resourceGroupName: string, environmentName: string, eventSourceName: string, options?: EventSourcesGetOptionalParams): Promise<EventSourceResourceUnion>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

environmentName

string

The name of the Time Series Insights environment associated with the specified resource group.

eventSourceName

string

The name of the Time Series Insights event source associated with the specified environment.

options
EventSourcesGetOptionalParams

The options parameters.

Returns

listByEnvironment(string, string, EventSourcesListByEnvironmentOptionalParams)

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

function listByEnvironment(resourceGroupName: string, environmentName: string, options?: EventSourcesListByEnvironmentOptionalParams): Promise<EventSourceListResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

environmentName

string

The name of the Time Series Insights environment associated with the specified resource group.

options
EventSourcesListByEnvironmentOptionalParams

The options parameters.

Returns

update(string, string, string, EventSourceUpdateParametersUnion, EventSourcesUpdateOptionalParams)

Updates the event source with the specified name in the specified subscription, resource group, and environment.

function update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: EventSourceUpdateParametersUnion, options?: EventSourcesUpdateOptionalParams): Promise<EventSourceResourceUnion>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

environmentName

string

The name of the Time Series Insights environment associated with the specified resource group.

eventSourceName

string

The name of the Time Series Insights event source associated with the specified environment.

eventSourceUpdateParameters
EventSourceUpdateParametersUnion

Request object that contains the updated information for the event source.

options
EventSourcesUpdateOptionalParams

The options parameters.

Returns