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

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

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

뮤팅 규칙 가져오기

|View as Markdown (English)

작업 식별자는 newrelic.alerts.getMutingRule입니다.

조건 그룹 및 일정을 포함한 단일 뮤팅 규칙의 세부 정보를 조회합니다.

다음 표는 이 작업에 사용할 수 있는 모든 입력 필드를 설명합니다.

입력

유형

설명

예시

회계처리

Int

필수 항목입니다.

뮤팅 규칙을 소유한 뉴렐릭 계정입니다.

123456

id

문자열

필수 항목입니다.

조회할 뮤팅 규칙의 ID입니다.

"7654321"

selectors

목록

선택 사항.

응답에서 값을 추출하기 위한 JQ 선택자입니다.

selectors:
- name: mutingRuleName
expression: ".data.actor.account.alerts.mutingRule.name"

다음 표는 이 작업에서 반환된 모든 출력 필드를 설명합니다.

산출

유형

설명

success

부울

true

단계가 오류 없이 실행되었을 때.

errorMessage

문자열

실패 시 오류 메시지. 성공 시

null

입니다.

data

지도

NerdGraph 응답. selectors을 사용하여 .data.actor.account.alerts.mutingRule에서 필드를 추출합니다.

{
"data": {
"actor": {
"account": {
"alerts": {
"mutingRule": {
"id": "7654321",
"name": "Deploy window - checkout service",
"enabled": true,
"status": "SCHEDULED",
"accountId": 123456,
"condition": {
"operator": "AND",
"conditions": [
{
"attribute": "policyName",
"operator": "EQUALS",
"values": ["Checkout Service"]
}
]
},
"schedule": {
"startTime": "2026-09-01T02:00:00",
"endTime": "2026-09-01T04:00:00",
"timeZone": "America/Los_Angeles",
"repeat": "WEEKLY",
"weeklyRepeatDays": ["SATURDAY", "SUNDAY"]
}
}
}
}
}
}
}

다음 예제는 뮤팅 규칙의 현재 설정을 가져옵니다.

워크플로 예

name: get_muting_rule
description: Get a muting rule
steps:
- name: getMutingRule
type: action
action: newrelic.alerts.getMutingRule
version: 1
inputs:
accountId: ${{ .workflowInputs.accountId }}
id: ${{ .workflowInputs.mutingRuleId }}
selectors:
- name: mutingRuleName
expression: ".data.actor.account.alerts.mutingRule.name"
next: end
Copyright © 2026 New Relic Inc.

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