Get
Returns the specified dashboard.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const GetDashboardRequest =
cloudApi.monitoring.dashboard_service.GetDashboardRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.DashboardServiceClient);
const result = await client.get(
GetDashboardRequest.fromPartial({
dashboardId: "dashboardId",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.monitoring.v3.dashboard_service_pb2_grpc import DashboardServiceStub
from yandex.cloud.monitoring.v3.dashboard_service_pb2 import GetDashboardRequest
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(DashboardServiceStub)
response = service.Get(GetDashboardRequest(dashboard_id="dashboardId"))
print(response)
GetDashboardRequest
dashboardId : string
Required. Dashboard ID.
Dashboard
Dashboard resource.
id : string
Dashboard ID.
One of container
Container id
folderId: stringFolder ID.
createdAt : google.protobuf.Timestamp
Creation timestamp.
modifiedAt : google.protobuf.Timestamp
Modification timestamp.
createdBy : string
ID of the user who created the dashboard.
modifiedBy : string
ID of the user who modified the dashboard.
name : string
Dashboard name.
description : string
Dashboard description.
labels : string
Resource labels as key:value pairs.
title : string
Dashboard title.
widgets : Widget
List of dashboard widgets.
parametrization : Parametrization
Dashboard parametrization.
etag : string
Dashboard etag.
managedBy : string
Entity that controls dashboard Must match the regular expression "[\w -][1]{1,100}"
managedLink : string
Information about entity that controls dashboard Must be valid URI
Widget
Widget.
LayoutPosition
Layout item for widget item positioning.
x : int64
Required. X-axis top-left corner coordinate.
y : int64
Required. Y-axis top-left corner coordinate.
w : int64
Required. Weight.
h : int64
Required. Height.
position : LayoutPosition
Required. Widget layout position.
One of widget
Required. Widget data.
Parametrization
Parametrization.
parameters : Parameter
Parameters.
selectors : string
Predefined selectors.
LayoutPosition
Layout item for widget item positioning.
x : int64
Required. X-axis top-left corner coordinate.
y : int64
Required. Y-axis top-left corner coordinate.
w : int64
Required. Weight.
h : int64
Required. Height.
TextWidget
Text widget.
text : string
Text.
TitleWidget
Title widget.
TitleSize
Title size.
TITLE_SIZE_UNSPECIFIEDTitle size.
TITLE_SIZE_XSExtra small size.
TITLE_SIZE_SSmall size.
TITLE_SIZE_MMiddle size.
TITLE_SIZE_LLarge size.
text : string
Title text.
size : TitleSize
Title size.
ChartWidget
Chart widget.
Queries
Query settings.
Target
Query target.
query : string
Required. Query.
textMode : bool
Text mode.
hidden : bool
Checks that target is visible or invisible.
name : string
Name of the query.
targets : Target
Required. List of targets.
downsampling : Downsampling
Required. Downsampling settings.
VisualizationSettings
Visualization settings.
VisualizationType
Chart visualization type.
VISUALIZATION_TYPE_UNSPECIFIEDNot specified (line by default).
VISUALIZATION_TYPE_LINELine chart.
VISUALIZATION_TYPE_STACKStack chart.
VISUALIZATION_TYPE_COLUMNPoints as columns chart.
VISUALIZATION_TYPE_POINTSPoints.
VISUALIZATION_TYPE_PIEPie aggregation chart.
VISUALIZATION_TYPE_BARSBars aggregation chart.
VISUALIZATION_TYPE_DISTRIBUTIONDistribution aggregation chart.
VISUALIZATION_TYPE_HEATMAPHeatmap aggregation chart.
Interpolate
INTERPOLATE_UNSPECIFIEDNot specified (linear by default).
INTERPOLATE_LINEARLinear.
INTERPOLATE_LEFTLeft.
INTERPOLATE_RIGHTRight.
ColorSchemeSettings
####### AutomaticColorScheme {#colorschemesettings_automaticcolorscheme}
####### StandardColorScheme {#colorschemesettings_standardcolorscheme}
####### GradientColorScheme {#colorschemesettings_gradientcolorscheme}
greenValue : string
Gradient green value.
yellowValue : string
Gradient yellow value.
redValue : string
Gradient red value.
violetValue : string
Gradient violet_value.
####### HashColorScheme {#colorschemesettings_hashcolorscheme}
One of scheme
automatic: AutomaticColorSchemeAutomatic color scheme.
standard: StandardColorSchemeStandard color scheme.
gradient: GradientColorSchemeGradient color scheme.
hash: HashColorSchemeHash color scheme. Based on line name or value.
HeatmapSettings
greenValue : string
Heatmap green value.
yellowValue : string
Heatmap yellow value.
redValue : string
Heatmap red value.
violetValue : string
Heatmap violet_value.
YaxisType
Y axis type. N.B. _TYPE prefix is necessary to expect name clash with Interpolate LINEAR value.
YAXIS_TYPE_UNSPECIFIEDNot specified (linear by default).
YAXIS_TYPE_LINEARLinear.
YAXIS_TYPE_LOGARITHMICLogarithmic.
Yaxis
Y axis settings.
type : YaxisType
Type.
title : string
Title or empty.
min : string
Min value in extended number format or empty.
max : string
Max value in extended number format or empty.
unitFormat : UnitFormat
Unit format.
precision : google.protobuf.Int64Value
Tick value precision (null as default, 0-7 in other cases).
YaxisSettings
left : Yaxis
Left Y axis settings.
right : Yaxis
Right Y axis settings.
SeriesAggregation
SERIES_AGGREGATION_UNSPECIFIEDNot specified (avg by default).
SERIES_AGGREGATION_AVGAverage.
SERIES_AGGREGATION_MINMinimum.
SERIES_AGGREGATION_MAXMaximum.
SERIES_AGGREGATION_LASTLast non-NaN value.
SERIES_AGGREGATION_SUMSum.
type : VisualizationType
Visualization type.
normalize : bool
Normalize.
interpolate : Interpolate
Interpolate.
aggregation : SeriesAggregation
Aggregation.
colorSchemeSettings : ColorSchemeSettings
Color scheme settings.
heatmapSettings : HeatmapSettings
Heatmap settings.
yaxisSettings : YaxisSettings
Y axis settings.
title : string
Inside chart title.
showLabels : bool
Show chart labels.
SeriesOverrides
Series override settings.
YaxisPosition
YAXIS_POSITION_UNSPECIFIEDNot specified (left by default).
YAXIS_POSITION_LEFTLeft.
YAXIS_POSITION_RIGHTRight.
SeriesVisualizationType
SERIES_VISUALIZATION_TYPE_UNSPECIFIEDNot specified (line by default).
SERIES_VISUALIZATION_TYPE_LINELine chart.
SERIES_VISUALIZATION_TYPE_STACKStack chart.
SERIES_VISUALIZATION_TYPE_COLUMNPoints as columns chart.
SERIES_VISUALIZATION_TYPE_POINTSPoints.
SeriesOverrideSettings
name : string
Series name or empty.
color : string
Series color or empty.
type : SeriesVisualizationType
Type.
stackName : string
Stack name or empty.
growDown : bool
Stack grow down.
yaxisPosition : YaxisPosition
Yaxis position.
One of type
Required. Series selection type.
settings : SeriesOverrideSettings
Required. Override settings.
NameHidingSettings
Name hiding settings.
positive : bool
True if we want to show concrete series names only, false if we want to hide concrete series names.
names : string
Series names to show or hide.
FreezeDuration
FREEZE_DURATION_UNSPECIFIEDFREEZE_DURATION_HOURLast hour.
FREEZE_DURATION_DAYLast day = last 24 hours.
FREEZE_DURATION_WEEKLast 7 days.
FREEZE_DURATION_MONTHLast 31 days.
RepeatSettings
repeatBy : string
Parameters to repeat by.
maxChartsInRow : int64
Max number of chart in one row.
id : string
Required. Chart ID.
queries : Queries
Queries.
visualizationSettings : VisualizationSettings
Visualization settings.
seriesOverrides : SeriesOverrides
Override settings.
nameHidingSettings : NameHidingSettings
Name hiding settings.
description : string
Chart description in dashboard (not enabled in UI).
title : string
Chart widget title.
displayLegend : bool
Enable legend under chart.
freeze : FreezeDuration
Fixed time interval for chart.
repeat : RepeatSettings
Setting for repeat panel / repeat row
Parameter
Parameter.
name : string
Parameter identifier.
title : string
UI-visible title of the parameter.
One of data
Parameter data.
labelValues: LabelValuesParameterLabel values parameter.
custom: CustomParameterCustom parameter.
text: TextParameterText parameter.
integerParameter: IntegerParameterInteger parameter.
doubleParameter: DoubleParameterDouble parameter.
textValues: TextValuesParameterInteger parameter.
hidden : bool
UI-visibility.
description : string
Parameter description.
Target
Query target.
query : string
Required. Query.
textMode : bool
Text mode.
hidden : bool
Checks that target is visible or invisible.
name : string
Name of the query.
Downsampling
List of available aggregate functions for downsampling.
GridAggregation
List of available aggregate functions for downsampling.
GRID_AGGREGATION_UNSPECIFIEDList of available aggregate functions for downsampling.
GRID_AGGREGATION_MAXMax value.
GRID_AGGREGATION_MINMin value.
GRID_AGGREGATION_SUMSum of values.
GRID_AGGREGATION_AVGAverage value.
GRID_AGGREGATION_LASTLast value.
GRID_AGGREGATION_COUNTTotal count of points.
GapFilling
List of available gap filling policy for downsampling.
GAP_FILLING_UNSPECIFIEDList of available gap filling policy for downsampling.
GAP_FILLING_NULLReturns
nullas a metric value andtimestampas a time series value.GAP_FILLING_NONEReturns no value and no timestamp.
GAP_FILLING_PREVIOUSReturns the value from the previous time interval.
One of mode
maxPoints: int64Maximum number of points to be returned.
gridInterval: int64Time interval (grid) for downsampling in milliseconds.Points in the specified range are aggregated into one time point.
disabled: boolDisable downsampling.
gridAggregation : GridAggregation
Function that is used for downsampling.
gapFilling : GapFilling
Parameters for filling gaps in data.
AutomaticColorScheme
StandardColorScheme
GradientColorScheme
greenValue : string
Gradient green value.
yellowValue : string
Gradient yellow value.
redValue : string
Gradient red value.
violetValue : string
Gradient violet_value.
HashColorScheme
Yaxis
Y axis settings.
type : YaxisType
Type.
title : string
Title or empty.
min : string
Min value in extended number format or empty.
max : string
Max value in extended number format or empty.
unitFormat : UnitFormat
Unit format.
precision : google.protobuf.Int64Value
Tick value precision (null as default, 0-7 in other cases).
ColorSchemeSettings
AutomaticColorScheme
StandardColorScheme
GradientColorScheme
greenValue : string
Gradient green value.
yellowValue : string
Gradient yellow value.
redValue : string
Gradient red value.
violetValue : string
Gradient violet_value.
HashColorScheme
automatic: AutomaticColorSchemeAutomatic color scheme.
standard: StandardColorSchemeStandard color scheme.
gradient: GradientColorSchemeGradient color scheme.
hash: HashColorSchemeHash color scheme. Based on line name or value.
HeatmapSettings
greenValue : string
Heatmap green value.
yellowValue : string
Heatmap yellow value.
redValue : string
Heatmap red value.
violetValue : string
Heatmap violet_value.
YaxisSettings
left : Yaxis
Left Y axis settings.
right : Yaxis
Right Y axis settings.
SeriesOverrideSettings
name : string
Series name or empty.
color : string
Series color or empty.
type : SeriesVisualizationType
Type.
stackName : string
Stack name or empty.
growDown : bool
Stack grow down.
yaxisPosition : YaxisPosition
Yaxis position.
Queries
Query settings.
Target
Query target.
query : string
Required. Query.
textMode : bool
Text mode.
hidden : bool
Checks that target is visible or invisible.
name : string
Name of the query.
targets : Target
Required. List of targets.
downsampling : Downsampling
Required. Downsampling settings.
VisualizationSettings
Visualization settings.
VisualizationType
Chart visualization type.
VISUALIZATION_TYPE_UNSPECIFIEDNot specified (line by default).
VISUALIZATION_TYPE_LINELine chart.
VISUALIZATION_TYPE_STACKStack chart.
VISUALIZATION_TYPE_COLUMNPoints as columns chart.
VISUALIZATION_TYPE_POINTSPoints.
VISUALIZATION_TYPE_PIEPie aggregation chart.
VISUALIZATION_TYPE_BARSBars aggregation chart.
VISUALIZATION_TYPE_DISTRIBUTIONDistribution aggregation chart.
VISUALIZATION_TYPE_HEATMAPHeatmap aggregation chart.
Interpolate
INTERPOLATE_UNSPECIFIEDNot specified (linear by default).
INTERPOLATE_LINEARLinear.
INTERPOLATE_LEFTLeft.
INTERPOLATE_RIGHTRight.
ColorSchemeSettings
AutomaticColorScheme
StandardColorScheme
GradientColorScheme
greenValue : string
Gradient green value.
yellowValue : string
Gradient yellow value.
redValue : string
Gradient red value.
violetValue : string
Gradient violet_value.
HashColorScheme
automatic: AutomaticColorSchemeAutomatic color scheme.
standard: StandardColorSchemeStandard color scheme.
gradient: GradientColorSchemeGradient color scheme.
hash: HashColorSchemeHash color scheme. Based on line name or value.
HeatmapSettings
greenValue : string
Heatmap green value.
yellowValue : string
Heatmap yellow value.
redValue : string
Heatmap red value.
violetValue : string
Heatmap violet_value.
YaxisType
Y axis type. N.B. _TYPE prefix is necessary to expect name clash with Interpolate LINEAR value.
YAXIS_TYPE_UNSPECIFIEDNot specified (linear by default).
YAXIS_TYPE_LINEARLinear.
YAXIS_TYPE_LOGARITHMICLogarithmic.
Yaxis
Y axis settings.
type : YaxisType
Type.
title : string
Title or empty.
min : string
Min value in extended number format or empty.
max : string
Max value in extended number format or empty.
unitFormat : UnitFormat
Unit format.
precision : google.protobuf.Int64Value
Tick value precision (null as default, 0-7 in other cases).
YaxisSettings
left : Yaxis
Left Y axis settings.
right : Yaxis
Right Y axis settings.
SeriesAggregation
SERIES_AGGREGATION_UNSPECIFIEDNot specified (avg by default).
SERIES_AGGREGATION_AVGAverage.
SERIES_AGGREGATION_MINMinimum.
SERIES_AGGREGATION_MAXMaximum.
SERIES_AGGREGATION_LASTLast non-NaN value.
SERIES_AGGREGATION_SUMSum.
type : VisualizationType
Visualization type.
normalize : bool
Normalize.
interpolate : Interpolate
Interpolate.
aggregation : SeriesAggregation
Aggregation.
colorSchemeSettings : ColorSchemeSettings
Color scheme settings.
heatmapSettings : HeatmapSettings
Heatmap settings.
yaxisSettings : YaxisSettings
Y axis settings.
title : string
Inside chart title.
showLabels : bool
Show chart labels.
SeriesOverrides
Series override settings.
YaxisPosition
YAXIS_POSITION_UNSPECIFIEDNot specified (left by default).
YAXIS_POSITION_LEFTLeft.
YAXIS_POSITION_RIGHTRight.
SeriesVisualizationType
SERIES_VISUALIZATION_TYPE_UNSPECIFIEDNot specified (line by default).
SERIES_VISUALIZATION_TYPE_LINELine chart.
SERIES_VISUALIZATION_TYPE_STACKStack chart.
SERIES_VISUALIZATION_TYPE_COLUMNPoints as columns chart.
SERIES_VISUALIZATION_TYPE_POINTSPoints.
SeriesOverrideSettings
name : string
Series name or empty.
color : string
Series color or empty.
type : SeriesVisualizationType
Type.
stackName : string
Stack name or empty.
growDown : bool
Stack grow down.
yaxisPosition : YaxisPosition
Yaxis position.
settings : SeriesOverrideSettings
Required. Override settings.
NameHidingSettings
Name hiding settings.
positive : bool
True if we want to show concrete series names only, false if we want to hide concrete series names.
names : string
Series names to show or hide.
RepeatSettings
repeatBy : string
Parameters to repeat by.
maxChartsInRow : int64
Max number of chart in one row.
LabelValuesParameter
Label values parameter.
folderId: stringRequired. Folder ID.
selectors : string
Required. Selectors to select metric label values.
labelKey : string
Required. Label key to list label values.
multiselectable : bool
Specifies the multiselectable values of parameter.
defaultValues : string
Default values.
CustomParameter
Custom parameter.
values : string
Required. List of parameter values.
multiselectable : bool
Specifies the multiselectable values of parameter.
defaultValues : string
Default values.
TextParameter
Text parameter.
defaultValue : string
Default value.
IntegerParameter
Integer parameter.
defaultValue : int64
Default value.
unitFormat : UnitFormat
Parameter unit.
DoubleParameter
Double parameter.
defaultValue : double
Default value.
unitFormat : UnitFormat
Parameter unit.
TextValuesParameter
Text multiple values parameter.
defaultValues : string
Default value.
[1]: #dashboard\w -