AnalyticsItemsOperationsExtensions.PutAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds or Updates a specific Analytics Item within an Application Insights component.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem> PutAsync (this Microsoft.Azure.Management.ApplicationInsights.Management.IAnalyticsItemsOperations operations, string resourceGroupName, string resourceName, string scopePath, Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem itemProperties, bool? overrideItem = default, System.Threading.CancellationToken cancellationToken = default);
static member PutAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IAnalyticsItemsOperations * string * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponentAnalyticsItem>
<Extension()>
Public Function PutAsync (operations As IAnalyticsItemsOperations, resourceGroupName As String, resourceName As String, scopePath As String, itemProperties As ApplicationInsightsComponentAnalyticsItem, Optional overrideItem As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApplicationInsightsComponentAnalyticsItem)
Parameters
- operations
- IAnalyticsItemsOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group. The name is case insensitive.
- resourceName
- String
The name of the Application Insights component resource.
- scopePath
- String
Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. Possible values include: 'analyticsItems', 'myanalyticsItems'
- itemProperties
- ApplicationInsightsComponentAnalyticsItem
Properties that need to be specified to create a new item and add it to an Application Insights component.
Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET