Interface EventSources


public interface EventSources
Resource collection API of EventSources.
  • Method Details

    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<EventSourceResource> createOrUpdateWithResponse(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters, com.azure.core.util.Context context)
      Create or update an event source under the specified environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - Name of the event source.
      parameters - Parameters for creating an event source resource.
      context - The context to associate with this operation.
      Returns:
      an environment receives data from one or more event sources along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      EventSourceResource createOrUpdate(String resourceGroupName, String environmentName, String eventSourceName, EventSourceCreateOrUpdateParameters parameters)
      Create or update an event source under the specified environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - Name of the event source.
      parameters - Parameters for creating an event source resource.
      Returns:
      an environment receives data from one or more event sources.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<EventSourceResource> getWithResponse(String resourceGroupName, String environmentName, String eventSourceName, com.azure.core.util.Context context)
      Gets the event source with the specified name in the specified environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      context - The context to associate with this operation.
      Returns:
      the event source with the specified name in the specified environment along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      EventSourceResource get(String resourceGroupName, String environmentName, String eventSourceName)
      Gets the event source with the specified name in the specified environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      Returns:
      the event source with the specified name in the specified environment.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<EventSourceResource> updateWithResponse(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters, com.azure.core.util.Context context)
      Updates the event source with the specified name in the specified subscription, resource group, and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      eventSourceUpdateParameters - Request object that contains the updated information for the event source.
      context - The context to associate with this operation.
      Returns:
      an environment receives data from one or more event sources along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      EventSourceResource update(String resourceGroupName, String environmentName, String eventSourceName, EventSourceUpdateParameters eventSourceUpdateParameters)
      Updates the event source with the specified name in the specified subscription, resource group, and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      eventSourceUpdateParameters - Request object that contains the updated information for the event source.
      Returns:
      an environment receives data from one or more event sources.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String environmentName, String eventSourceName, com.azure.core.util.Context context)
      Deletes the event source with the specified name in the specified subscription, resource group, and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String environmentName, String eventSourceName)
      Deletes the event source with the specified name in the specified subscription, resource group, and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      eventSourceName - The name of the Time Series Insights event source associated with the specified environment.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByEnvironmentWithResponse

      com.azure.core.http.rest.Response<EventSourceListResponse> listByEnvironmentWithResponse(String resourceGroupName, String environmentName, com.azure.core.util.Context context)
      Lists all the available event sources associated with the subscription and within the specified resource group and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      context - The context to associate with this operation.
      Returns:
      the response of the List EventSources operation along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByEnvironment

      EventSourceListResponse listByEnvironment(String resourceGroupName, String environmentName)
      Lists all the available event sources associated with the subscription and within the specified resource group and environment.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      environmentName - The name of the Time Series Insights environment associated with the specified resource group.
      Returns:
      the response of the List EventSources operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.