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

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

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

문제 신고

이메일을 보내세요

|View as Markdown (English)

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

첨부 파일과 함께 또는 첨부 파일 없이 뉴렐릭 이메일 대상으로 이메일을 전송합니다.

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

입력

유형

설명

예시

목적지 ID

문자열

필수 항목입니다.

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

NerdGraph 튜토리얼: 알림 목적지

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

목적지

를 참조하십시오.

123e4567-e89b-12d3-a456-426614174000

주제

문자열

필수 항목입니다.

이메일 제목입니다.

workflow-notification

메시지

문자열

필수 항목입니다.

이메일로 전송할 메시지입니다.

Hello! from Workflow Automation

첨부 파일

목록

선택 사항.

선택적 첨부 파일 목록입니다.

attachment.type

열거형

필수 항목입니다.

첨부 파일의 콘텐츠 유형:

QUERY

(쿼리),

RAW

(원시 데이터) 또는

DASHBOARD_SNAPSHOT

(대시보드 스냅샷).

attachment.query

문자열

선택 사항.

QUERY

유형의 경우 NRQL 쿼리 문입니다.

SELECT * FROM Log

첨부파일.계정IDs

목록

선택 사항.

QUERY

의 경우 쿼리를 실행할 뉴렐릭 계정 ID입니다. 제공되지 않으면 워크플로우와 관련된 계정을 사용합니다.

[12345567]

attachment.format

열거형

선택 사항.

QUERY

의 경우 출력 형식입니다. 기본:

JSON

.

JSON

CSV

PSV

TSV

첨부 파일.내용

문자열

선택 사항.

RAW

의 경우, UTF-8 형식의 첨부 파일 콘텐츠입니다.

A,B,C\n1,2,3

첨부 파일 이름

문자열

선택 사항.

첨부 파일의 파일 이름입니다. 생략할 경우 이름이 자동으로 생성됩니다.

log_count.csv

attachment.dashboardGuid

문자열

(DASHBOARD_SNAPSHOT의 경우) 필수 항목입니다.

스냅샷을 생성할 대시보드의 GUID입니다. 동적 표현식을 제공하려면

JQ input

[JQ 입력]을 전환하십시오.

YOUR_DASHBOARD_GUID

attachment.dashboardParams

물체

선택 사항(DASHBOARD_SNAPSHOT의 경우).

스냅샷 설정 옵션. 모든 대시보드 기본값을 사용하려면 생략하십시오.

attachment.dashboardParams.format

열거형

선택 사항.

스냅샷의 파일 형식입니다.

PDF

PNG

attachment.dashboardParams.display

물체

선택 사항.

스냅샷 이미지의 크기입니다.

attachment.dashboardParams.display.width

정수

선택 사항.

픽셀 단위의 너비입니다. 최소:

10

, 최대:

2000

.

1920

attachment.dashboardParams.display.height

정수

선택 사항.

픽셀 단위의 높이입니다. 최소:

10

, 최대:

2000

.

1080

attachment.dashboardParams.variables

목록

선택 사항.

템플릿 변수 무시. 각 항목에는

name

및

values

목록이 필요합니다. 대시보드에 이미 정의된 변수만 유효합니다 ― 정의되지 않은 변수 이름을 전달하면 워크플로우가 실패합니다.

attachment.dashboardParams.timeWindow

물체

선택 사항.

스냅샷의 시간 범위입니다. 대시보드에 저장된 시간 범위를 사용하려면 완전히 생략하십시오.

duration

(상대적) 또는

beginTime

및

endTime

(절대 범위) 중 하나만 제공하고 ― 둘 다 제공하지는 마십시오.

attachment.dashboardParams.timeWindow.duration

정수

선택 사항.

밀리초 단위의 상대적 시간 범위입니다.

1800000

(30분)

attachment.dashboardParams.timeWindow.beginTime

정수

선택 사항.

에포크 밀리초 단위의 절대 시작 시간입니다.

endTime

와(과) 함께 사용하십시오.

1789452840316

attachment.dashboardParams.timeWindow.endTime

정수

선택 사항.

에포크 밀리초 단위의 절대 종료 시간입니다.

beginTime

와(과) 함께 사용하십시오.

1789454640316

attachment.dashboardParams.entityFilter

문자열

선택 사항.

엔티티별로 대시보드 데이터를 필터링합니다.

WHERE

키워드 없이 필터 표현식을 제공하십시오.

appName = 'Production'

selectors

목록

선택 사항.

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

[{"name": "success", "expression": ".success"},{"name": "attachments", "expression": ".response.attachments"},{"name": "sessionId", "expression": ".response.sessionId"}]

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

산출

유형

예시

success

부울

true/false

sessionId

문자열

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

errorMessage

문자열

"Channel is a required field in the notification send"

attachments

목록

[{
"blobId": "43werdtfgvhiu7y8t6r5e4398yutfgvh",
"rowCount": 100
}]

워크플로우 예시: 쿼리 첨부

name: email_testing_with_attachment
description: Workflow to test sending an email notification via NewRelic with log step
workflowInputs:
destinationId:
type: String
steps:
- name: sendEmailNotification
type: action
action: newrelic.notification.sendEmail
version: 1
inputs:
destinationId: ${{ .workflowInputs.destinationId }}
subject: "workflow notification"
message: "Workflow Email Notification Testing from local"
attachments:
- type: QUERY
query: "SELECT * FROM Log"
format: JSON
filename: "log_count.json"
selectors:
- name: success
expression: '.success'
- name: sessionId
expression: '.response.sessionId'
- name: attachments
expression: '.response.attachments'
- name: logOutput
type: action
action: newrelic.ingest.sendLogs
version: '1'
inputs:
logs:
- message: "Hello from cap check Testing staging server user2 : ${{ .steps.sendEmailNotification.outputs.result.attachments }}"

워크플로우 예시: 대시보드 스냅샷 첨부

name: email_with_dashboard_snapshot
description: Workflow to send an email with a dashboard snapshot as a PDF attachment
workflowInputs:
destinationId:
type: String
steps:
- name: sendDashboardSnapshot
type: action
action: newrelic.notification.sendEmail
version: 1
inputs:
destinationId: ${{ .workflowInputs.destinationId }}
subject: "Daily Dashboard Report"
message: "Please find today's dashboard snapshot attached."
attachments:
- type: DASHBOARD_SNAPSHOT
filename: "daily-report.pdf"
dashboardGuid: "YOUR_DASHBOARD_GUID"
dashboardParams:
format: PDF
display:
width: 1920
height: 1080
variables:
- name: env
values:
- production
- staging
timeWindow:
duration: 86400000
selectors:
- name: success
expression: '.success'
- name: sessionId
expression: '.response.sessionId'
- name: attachments
expression: '.response.attachments'
Copyright © 2026 New Relic Inc.

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