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

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

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

문제 신고

음소거 규칙 만들기

|View as Markdown (English)

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

조건과 일치하는 위반에 대한 공지를 억제하는 새 뮤팅 규칙을 생성합니다. 선택적으로 규칙을 반복 또는 일회성 유지 관리 기간으로 예약합니다.

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

입력

유형

설명

예시

회계처리

Int

필수 항목입니다. 뮤팅 규칙을 생성할 뉴렐릭 계정입니다.

123456

이름

문자열

필수 항목입니다. 뮤팅 규칙의 이름입니다.

"Deploy window - checkout service"

활성화

부울

필수 항목입니다. 뮤팅 규칙의 활성화 여부입니다.

true

상태

지도

필수 항목입니다. 어떤 위반을 음소거할지 정의하는 조건 그룹입니다. operator (AND 또는 OR) 및 conditions — {attribute, operator, values} 항목의 목록 — 이(가) 필요합니다. attribute은(는) accountId, compoundAlertId, compoundAlertName, conditionId, conditionName, conditionType, entity.guid, nrqlEventType, nrqlQuery, policyId, policyName, product, tags.<NAME>, targetId 또는 targetName일 수 있습니다. 각 항목의 operator은(는) ANY, CONTAINS, ENDS_WITH, EQUALS, IN, IS_BLANK, IS_NOT_BLANK, NOT_CONTAINS, NOT_ENDS_WITH, NOT_EQUALS, NOT_IN, NOT_STARTS_WITH 또는 STARTS_WITH 중 하나입니다.

{"operator": "AND", "conditions": [{"attribute": "policyName", "operator": "EQUALS", "values": ["Checkout Service"]}]}

description

문자열

선택 사항. 뮤팅 규칙에 대한 자유 텍스트 설명입니다.

"Suppresses notifications during the weekly maintenance window."

actionOnMutingRuleWindowEnded

문자열

선택 사항. 뮤팅 기간이 종료되거나 규칙이 비활성화될 때 미해결 이슈에 발생하는 상황입니다. CLOSE_ISSUES_ON_INACTIVE 또는 DO_NOTHING 중 하나입니다.

"DO_NOTHING"

일정

지도

선택 사항. 규칙이 위반을 적극적으로 뮤팅하는 시간대입니다. 항상 활성화된 규칙인 경우 생략하십시오. 필드: startTime 및 endTime (오프셋이 없는 로컬 ISO 8601, 예: 2026-09-01T02:00:00), timeZone (IANA 시간대, 예: America/Los_Angeles), repeat (DAILY, WEEKLY 또는 MONTHLY, 일회성인 경우 생략), weeklyRepeatDays (repeat이(가) WEEKLY일 때 필수), 그리고 반복을 제한하기 위한 repeatCount 또는 endRepeat 중 하나입니다.

{"startTime": "2026-09-01T02:00:00", "endTime": "2026-09-01T04:00:00", "timeZone": "America/Los_Angeles", "repeat": "WEEKLY", "weeklyRepeatDays": ["SATURDAY", "SUNDAY"]}

selectors

목록

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

selectors:
- name: mutingRuleId
expression: ".data.alertsMutingRuleCreate.id"

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

산출

유형

설명

success

부울

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

errorMessage

문자열

실패 시 오류 메시지. 성공 시 null 입니다.

data

지도

NerdGraph 응답. selectors을(를) 사용하여 data에서 id, name, enabled, status 또는 accountId를 추출하십시오.

{
"data": {
"alertsMutingRuleCreate": {
"id": "7654321",
"name": "Deploy window - checkout service",
"enabled": true,
"status": "ACTIVE",
"accountId": 123456
}
}
}

다음 예제는 반복되는 주말 유지보수 기간 동안 정책에 대한 알림을 억제하는 뮤팅 규칙을 생성합니다.

워크플로 예

name: create_muting_rule
description: Create a muting rule for a maintenance window
steps:
- name: createMutingRule
type: action
action: newrelic.alerts.createMutingRule
version: 1
inputs:
accountId: ${{ .workflowInputs.accountId }}
name: "Deploy window - checkout service"
enabled: true
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"
selectors:
- name: mutingRuleId
expression: ".data.alertsMutingRuleCreate.id"
next: end
Copyright © 2026 New Relic Inc.

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