ApplicationInsightsComponentResource.AddOrUpdateAnalyticsItem 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.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item
- Operation Id: AnalyticsItems_Put
- Default Api Version: 2015-05-01
public virtual Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem> AddOrUpdateAnalyticsItem (Azure.ResourceManager.ApplicationInsights.Models.AnalyticsItemScopePath scopePath, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem itemProperties, bool? overrideItem = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddOrUpdateAnalyticsItem : Azure.ResourceManager.ApplicationInsights.Models.AnalyticsItemScopePath * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem>
override this.AddOrUpdateAnalyticsItem : Azure.ResourceManager.ApplicationInsights.Models.AnalyticsItemScopePath * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem * Nullable<bool> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem>
Public Overridable Function AddOrUpdateAnalyticsItem (scopePath As AnalyticsItemScopePath, itemProperties As ApplicationInsightsComponentAnalyticsItem, Optional overrideItem As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ApplicationInsightsComponentAnalyticsItem)
Parameters
- scopePath
- AnalyticsItemScopePath
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.
- 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 to use.
Returns
Exceptions
itemProperties
is null.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기