- Resource: DashboardChart
- TileType
- ChartDatasource
- Visualization
- Axis
- AxisType
- Series
- SeriesType
- SeriesStackStrategy
- Encode
- DataLabel
- ItemStyle
- AreaStyle
- ItemColors
- ChartSliceColor
- UserSelectedValues
- GaugeConfig
- GaugeValue
- MetricTrendConfig
- MetricFormat
- MetricDisplayTrend
- MetricTrendType
- Tooltip
- ToolTipTrigger
- Legend
- LegendOrient
- LegendAlign
- ColumnDef
- Button
- Properties
- ButtonStyle
- GoogleMapsConfig
- DataSettings
- PlotMode
- MapPosition
- PointSettings
- PointSizeType
- DrillDownConfig
- DrillDown
- DefaultDrillDownSettings
- CustomDrillDownSettings
- DrillDownQuery
- DrillDownFilter
- DrillDownDashboardFilter
- DrillDownExternalLink
- Methods
Resource: DashboardChart
DashboardChart resource. NEXT TAG: 10
JSON representation |
---|
{ "name": string, "display_name": string, "description": string, "native_dashboard": string, "tile_type": enum ( |
Fields | |
---|---|
name |
Output only. Name of the dashboardChart. |
display_ |
Required. Display name/Title of the dashboardChart visible to users. |
description |
Optional. Description of the dashboardChart. |
native_ |
Output only. NativeDashboard this chart belongs to. |
tile_ |
Optional. Type of tile i.e., visualization, button or text. |
chart_ |
Optional. Query and datasource used in the chart. Should be empty for Button Tiles. |
visualization |
Required. Depending on tile_type one of below fields will be required. |
etag |
Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
drill_ |
Optional. Drill down configuration. |
TileType
TileType indicates what type of chart tile it is i.e., visualization chart, button or text.
Enums | |
---|---|
TILE_TYPE_UNSPECIFIED |
Defaults to VISUALIZATION. |
TILE_TYPE_VISUALIZATION |
Visualization i.e., bar charts, pie charts etc. |
TILE_TYPE_BUTTON |
Button with hyperlink. |
ChartDatasource
Datasource of the chart including the query reference and source name.
JSON representation |
---|
{
"dashboard_query": string,
"data_sources": [
enum ( |
Fields | |
---|---|
dashboard_ |
Reference to dashboard query resource used in the chart. |
data_ |
Name of the datasource used in the chart. |
Visualization
Visualization config for a chart. https://echarts.apache.org/en/option.html#series NEXT TAG: 16
JSON representation |
---|
{ "x_axes": [ { object ( |
Fields | |
---|---|
x_ |
|
y_ |
|
series[] |
|
tooltip |
|
legends[] |
|
column_ |
Column Definition to represent chart as a table. |
button |
Button config for a chart if tileType is TILE_TYPE_BUTTON. |
series_ |
Optional. Selected column for series |
grouping_ |
Optional. Selected grouping type for series |
google_ |
Optional. Google Maps config for a chart if type is GOOGLE MAPS. |
Axis
JSON representation |
---|
{
"axis_type": enum ( |
Fields | |
---|---|
axis_ |
|
display_ |
|
min |
Minimum value to be rendered in ECharts as per https://echarts.apache.org/en/option.html#xAxis.min |
max |
Maximum value to be rendered in ECharts as per https://echarts.apache.org/en/option.html#xAxis.max |
AxisType
Enums | |
---|---|
AXIS_TYPE_UNSPECIFIED |
|
VALUE |
|
CATEGORY |
|
TIME |
|
LOG |
Series
JSON representation |
---|
{ "series_type": enum ( |
Fields | |
---|---|
series_ |
|
series_ |
user specified series label |
show_ |
|
show_ |
|
stack |
|
series_ |
|
encode |
|
label |
|
field |
|
data_ |
Optional. Data label config for a series. Displays data vaule in the chart |
radius[] |
Optional. Used to make a pie chart into a douhnut chart |
item_ |
Optional. Custom styling for chart |
series_ |
Optional. Series unique value from the query result |
area_ |
Optional. Custom styling for area chart |
item_ |
Optional. Field to be saved for retrieving slice colors for the chart |
gauge_ |
Optional. Field to be saved for retrieving gauge config for gauge chart |
metric_ |
Optional. Fields to capture trend config for metric charts |
SeriesType
Enums | |
---|---|
SERIES_TYPE_UNSPECIFIED |
|
LINE |
|
BAR |
|
PIE |
|
TEXT |
|
MAP |
Represents map chart type. |
GAUGE |
Represents gauge chart type. |
SCATTERPLOT |
Represents scatterplot chart type. |
SeriesStackStrategy
Enums | |
---|---|
SERIES_STACK_STRATEGY_UNSPECIFIED |
|
SAMESIGN |
|
ALL |
|
POSITIVE |
|
NEGATIVE |
Encode
JSON representation |
---|
{ "x": string, "y": string, "value": string, "item_name": string } |
Fields | |
---|---|
x |
|
y |
|
value |
For some type of series that are not in any coordinate system, like 'pie' |
item_ |
This is useful in charts like 'pie', where data item name can be displayed in legend. |
DataLabel
Data label config for a series.
JSON representation |
---|
{ "show": boolean } |
Fields | |
---|---|
show |
Optional. Whether to show data label. |
ItemStyle
Custom styling for chart
JSON representation |
---|
{ "border_width": integer, "border_color": string, "color": string } |
Fields | |
---|---|
border_ |
Optional. Used to add border width |
border_ |
Optional. Used to add border color |
color |
Optional. Used to add color |
AreaStyle
Custom styling for area chart
JSON representation |
---|
{ "color": string, "origin": string, "shadow_blur": integer, "shadow_color": string, "shadow_offset_x": integer, "shadow_offset_y": integer, "opacity": integer } |
Fields | |
---|---|
color |
Optional. Used to add color |
origin |
Optional. Used to add origin |
shadow_ |
Optional. Used to add shadow blur |
shadow_ |
Optional. Used to add shadow color |
shadow_ |
Optional. Used to add shadow offsetX |
shadow_ |
Optional. Used to add shadow offsetY |
opacity |
Optional. Used to add opacity |
ItemColors
Field to be saved for retrieving slice colors for the chart
JSON representation |
---|
{
"colors": [
{
object ( |
Fields | |
---|---|
colors[] |
Optional. Slice colors array |
ChartSliceColor
Slice containing the key and value for a slice in the chart
JSON representation |
---|
{
"key": string,
"value": {
object ( |
Fields | |
---|---|
key |
Optional. Key for the slice |
value |
Optional. Value for the slice |
UserSelectedValues
User selected color and label for the slice of the chart
JSON representation |
---|
{ "color": string, "label": string } |
Fields | |
---|---|
color |
Optional. User specified color of a pie slice |
label |
Optional. User specified label for a pie slice |
GaugeConfig
Field to be saved for retrieving value and color for gauge chart
JSON representation |
---|
{ "base_value": { object ( |
Fields | |
---|---|
base_ |
Optional. Base value for gauge chart |
limit_ |
Optional. Limit value for gauge chart |
threshold_ |
Optional. Threshold values for gauge chart |
GaugeValue
Field to be saved for retrieving value and color for gauge chart
JSON representation |
---|
{ "value": integer, "color": string } |
Fields | |
---|---|
value |
Optional. Value for gauge chart |
color |
Optional. Color for gauge chart |
MetricTrendConfig
Metric trend config for displaying trend value in Metrics chart
JSON representation |
---|
{ "metric_format": enum ( |
Fields | |
---|---|
metric_ |
Optional. Metric chart configuration to display metric trend |
metric_ |
Optional. Metric chart configuration to display the trend value |
trend_ |
Optional. Metric chart configuration to toggle trend display on metric charts |
metric_ |
Optional. Metric chart configuration to display trend type whether regular or inverse |
MetricFormat
Metric format to be displayed for the metric charts.
Enums | |
---|---|
METRIC_FORMAT_UNSPECIFIED |
Metric format is not specified. |
METRIC_FORMAT_NUMBER |
Metric format in number |
METRIC_FORMAT_PLAIN_TEXT |
Metric format in plain text |
MetricDisplayTrend
Trend to be displayed for the metric charts as.
Enums | |
---|---|
METRIC_DISPLAY_TREND_UNSPECIFIED |
Trend is not specified. |
METRIC_DISPLAY_TREND_ABSOLUTE_VALUE |
Trend data in absolute value |
METRIC_DISPLAY_TREND_PERCENTAGE |
Trend data in percentage |
METRIC_DISPLAY_TREND_ABSOLUTE_VALUE_AND_PERCENTAGE |
Trend data in both absolute value and percentage |
MetricTrendType
Trend to be displayed for the metric charts as.
Enums | |
---|---|
METRIC_TREND_TYPE_UNSPECIFIED |
Trend type is not specified. |
METRIC_TREND_TYPE_REGULAR |
The trend type is regular(green for positive delta) |
METRIC_TREND_TYPE_INVERSE |
The trend type is inverse(red for positive delta) |
Tooltip
JSON representation |
---|
{
"show": boolean,
"tooltip_trigger": enum ( |
Fields | |
---|---|
show |
|
tooltip_ |
|
ToolTipTrigger
Enums | |
---|---|
TOOLTIP_TRIGGER_UNSPECIFIED |
|
TOOLTIP_TRIGGER_NONE |
|
TOOLTIP_TRIGGER_ITEM |
|
TOOLTIP_TRIGGER_AXIS |
Legend
JSON representation |
---|
{ "id": string, "show": boolean, "z_level": integer, "z": integer, "left": integer, "top": integer, "right": integer, "bottom": integer, "legend_orient": enum ( |
Fields | |
---|---|
id |
|
show |
|
z_ |
|
z |
|
left |
|
top |
|
right |
|
bottom |
|
legend_ |
|
legend_ |
|
padding[] |
|
LegendOrient
Enums | |
---|---|
LEGEND_ORIENT_UNSPECIFIED |
|
VERTICAL |
|
HORIZONTAL |
LegendAlign
Enums | |
---|---|
LEGEND_ALIGN_UNSPECIFIED |
|
AUTO |
|
LEFT |
|
RIGHT |
ColumnDef
Column Definition.
JSON representation |
---|
{ "field": string, "header": string } |
Fields | |
---|---|
field |
Field key in data. |
header |
Header name for column. |
Button
Button config for a chart.
JSON representation |
---|
{
"label": string,
"hyperlink": string,
"description": string,
"new_tab": boolean,
"properties": {
object ( |
Fields | |
---|---|
label |
|
hyperlink |
|
description |
|
new_ |
Whether to open the link in a new tab. |
properties |
|
Properties
JSON representation |
---|
{
"color": string,
"button_style": enum ( |
Fields | |
---|---|
color |
|
button_ |
|
ButtonStyle
Enums | |
---|---|
BUTTON_STYLE_UNSPECIFIED |
|
BUTTON_STYLE_FILLED |
|
BUTTON_STYLE_OUTLINED |
|
BUTTON_STYLE_TRANSPARENT |
GoogleMapsConfig
Google Maps config for a chart if chart type is map.
JSON representation |
---|
{ "data_settings": { object ( |
Fields | |
---|---|
data_ |
Optional. Data settings for the map. |
plot_ |
Optional. Plot mode for the map. This is used to determine whether to show points, heatmap or both. |
map_ |
Optional. Map position settings for the map. |
point_ |
Optional. Point settings for the map. |
DataSettings
Data settings for the map.
JSON representation |
---|
{ "latitude_column": string, "longitude_column": string, "count_column": string } |
Fields | |
---|---|
latitude_ |
Optional. Latitude column. |
longitude_ |
Optional. Longitude column. |
count_ |
Optional. Field to count. |
PlotMode
Plot mode for the map.
Enums | |
---|---|
PLOT_MODE_UNSPECIFIED |
Plot mode is not specified. |
PLOT_MODE_POINTS |
Plot mode is points. |
PLOT_MODE_HEATMAP |
Plot mode is heatmap. |
PLOT_MODE_BOTH |
Plot mode is both points and heatmap. |
MapPosition
Map position settings for the map.
JSON representation |
---|
{ "fit_data": boolean, "latitude_value": number, "longitude_value": number, "zoom_scale_value": number } |
Fields | |
---|---|
fit_ |
Optional. Whether to fit the map to the data. If true, the map will be resized to fit the data. If false, langitude and longitude will be used to set the map size. |
latitude_ |
Optional. Latitude of the map. |
longitude_ |
Optional. Longitude of the map. |
zoom_ |
Optional. Scale of the map. |
PointSettings
Point settings for the map.
JSON representation |
---|
{
"point_size_type": enum ( |
Fields | |
---|---|
point_ |
Optional. Point size type for the map. This is used to determine the size of the points on the map. |
color |
Optional. Color for the point on the map. |
PointSizeType
Point size type for the map.
Enums | |
---|---|
POINT_SIZE_TYPE_UNSPECIFIED |
Point size is not specified. |
POINT_SIZE_TYPE_FIXED |
Point size is fixed. |
POINT_SIZE_TYPE_PROPORTIONAL_TO_SIZE |
Point size is proportional to the size of the data point. |
DrillDownConfig
NEXT TAG: 3 Drill down configuration.
JSON representation |
---|
{ "left_drill_downs": [ { object ( |
Fields | |
---|---|
left_ |
Required. Left click drill downs. |
right_ |
Required. Right click drill downs. |
DrillDown
NEXT TAG: 5 Drill down config.
JSON representation |
---|
{ "id": string, "display_name": string, // Union field |
Fields | |
---|---|
id |
Required. ID of the drill down. |
display_ |
Required. Display name of the drill down. |
Union field settings . Drill down settings. settings can be only one of the following: |
|
default_ |
Default drill down settings. |
custom_ |
Custom drill down settings. |
DefaultDrillDownSettings
Default drill down settings.
JSON representation |
---|
{ "enabled": boolean } |
Fields | |
---|---|
enabled |
Required. Whether the default drill down is enabled. |
CustomDrillDownSettings
NEXT TAG: 6 Custom drill down settings.
JSON representation |
---|
{ "new_tab": boolean, "left_click_column": string, // Union field |
Fields | |
---|---|
new_ |
Required. Whether to open the drill down action in a new tab. |
left_ |
Optional. Table chart column name to associate the custom drill down action on left click. |
Union field action . Action to be performed on drill down. action can be only one of the following: |
|
query |
Drill down query action config. |
filter |
Drill down filter action config. |
external_ |
Drill down external link action config. |
DrillDownQuery
Drill down query config.
JSON representation |
---|
{ "query": string } |
Fields | |
---|---|
query |
Required. Search query to be executed on drill down. |
DrillDownFilter
Drill down filter config.
JSON representation |
---|
{
"dashboard_filters": [
{
object ( |
Fields | |
---|---|
dashboard_ |
Required. Dashboard filters to be applied on drill down. |
DrillDownDashboardFilter
Drill down dashboard filter config.
JSON representation |
---|
{
"dashboard_filter_id": string,
"filter_operator_and_values": [
{
object ( |
Fields | |
---|---|
dashboard_ |
Required. ID of the dashboard filter. |
filter_ |
Required. Filter operator and field values for the dashboard filter. |
DrillDownExternalLink
Drill down external link config.
JSON representation |
---|
{ "link": string, "description": string } |
Fields | |
---|---|
link |
Required. External link the drill down action should redirect to. |
description |
Optional. Description of the external link. |
Methods |
|
---|---|
|
Get dashboard charts in batches. |
|
Get a dashboard chart. |
|
List all dashboard charts. |