Freigeben über


KpiResourceFormatCollection.CreateOrUpdate Methode

Definition

Erstellt einen KPI oder aktualisiert einen vorhandenen KPI im Hub.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/kpi/{kpiName}
  • Vorgang IdKpi_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.KpiResourceFormatResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string kpiName, Azure.ResourceManager.CustomerInsights.KpiResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.KpiResourceFormatData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.KpiResourceFormatResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.KpiResourceFormatData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.KpiResourceFormatResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, kpiName As String, data As KpiResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of KpiResourceFormatResource)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

kpiName
String

Der Name des KPI.

data
KpiResourceFormatData

Parameter, die für den KPI-Vorgang zum Erstellen/Aktualisieren bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

kpiName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

kpiName oder data ist NULL.

Gilt für: