- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The Powerpack endpoints allow you to:
The Patch and Delete API methods can only be performed on a Powerpack by a user who has the powerpack create permission for that specific Powerpack.
Read Scale Graphing Expertise with Powerpacks for more information.
GET https://api.ap1.datadoghq.com/api/v2/powerpackshttps://api.datadoghq.eu/api/v2/powerpackshttps://api.ddog-gov.com/api/v2/powerpackshttps://api.datadoghq.com/api/v2/powerpackshttps://api.us3.datadoghq.com/api/v2/powerpackshttps://api.us5.datadoghq.com/api/v2/powerpacks
Get a list of all powerpacks.
This endpoint requires the dashboards_read
permission.
OAuth apps require the dashboards_read
authorization scope to access this endpoint.
이름
유형
설명
page[limit]
integer
Maximum number of powerpacks in the response.
page[offset]
integer
Specific offset to use as the beginning of the returned page.
OK
Response object which includes all powerpack configurations.
항목
유형
설명
data
[object]
List of powerpack definitions.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
included
[object]
Array of objects related to the users.
attributes
object
Attributes of user object returned by the API.
created_at
date-time
Creation time of the user.
disabled
boolean
Whether the user is disabled.
string
Email of the user.
handle
string
Handle of the user.
icon
string
URL of the user's icon.
mfa_enabled
boolean
If user has MFA enabled.
modified_at
date-time
Time that the user was last modified.
name
string
Name of the user.
service_account
boolean
Whether the user is a service account.
status
string
Status of the user.
title
string
Title of the user.
verified
boolean
Whether the user is verified.
id
string
ID of the user.
relationships
object
Relationships of the user object returned by the API.
org
object
Relationship to an organization.
data [required]
object
Relationship to organization object.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_orgs
object
Relationship to organizations.
data [required]
[object]
Relationships to organization objects.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_users
object
Relationship to users.
data [required]
[object]
Relationships to user objects.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
roles
object
Relationship to roles.
data
[object]
An array containing type and the unique identifier of a role.
id
string
The unique identifier of the role.
type
enum
Roles type.
Allowed enum values: roles
default: roles
type
enum
Users resource type.
Allowed enum values: users
default: users
links
object
Links attributes.
first
string
Link to last page.
last
string
Link to first page.
next
string
Link for the next set of results.
prev
string
Link for the previous set of results.
self
string
Link to current page.
meta
object
Powerpack response metadata.
pagination
object
Powerpack response pagination metadata.
first_offset
int64
The first offset.
last_offset
int64
The last offset.
limit
int64
Pagination limit.
next_offset
int64
The next offset.
offset
int64
The offset.
prev_offset
int64
The previous offset.
total
int64
Total results.
type
string
Offset type.
{
"data": [
{
"attributes": {
"description": "Powerpack for ABC",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"definition": {
"content": "example",
"type": "note"
}
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
}
}
]
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"live_span": "5m"
},
"name": "Sample Powerpack",
"tags": [
"tag:foo1"
],
"template_variables": [
{
"available_values": [
"my-host",
"host1",
"host2"
],
"defaults": [
"*"
],
"name": "datacenter",
"prefix": "host"
}
]
},
"id": "string",
"relationships": {
"author": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "powerpack"
}
],
"included": [
{
"attributes": {
"created_at": "2019-09-19T10:00:00.000Z",
"disabled": false,
"email": "string",
"handle": "string",
"icon": "string",
"mfa_enabled": false,
"modified_at": "2019-09-19T10:00:00.000Z",
"name": "string",
"service_account": false,
"status": "string",
"title": "string",
"verified": false
},
"id": "string",
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": [
{
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
]
},
"other_users": {
"data": [
{
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
]
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
],
"links": {
"first": "string",
"last": "https://app.datadoghq.com/api/v2/powerpacks?page[offset]=0\u0026page[limit]=25",
"next": "https://app.datadoghq.com/api/v2/powerpacks?page[offset]=25\u0026page[limit]=25",
"prev": "string",
"self": "https://app.datadoghq.com/api/v2/powerpacks"
},
"meta": {
"pagination": {
"first_offset": "integer",
"last_offset": "integer",
"limit": "integer",
"next_offset": "integer",
"offset": "integer",
"prev_offset": "integer",
"total": "integer",
"type": "string"
}
}
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/powerpacks" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"
POST https://api.ap1.datadoghq.com/api/v2/powerpackshttps://api.datadoghq.eu/api/v2/powerpackshttps://api.ddog-gov.com/api/v2/powerpackshttps://api.datadoghq.com/api/v2/powerpackshttps://api.us3.datadoghq.com/api/v2/powerpackshttps://api.us5.datadoghq.com/api/v2/powerpacks
Create a powerpack.
This endpoint requires the dashboards_write
permission.
OAuth apps require the dashboards_write
authorization scope to access this endpoint.
Create a powerpack request body.
항목
유형
설명
data
object
Powerpack data object.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
{
"data": {
"attributes": {
"description": "Sample powerpack",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"content": "test",
"type": "note"
}
}
]
},
"layout": {
"height": 3,
"width": 12,
"x": 0,
"y": 0
},
"live_span": "1h"
},
"name": "Example-Powerpack",
"tags": [
"tag:sample"
],
"template_variables": [
{
"defaults": [
"*"
],
"name": "sample"
}
]
},
"type": "powerpack"
}
}
OK
Response object which includes a single powerpack configuration.
항목
유형
설명
data
object
Powerpack data object.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
included
[object]
Array of objects related to the users.
attributes
object
Attributes of user object returned by the API.
created_at
date-time
Creation time of the user.
disabled
boolean
Whether the user is disabled.
string
Email of the user.
handle
string
Handle of the user.
icon
string
URL of the user's icon.
mfa_enabled
boolean
If user has MFA enabled.
modified_at
date-time
Time that the user was last modified.
name
string
Name of the user.
service_account
boolean
Whether the user is a service account.
status
string
Status of the user.
title
string
Title of the user.
verified
boolean
Whether the user is verified.
id
string
ID of the user.
relationships
object
Relationships of the user object returned by the API.
org
object
Relationship to an organization.
data [required]
object
Relationship to organization object.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_orgs
object
Relationship to organizations.
data [required]
[object]
Relationships to organization objects.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_users
object
Relationship to users.
data [required]
[object]
Relationships to user objects.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
roles
object
Relationship to roles.
data
[object]
An array containing type and the unique identifier of a role.
id
string
The unique identifier of the role.
type
enum
Roles type.
Allowed enum values: roles
default: roles
type
enum
Users resource type.
Allowed enum values: users
default: users
{
"data": {
"attributes": {
"description": "Powerpack for ABC",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"definition": {
"content": "example",
"type": "note"
}
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
}
}
]
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"live_span": "5m"
},
"name": "Sample Powerpack",
"tags": [
"tag:foo1"
],
"template_variables": [
{
"available_values": [
"my-host",
"host1",
"host2"
],
"defaults": [
"*"
],
"name": "datacenter",
"prefix": "host"
}
]
},
"id": "string",
"relationships": {
"author": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "powerpack"
},
"included": [
{
"attributes": {
"created_at": "2019-09-19T10:00:00.000Z",
"disabled": false,
"email": "string",
"handle": "string",
"icon": "string",
"mfa_enabled": false,
"modified_at": "2019-09-19T10:00:00.000Z",
"name": "string",
"service_account": false,
"status": "string",
"title": "string",
"verified": false
},
"id": "string",
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": [
{
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
]
},
"other_users": {
"data": [
{
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
]
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
]
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
# Curl command
curl -X POST "https://api.ap1.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/powerpacks" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "Sample powerpack",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"content": "test",
"type": "note"
}
}
]
},
"layout": {
"height": 3,
"width": 12,
"x": 0,
"y": 0
},
"live_span": "1h"
},
"name": "Example-Powerpack",
"tags": [
"tag:sample"
],
"template_variables": [
{
"defaults": [
"*"
],
"name": "sample"
}
]
},
"type": "powerpack"
}
}
EOF
DELETE https://api.ap1.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.eu/api/v2/powerpacks/{powerpack_id}https://api.ddog-gov.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us3.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us5.datadoghq.com/api/v2/powerpacks/{powerpack_id}
Delete a powerpack.
This endpoint requires the dashboards_write
permission.
OAuth apps require the dashboards_write
authorization scope to access this endpoint.
이름
유형
설명
powerpack_id [required]
string
Powerpack id
OK
Powerpack Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
# Path parameters
export powerpack_id="CHANGE_ME"
# Curl command
curl -X DELETE "https://api.ap1.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/powerpacks/${powerpack_id}" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"
GET https://api.ap1.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.eu/api/v2/powerpacks/{powerpack_id}https://api.ddog-gov.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us3.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us5.datadoghq.com/api/v2/powerpacks/{powerpack_id}
Get a powerpack.
This endpoint requires the dashboards_read
permission.
OAuth apps require the dashboards_read
authorization scope to access this endpoint.
이름
유형
설명
powerpack_id [required]
string
ID of the powerpack.
OK
Response object which includes a single powerpack configuration.
항목
유형
설명
data
object
Powerpack data object.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
included
[object]
Array of objects related to the users.
attributes
object
Attributes of user object returned by the API.
created_at
date-time
Creation time of the user.
disabled
boolean
Whether the user is disabled.
string
Email of the user.
handle
string
Handle of the user.
icon
string
URL of the user's icon.
mfa_enabled
boolean
If user has MFA enabled.
modified_at
date-time
Time that the user was last modified.
name
string
Name of the user.
service_account
boolean
Whether the user is a service account.
status
string
Status of the user.
title
string
Title of the user.
verified
boolean
Whether the user is verified.
id
string
ID of the user.
relationships
object
Relationships of the user object returned by the API.
org
object
Relationship to an organization.
data [required]
object
Relationship to organization object.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_orgs
object
Relationship to organizations.
data [required]
[object]
Relationships to organization objects.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_users
object
Relationship to users.
data [required]
[object]
Relationships to user objects.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
roles
object
Relationship to roles.
data
[object]
An array containing type and the unique identifier of a role.
id
string
The unique identifier of the role.
type
enum
Roles type.
Allowed enum values: roles
default: roles
type
enum
Users resource type.
Allowed enum values: users
default: users
{
"data": {
"attributes": {
"description": "Powerpack for ABC",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"definition": {
"content": "example",
"type": "note"
}
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
}
}
]
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"live_span": "5m"
},
"name": "Sample Powerpack",
"tags": [
"tag:foo1"
],
"template_variables": [
{
"available_values": [
"my-host",
"host1",
"host2"
],
"defaults": [
"*"
],
"name": "datacenter",
"prefix": "host"
}
]
},
"id": "string",
"relationships": {
"author": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "powerpack"
},
"included": [
{
"attributes": {
"created_at": "2019-09-19T10:00:00.000Z",
"disabled": false,
"email": "string",
"handle": "string",
"icon": "string",
"mfa_enabled": false,
"modified_at": "2019-09-19T10:00:00.000Z",
"name": "string",
"service_account": false,
"status": "string",
"title": "string",
"verified": false
},
"id": "string",
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": [
{
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
]
},
"other_users": {
"data": [
{
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
]
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
]
}
Powerpack Not Found.
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
# Path parameters
export powerpack_id="CHANGE_ME"
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/powerpacks/${powerpack_id}" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"
PATCH https://api.ap1.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.eu/api/v2/powerpacks/{powerpack_id}https://api.ddog-gov.com/api/v2/powerpacks/{powerpack_id}https://api.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us3.datadoghq.com/api/v2/powerpacks/{powerpack_id}https://api.us5.datadoghq.com/api/v2/powerpacks/{powerpack_id}
Update a powerpack.
This endpoint requires the dashboards_write
permission.
OAuth apps require the dashboards_write
authorization scope to access this endpoint.
이름
유형
설명
powerpack_id [required]
string
ID of the powerpack.
Update a powerpack request body.
항목
유형
설명
data
object
Powerpack data object.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
{
"data": {
"attributes": {
"description": "Sample powerpack",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"content": "test",
"type": "note"
}
}
]
},
"layout": {
"height": 3,
"width": 12,
"x": 0,
"y": 0
},
"live_span": "1h"
},
"name": "Example-Powerpack",
"tags": [
"tag:sample"
],
"template_variables": [
{
"defaults": [
"*"
],
"name": "sample"
}
]
},
"type": "powerpack"
}
}
OK
Response object which includes a single powerpack configuration.
항목
유형
설명
data
object
Powerpack data object.
attributes
object
Powerpack attribute object.
description
string
Description of this powerpack.
group_widget [required]
object
Powerpack group widget definition object.
definition [required]
object
Powerpack group widget object.
layout_type [required]
string
Layout type of widgets.
show_title
boolean
Boolean indicating whether powerpack group title should be visible or not.
title
string
Name for the group widget.
type [required]
string
Type of widget, must be group.
widgets [required]
[object]
Widgets inside the powerpack.
definition [required]
object
Information about widget.
layout
object
Powerpack inner widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
layout
object
Powerpack group widget layout.
height [required]
int64
The height of the widget. Should be a non-negative integer.
width [required]
int64
The width of the widget. Should be a non-negative integer.
x [required]
int64
The position of the widget on the x (horizontal) axis. Should be a non-negative integer.
y [required]
int64
The position of the widget on the y (vertical) axis. Should be a non-negative integer.
live_span
enum
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
name [required]
string
Name of the powerpack.
tags
[string]
List of tags to identify this powerpack.
template_variables
[object]
List of template variables for this powerpack.
available_values
[string]
The list of values that the template variable drop-down is limited to.
defaults
[string]
One or many template variable default values within the saved view, which are unioned together using OR
if more than one is specified.
name [required]
string
The name of the variable.
prefix
string
The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
id
string
ID of the powerpack.
relationships
object
Powerpack relationship object.
author
object
Relationship to user.
data [required]
object
Relationship to user object.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
type
string
Type of widget, must be powerpack.
included
[object]
Array of objects related to the users.
attributes
object
Attributes of user object returned by the API.
created_at
date-time
Creation time of the user.
disabled
boolean
Whether the user is disabled.
string
Email of the user.
handle
string
Handle of the user.
icon
string
URL of the user's icon.
mfa_enabled
boolean
If user has MFA enabled.
modified_at
date-time
Time that the user was last modified.
name
string
Name of the user.
service_account
boolean
Whether the user is a service account.
status
string
Status of the user.
title
string
Title of the user.
verified
boolean
Whether the user is verified.
id
string
ID of the user.
relationships
object
Relationships of the user object returned by the API.
org
object
Relationship to an organization.
data [required]
object
Relationship to organization object.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_orgs
object
Relationship to organizations.
data [required]
[object]
Relationships to organization objects.
id [required]
string
ID of the organization.
type [required]
enum
Organizations resource type.
Allowed enum values: orgs
default: orgs
other_users
object
Relationship to users.
data [required]
[object]
Relationships to user objects.
id [required]
string
A unique identifier that represents the user.
type [required]
enum
Users resource type.
Allowed enum values: users
default: users
roles
object
Relationship to roles.
data
[object]
An array containing type and the unique identifier of a role.
id
string
The unique identifier of the role.
type
enum
Roles type.
Allowed enum values: roles
default: roles
type
enum
Users resource type.
Allowed enum values: users
default: users
{
"data": {
"attributes": {
"description": "Powerpack for ABC",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"definition": {
"content": "example",
"type": "note"
}
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
}
}
]
},
"layout": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"live_span": "5m"
},
"name": "Sample Powerpack",
"tags": [
"tag:foo1"
],
"template_variables": [
{
"available_values": [
"my-host",
"host1",
"host2"
],
"defaults": [
"*"
],
"name": "datacenter",
"prefix": "host"
}
]
},
"id": "string",
"relationships": {
"author": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "powerpack"
},
"included": [
{
"attributes": {
"created_at": "2019-09-19T10:00:00.000Z",
"disabled": false,
"email": "string",
"handle": "string",
"icon": "string",
"mfa_enabled": false,
"modified_at": "2019-09-19T10:00:00.000Z",
"name": "string",
"service_account": false,
"status": "string",
"title": "string",
"verified": false
},
"id": "string",
"relationships": {
"org": {
"data": {
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
},
"other_orgs": {
"data": [
{
"id": "00000000-0000-beef-0000-000000000000",
"type": "orgs"
}
]
},
"other_users": {
"data": [
{
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
]
},
"roles": {
"data": [
{
"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d",
"type": "roles"
}
]
}
},
"type": "users"
}
]
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Powerpack Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
# Path parameters
export powerpack_id="CHANGE_ME"
# Curl command
curl -X PATCH "https://api.ap1.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/powerpacks/${powerpack_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" \
-d @- << EOF
{
"data": {
"attributes": {
"description": "Sample powerpack",
"group_widget": {
"definition": {
"layout_type": "ordered",
"show_title": true,
"title": "Sample Powerpack",
"type": "group",
"widgets": [
{
"definition": {
"content": "test",
"type": "note"
}
}
]
},
"layout": {
"height": 3,
"width": 12,
"x": 0,
"y": 0
},
"live_span": "1h"
},
"name": "Example-Powerpack",
"tags": [
"tag:sample"
],
"template_variables": [
{
"defaults": [
"*"
],
"name": "sample"
}
]
},
"type": "powerpack"
}
}
EOF