Partager via


NewRelicMonitorResource.GetNewRelicObservabilityTagRuleAsync Méthode

Définition

Obtenir un tagRule

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName}
  • IdTagRules_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleResource>> GetNewRelicObservabilityTagRuleAsync (string ruleSetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNewRelicObservabilityTagRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleResource>>
override this.GetNewRelicObservabilityTagRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleResource>>
Public Overridable Function GetNewRelicObservabilityTagRuleAsync (ruleSetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NewRelicObservabilityTagRuleResource))

Paramètres

ruleSetName
String

Nom du TagRule.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

ruleSetName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

ruleSetName a la valeur null.

S’applique à