Share via


MockableStreamAnalyticsSubscriptionResource.TestQuerySubscription Method

Definition

Test the Stream Analytics query on a sample input.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testQuery
  • Operation Id: Subscriptions_TestQuery
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult> TestQuerySubscription (Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestQuery testQuery, System.Threading.CancellationToken cancellationToken = default);
abstract member TestQuerySubscription : Azure.WaitUntil * Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestQuery * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult>
override this.TestQuerySubscription : Azure.WaitUntil * Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestQuery * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult>
Public Overridable Function TestQuerySubscription (waitUntil As WaitUntil, location As AzureLocation, testQuery As StreamAnalyticsTestQuery, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StreamAnalyticsQueryTestingResult)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

location
AzureLocation

The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/.

testQuery
StreamAnalyticsTestQuery

The query testing object that defines the input, output, and transformation for the query testing.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

testQuery is null.

Applies to