Get Embeddable URL
Get an embeddable customer dashboard
v1.dashboards.get_embeddable_url(**kwargs) -> dataobjectDashboardGetEmbeddableURLResponse
post/v1/dashboards/getEmbeddableUrl
Retrieve an embeddable dashboard url for a customer. The dashboard can be embedded using an iframe in a website. This will show information such as usage data and customer invoices.
Parameters
customer_idString
formatuuid
dashboardunion
:invoices | :usage | :credits | :commits_and_credits
The type of dashboard to retrieve.
bm_group_key_overridesarray
optional
Array[{ group_key_name, display_name, value_display_names}]
Optional list of billable metric group key overrides
color_overridesarray
optional
Array[{ name, value}]
Optional list of colors to override
dashboard_optionsarray
optional
Array[{ key, value}]
Optional dashboard specific options
Returns
DashboardGetEmbeddableURLResponseclass
require "metronome_sdk"
metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")
response = metronome.v1.dashboards.get_embeddable_url(
customer_id: "4db51251-61de-4bfe-b9ce-495e244f3491",
dashboard: :invoices
)
puts(response)
200 Example
{
"data": {
"url": "url"
}
}