• 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.

문제 신고

NerdGraph 튜토리얼: 대시보드를 다른 계정으로 이동

NerdGraph 의 쿼리 및 변형을 사용하여 대시보드 를 내보내고 새 계정으로 가져올 수 있습니다.

(를) 이미지로 내보낼 수도 있습니다.

이렇게 하려면:

  1. GraphiQL 탐색기 로 이동합니다.
  2. 어떤 대시보드를 사용할 수 있는지 알아보십시오.
  3. 원하는 대시보드를 내보냅니다 .
  4. 선택한 대시보드를 새 계정으로 가져옵니다 .

대시보드 나열

다음 쿼리를 사용하여 기존 대시보드 목록을 검색합니다.

{
actor {
entitySearch(queryBuilder: {type: DASHBOARD}) {
results {
entities {
... on DashboardEntityOutline {
guid
name
accountId
}
}
}
}
}
}

대시보드 내보내기

다음 쿼리를 사용하여 내보낸 다음 출력에서 대시보드의 엔터티 정보를 추출합니다.

{
actor {
entity(guid: "your_guid_xxxxxxx") {
... on DashboardEntity {
name
permissions
pages {
name
widgets {
visualization { id }
title
layout { row width height column }
rawConfiguration
}
}
}
}
}
}

GraphiQL 출력의 엔티티 정보 예시:

대시보드를 새 계정으로 가져오기

다음 변형을 사용하여 대시보드를 다른 계정으로 가져옵니다.

mutation create($dashboard: DashboardInput!) {
dashboardCreate(accountId: your_new_AccountID, dashboard: $dashboard) {
entityResult {
guid
name
}
errors {
description
}
}
}

이 단계를 따르세요:

  1. Query variables 섹션에서 분리의 이름을 dashboard 지정합니다(입력 변수를 $dashboard 으로 선언했으므로).

  2. 엔터티의 출력 을 복사하여 새 계정에 붙여넣습니다. 엔티티로 복사됩니다.

  3. entitydashboard 로 변경합니다.

Copyright © 2024 New Relic Inc.

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