Add Widget to Dashboard
appd_add_widget_to_dashboardAdd a widget to an existing AppDynamics dashboard without overwriting other widgets. Supports time-series charts, metric values, health lists, text, pie charts, and gauges.
Instructions
Add a single widget to an existing dashboard without replacing existing widgets.
This fetches the current dashboard, appends the new widget, and saves it.
Widget types (use exact names):
"TIMESERIES_GRAPH": Time-series chart (needs applicationId + metricPath)
"METRIC_VALUE": Single metric number (needs applicationId + metricPath)
"HEALTH_LIST": Health status list (needs applicationId + entityType)
"TEXT": Static text label (needs text)
Args:
dashboardId (number): Dashboard ID
widget: Widget object with type, title, height, width, x, y, and type-specific fields
Returns: The updated dashboard with the new widget added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget | Yes | The widget to add to the dashboard. | |
| dashboardId | Yes | The ID of the dashboard to add a widget to. |