Compartir a través de


ApplicationInsightsComponentResource.PutAnalyticsItemAsync Método

Definición

Agrega o Novedades un elemento de Análisis específico dentro de un componente de Application Insights.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item
  • IdAnalyticsItems_Put de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem>> PutAnalyticsItemAsync (Azure.ResourceManager.ApplicationInsights.Models.ItemScopePath scopePath, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem itemProperties, bool? overrideItem = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PutAnalyticsItemAsync : Azure.ResourceManager.ApplicationInsights.Models.ItemScopePath * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem>>
override this.PutAnalyticsItemAsync : Azure.ResourceManager.ApplicationInsights.Models.ItemScopePath * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentAnalyticsItem>>
Public Overridable Function PutAnalyticsItemAsync (scopePath As ItemScopePath, itemProperties As ApplicationInsightsComponentAnalyticsItem, Optional overrideItem As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentAnalyticsItem))

Parámetros

scopePath
ItemScopePath

Enumeración que indica si esta definición de elemento es propiedad de un usuario específico o se comparte entre todos los usuarios con acceso al componente de Application Insights.

itemProperties
ApplicationInsightsComponentAnalyticsItem

Propiedades que deben especificarse para crear un nuevo elemento y agregarlo a un componente de Application Insights.

overrideItem
Nullable<Boolean>

Marca que indica si se va a forzar o no guardar un elemento. Esto permite invalidar un elemento si ya existe.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

itemProperties es null.

Se aplica a