import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const dashboard = await client.applications.dashboards.retrieve('application_spec_id', 'top_level_dashboard');
console.log(dashboard.id);{
"id": "<string>",
"title": "<string>",
"visualizations": [
{
"id": "<string>",
"title": "<string>",
"type": "scalar",
"metric_id": "total_requests",
"metadata": {
"is_variant_specific_metric": false,
"label_title_map": {},
"label_color_map": {}
}
}
]
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const dashboard = await client.applications.dashboards.retrieve('application_spec_id', 'top_level_dashboard');
console.log(dashboard.id);{
"id": "<string>",
"title": "<string>",
"visualizations": [
{
"id": "<string>",
"title": "<string>",
"type": "scalar",
"metric_id": "total_requests",
"metadata": {
"is_variant_specific_metric": false,
"label_title_map": {},
"label_color_map": {}
}
}
]
}top_level_dashboard, engagements_dashboard, executions_dashboard, variant_overview_dashboard Successful Response
Show child attributes
scalar, bar, stacked_bar, line total_requests, total_errors, total_tokens, average_latency, p95_latency, error_rate, average_users, aggregated_tokens, feedback, execution_input_response_tokens, execution_average_latency_per_variant, execution_error_rate, execution_latency_percentile, execution_average_latency_per_node