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

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

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

문제 신고

슬랙 메시지를 보내세요

|View as Markdown (English)

작업 식별자는 newrelic.notification.sendSlack입니다.

대상과 통합되어 채널에 Slack 메시지를 전송합니다.

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

입력

유형

설명

예시

목적지 ID

문자열

필수 항목입니다.

뉴렐릭 목적지와 연결된 DestinationId입니다. 목적지를 구성하고 ID를 검색하려면

NerdGraph 튜토리얼: 알림 목적지

를 참조하고, 자세한 내용은

목적지

를 참조하십시오.

123e4567-e89b-12d3-a456-426614174000

텍스트

문자열

선택 사항.

보낼 텍스트 메시지입니다.

text

또는

blocks

중 하나만 제공하고 둘 다 제공하지는 마십시오.

Hello from Workflow Automation

차단

목록

선택 사항.

Slack Block Kit 요소의 JSON 어레이입니다.

지원되는 블록 유형

을 참조하십시오.

text

또는

blocks

중 하나만 제공하고 둘 다 제공하지는 마십시오.

[{"type":"section","text":{"type":"mrkdwn","text":"*Hello*"}},{"type":"divider"}]

채널

문자열

필수 항목입니다.

메시지를 보낼 채널 이름입니다.

help-nomad

스레드

문자열

선택 사항.

스레드에 답글을 게시하는 데 사용되는 상위 메시지의 타임스탬프입니다.

1770206770.789949

selectors

목록

선택 사항.

출력에서 특정 필드를 추출하기 위한 선택기입니다.

[{"name": "success", "expression": ".success"}]

지원되는 블록 유형

sendSlack 작업은 두 가지 블록 유형만 지원하며 유효성 검사 중 다른 모든 유형을 거부합니다.

블록 유형

설명

허용되는 키

예시

section

텍스트를 렌더링하는 유일한 블록 유형입니다.

text

객체의

type

은(는)

mrkdwn

또는

plain_text

이어야 하며,

text

은(는) 비어 있지 않은 문자열이어야 합니다.

type

,

text

{"type":"section","text":{"type":"mrkdwn","text":"*Service:* checkout-api"}}

divider

시각적인 수평선을 렌더링합니다.

type

{"type":"divider"}

자세한 내용은 Slack Block Kit 참조 및 Slack Block Kit Builder를 참조하십시오.

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

산출

유형

예시

success

부울

true/false

sessionId

문자열

"sessionId": "7fa97f26-3791-492e-a39b-53793163dfb9"

errorMessage

문자열

"Channel is a required field in the notification send"

워크플로우 예시: 텍스트 메시지

name: slack_notification_workflow
description: This is a test workflow to test slack notification send action
steps:
- name: SendMessageUsingSlackChannel
type: action
action: newrelic.notification.sendSlack
version: 1
inputs:
destinationId: xxxx-ed6f-xxxx-bc7d-b7ea982xxxx
text: Hi , Testing notifcation api using slack channel name
channel: test-channel-workflow

워크플로우 예시: Block Kit 블록

name: slack_notification_workflow
description: This is a test workflow to test slack notification send action
steps:
- name: sendSlackBlocks
type: action
action: newrelic.notification.sendSlack
version: '1'
inputs:
destinationId: xxxx-ed6f-xxxx-bc7d-b7ea982xxxx
channel: test-channel-workflow
blocks:
- type: section
text:
type: mrkdwn
text: "Investigation complete"
- type: divider
- type: section
text:
type: plain_text
text: "All systems normal"
Copyright © 2026 New Relic Inc.

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