Update
Updates the specified dashboard.
- TypeScript
- Python
import {
cloudApi,
decodeMessage,
serviceClients,
Session,
waitForOperation,
} from "@yandex-cloud/nodejs-sdk";
const ChartWidget_FreezeDuration =
cloudApi.monitoring.chart_widget.ChartWidget_FreezeDuration;
const Dashboard = cloudApi.loadtesting.api_regression_dashboard.Dashboard;
const Downsampling_GapFilling =
cloudApi.monitoring.downsampling.Downsampling_GapFilling;
const Downsampling_GridAggregation =
cloudApi.monitoring.downsampling.Downsampling_GridAggregation;
const SeriesOverrides_SeriesVisualizationType =
cloudApi.monitoring.chart_widget.SeriesOverrides_SeriesVisualizationType;
const SeriesOverrides_YaxisPosition =
cloudApi.monitoring.chart_widget.SeriesOverrides_YaxisPosition;
const TitleWidget_TitleSize =
cloudApi.monitoring.title_widget.TitleWidget_TitleSize;
const UnitFormat = cloudApi.monitoring.unit_format.UnitFormat;
const UpdateDashboardRequest =
cloudApi.monitoring.dashboard_service.UpdateDashboardRequest;
const VisualizationSettings_Interpolate =
cloudApi.monitoring.chart_widget.VisualizationSettings_Interpolate;
const VisualizationSettings_SeriesAggregation =
cloudApi.monitoring.chart_widget.VisualizationSettings_SeriesAggregation;
const VisualizationSettings_VisualizationType =
cloudApi.monitoring.chart_widget.VisualizationSettings_VisualizationType;
const VisualizationSettings_YaxisType =
cloudApi.monitoring.chart_widget.VisualizationSettings_YaxisType;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.DashboardServiceClient);
const operation = await client.update(
UpdateDashboardRequest.fromPartial({
dashboardId: "dashboardId",
// name: "name",
// description: "description",
// labels: {"key": "labels"},
// title: "title",
// widgets: [{
// position: {
// x: 0,
// y: 0,
// w: 0,
// h: 0
// },
// text: {
// text: "text"
// },
// title: {
// text: "text",
// size: TitleWidget_TitleSize.TITLE_SIZE_XS
// },
// chart: {
// id: "id",
// queries: {
// targets: [{
// query: "query",
// textMode: true,
// hidden: true,
// name: "name"
// }],
// downsampling: {
// maxPoints: 0,
// gridInterval: 0,
// disabled: true,
// gridAggregation: Downsampling_GridAggregation.GRID_AGGREGATION_MAX,
// gapFilling: Downsampling_GapFilling.GAP_FILLING_NULL
// }
// },
// visualizationSettings: {
// type: VisualizationSettings_VisualizationType.VISUALIZATION_TYPE_LINE,
// normalize: true,
// interpolate: VisualizationSettings_Interpolate.INTERPOLATE_LINEAR,
// aggregation: VisualizationSettings_SeriesAggregation.SERIES_AGGREGATION_AVG,
// colorSchemeSettings: {
// automatic: {
// },
// standard: {
// },
// gradient: {
// greenValue: "greenValue",
// yellowValue: "yellowValue",
// redValue: "redValue",
// violetValue: "violetValue"
// },
// hash: {
// }
// },
// heatmapSettings: {
// greenValue: "greenValue",
// yellowValue: "yellowValue",
// redValue: "redValue",
// violetValue: "violetValue"
// },
// yaxisSettings: {
// left: {
// type: VisualizationSettings_YaxisType.YAXIS_TYPE_LINEAR,
// title: "title",
// min: "min",
// max: "max",
// unitFormat: UnitFormat.UNIT_NONE,
// precision: {
// value: 0
// }
// },
// right: {
// type: VisualizationSettings_YaxisType.YAXIS_TYPE_LINEAR,
// title: "title",
// min: "min",
// max: "max",
// unitFormat: UnitFormat.UNIT_NONE,
// precision: {
// value: 0
// }
// }
// },
// title: "title",
// showLabels: true
// },
// seriesOverrides: [{
// name: "name",
// targetIndex: "targetIndex",
// settings: {
// name: "name",
// color: "color",
// type: SeriesOverrides_SeriesVisualizationType.SERIES_VISUALIZATION_TYPE_LINE,
// stackName: "stackName",
// growDown: true,
// yaxisPosition: SeriesOverrides_YaxisPosition.YAXIS_POSITION_LEFT
// }
// }],
// nameHidingSettings: {
// positive: true,
// names: ["names"]
// },
// description: "description",
// title: "title",
// displayLegend: true,
// freeze: ChartWidget_FreezeDuration.FREEZE_DURATION_HOUR,
// repeat: {
// repeatBy: ["repeatBy"],
// maxChartsInRow: 0
// }
// }
// }],
// parametrization: {
// parameters: [{
// name: "name",
// title: "title",
// labelValues: {
// folderId: "folderId",
// selectors: "selectors",
// labelKey: "labelKey",
// multiselectable: true,
// defaultValues: ["defaultValues"]
// },
// custom: {
// values: ["values"],
// multiselectable: true,
// defaultValues: ["defaultValues"]
// },
// text: {
// defaultValue: "defaultValue"
// },
// integerParameter: {
// defaultValue: 0,
// unitFormat: UnitFormat.UNIT_NONE
// },
// doubleParameter: {
// defaultValue: 0,
// unitFormat: UnitFormat.UNIT_NONE
// },
// textValues: {
// defaultValues: ["defaultValues"]
// },
// hidden: true,
// description: "description"
// }],
// selectors: "selectors"
// },
// etag: "etag",
// managedBy: "managedBy",
// managedLink: "managedLink"
})
);
const finishedOp = await waitForOperation(operation, session);
if (finishedOp.response) {
const result = decodeMessage<typeof Dashboard>(finishedOp.response);
console.log(result);
}
})();
import os
import grpc
import yandexcloud
from yandex.cloud.monitoring.v3.chart_widget_pb2 import ChartWidget
from yandex.cloud.monitoring.v3.parametrization_pb2 import CustomParameter
from yandex.cloud.loadtesting.api.v1.regression.dashboard_pb2 import Dashboard
from yandex.cloud.monitoring.v3.dashboard_service_pb2_grpc import DashboardServiceStub
from yandex.cloud.monitoring.v3.parametrization_pb2 import DoubleParameter
from yandex.cloud.monitoring.v3.downsampling_pb2 import Downsampling
from yandex.cloud.monitoring.v3.parametrization_pb2 import IntegerParameter
from yandex.cloud.monitoring.v3.parametrization_pb2 import LabelValuesParameter
from yandex.cloud.monitoring.v3.parametrization_pb2 import Parameter
from yandex.cloud.monitoring.v3.parametrization_pb2 import Parametrization
from yandex.cloud.monitoring.v3.parametrization_pb2 import TextParameter
from yandex.cloud.monitoring.v3.parametrization_pb2 import TextValuesParameter
from yandex.cloud.monitoring.v3.text_widget_pb2 import TextWidget
from yandex.cloud.monitoring.v3.title_widget_pb2 import TitleWidget
from yandex.cloud.monitoring.v3.unit_format_pb2 import UnitFormat
from yandex.cloud.monitoring.v3.dashboard_service_pb2 import UpdateDashboardMetadata
from yandex.cloud.monitoring.v3.dashboard_service_pb2 import UpdateDashboardRequest
from yandex.cloud.monitoring.v3.widget_pb2 import Widget
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(DashboardServiceStub)
operation = service.Update(
UpdateDashboardRequest(
dashboard_id="dashboardId",
# name = "name",
# description = "description",
# labels = {"key": "labels"},
# title = "title",
# widgets = [Widget(
# position = Widget.LayoutPosition(
# x = 0,
# y = 0,
# w = 0,
# h = 0
# ),
# text = TextWidget(
# text = "text"
# ),
# title = TitleWidget(
# text = "text",
# size = TitleWidget.TitleSize.TITLE_SIZE_XS
# ),
# chart = ChartWidget(
# id = "id",
# queries = ChartWidget.Queries(
# targets = [Queries.Target(
# query = "query",
# text_mode = true,
# hidden = true,
# name = "name"
# )],
# downsampling = Downsampling(
# max_points = 0,
# grid_interval = 0,
# disabled = true,
# grid_aggregation = Downsampling.GridAggregation.GRID_AGGREGATION_MAX,
# gap_filling = Downsampling.GapFilling.GAP_FILLING_NULL
# )
# ),
# visualization_settings = ChartWidget.VisualizationSettings(
# type = VisualizationSettings.VisualizationType.VISUALIZATION_TYPE_LINE,
# normalize = true,
# interpolate = VisualizationSettings.Interpolate.INTERPOLATE_LINEAR,
# aggregation = VisualizationSettings.SeriesAggregation.SERIES_AGGREGATION_AVG,
# color_scheme_settings = VisualizationSettings.ColorSchemeSettings(
# automatic = ColorSchemeSettings.AutomaticColorScheme(
# ),
# standard = ColorSchemeSettings.StandardColorScheme(
# ),
# gradient = ColorSchemeSettings.GradientColorScheme(
# green_value = "greenValue",
# yellow_value = "yellowValue",
# red_value = "redValue",
# violet_value = "violetValue"
# ),
# hash = ColorSchemeSettings.HashColorScheme(
# )
# ),
# heatmap_settings = VisualizationSettings.HeatmapSettings(
# green_value = "greenValue",
# yellow_value = "yellowValue",
# red_value = "redValue",
# violet_value = "violetValue"
# ),
# yaxis_settings = VisualizationSettings.YaxisSettings(
# left = VisualizationSettings.Yaxis(
# type = VisualizationSettings.YaxisType.YAXIS_TYPE_LINEAR,
# title = "title",
# min = "min",
# max = "max",
# unit_format = UnitFormat.UNIT_NONE,
# precision = Int64Value(
# value = 0
# )
# ),
# right = VisualizationSettings.Yaxis(
# type = VisualizationSettings.YaxisType.YAXIS_TYPE_LINEAR,
# title = "title",
# min = "min",
# max = "max",
# unit_format = UnitFormat.UNIT_NONE,
# precision = Int64Value(
# value = 0
# )
# )
# ),
# title = "title",
# show_labels = true
# ),
# series_overrides = [ChartWidget.SeriesOverrides(
# name = "name",
# target_index = "targetIndex",
# settings = SeriesOverrides.SeriesOverrideSettings(
# name = "name",
# color = "color",
# type = SeriesOverrides.SeriesVisualizationType.SERIES_VISUALIZATION_TYPE_LINE,
# stack_name = "stackName",
# grow_down = true,
# yaxis_position = SeriesOverrides.YaxisPosition.YAXIS_POSITION_LEFT
# )
# )],
# name_hiding_settings = ChartWidget.NameHidingSettings(
# positive = true,
# names = ["names"]
# ),
# description = "description",
# title = "title",
# display_legend = true,
# freeze = ChartWidget.FreezeDuration.FREEZE_DURATION_HOUR,
# repeat = ChartWidget.RepeatSettings(
# repeat_by = ["repeatBy"],
# max_charts_in_row = 0
# )
# )
# )],
# parametrization = Parametrization(
# parameters = [Parameter(
# name = "name",
# title = "title",
# label_values = LabelValuesParameter(
# folder_id = "folderId",
# selectors = "selectors",
# label_key = "labelKey",
# multiselectable = true,
# default_values = ["defaultValues"]
# ),
# custom = CustomParameter(
# values = ["values"],
# multiselectable = true,
# default_values = ["defaultValues"]
# ),
# text = TextParameter(
# default_value = "defaultValue"
# ),
# integer_parameter = IntegerParameter(
# default_value = 0,
# unit_format = UnitFormat.UNIT_NONE
# ),
# double_parameter = DoubleParameter(
# default_value = 0,
# unit_format = UnitFormat.UNIT_NONE
# ),
# text_values = TextValuesParameter(
# default_values = ["defaultValues"]
# ),
# hidden = true,
# description = "description"
# )],
# selectors = "selectors"
# ),
# etag = "etag",
# managed_by = "managedBy",
# managed_link = "managedLink"
)
)
operation_result = sdk.wait_operation_and_get_result(
operation,
response_type=Dashboard,
meta_type=UpdateDashboardMetadata,
)
print(operation_result)
UpdateDashboardRequest
dashboardId : string
Required. Dashboard ID.
name : string
Required. Dashboard name.
description : string
Dashboard description.
labels : string
Resource labels as key:value pairs.
Existing set of labels is completely replaced by the provided set.
title : string
Dashboard title.
widgets : Widget
List of dashboard widgets.
parametrization : Parametrization
Dashboard parametrization.
etag : string
The current etag of the dashboard.
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.
One of container
Container id
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.
Operation
An Operation resource. For more information, see Operation.
id : string
ID of the operation.
description : string
Description of the operation. 0-256 characters long.
createdAt : google.protobuf.Timestamp
Creation timestamp.
createdBy : string
ID of the user or service account who initiated the operation.
modifiedAt : google.protobuf.Timestamp
The time when the Operation resource was last modified.
done : bool
If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.
metadata : google.protobuf.Any
Service-specific metadata associated with the operation. It typically contains the ID of the target resource that the operation is performed on. Any method that returns a long-running operation should document the metadata type, if any.
One of result
The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.
error: google.rpc.StatusThe error result of the operation in case of failure or cancellation.
response: google.protobuf.AnyThe normal response of the operation in case of success.If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is the standard Create/Update, the response should be the target resource of the operation. Any method that returns a long-running operation should document the response type, if any.
[1]: #updatedashboardrequest\w -