• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

IncrementCounter(.NET 에이전트 API)

통사론

NewRelic.Api.Agent.NewRelic.IncrementCounter(string $metric_name)

맞춤 측정항목에 대한 카운터를 1씩 증가시킵니다.

요구 사항

모든 에이전트 버전과 호환됩니다.

모든 앱 유형과 호환됩니다.

설명

사용자 정의 메트릭 에 대한 카운터를 1만큼 증가시키십시오. 이러한 사용자 정의 메트릭을 보려면 쿼리 빌더 를 사용하여 메트릭을 검색하고 사용자 정의 가능한 차트를 만드십시오. RecordMetric()RecordResponseTimeMetric() 도 참조하십시오.

중요

맞춤 측정항목을 만들 때 Custom/ 로 이름을 시작합니다(예: Custom/MyMetric ). 이름 지정에 대한 자세한 내용은 사용자 정의 메트릭 수집 을 참조하십시오.

매개변수

매개변수

설명

$metric_name

필수의. 증가시킬 메트릭의 이름입니다.

NewRelic.Api.Agent.NewRelic.IncrementCounter("Custom/ExampleMetric");
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.