Compartilhar via


NewRelicMonitorResource.GetMetricRules Método

Definição

Obter regras de métrica

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/getMetricRules
  • IdMonitors_GetMetricRules de operação
public virtual Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules> GetMetricRules (Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMetricRules : Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules>
override this.GetMetricRules : Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules>
Public Overridable Function GetMetricRules (content As NewRelicMetricsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NewRelicObservabilityMetricRules)

Parâmetros

content
NewRelicMetricsContent

Os detalhes da solicitação obter métricas status.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a