google-cloud-monitoring-dashboard-v1 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +4 -3
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/rest/client.rb +4 -3
- data/lib/google/cloud/monitoring/dashboard/v1/version.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/alertchart_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/collapsible_group_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/common_pb.rb +4 -2
- data/lib/google/monitoring/dashboard/v1/dashboard_filter_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/dashboard_pb.rb +2 -2
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +2 -2
- data/lib/google/monitoring/dashboard/v1/drilldowns_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/error_reporting_panel_pb.rb +42 -0
- data/lib/google/monitoring/dashboard/v1/incident_list_pb.rb +48 -0
- data/lib/google/monitoring/dashboard/v1/layouts_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/logs_panel_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/metrics_pb.rb +2 -2
- data/lib/google/monitoring/dashboard/v1/piechart_pb.rb +52 -0
- data/lib/google/monitoring/dashboard/v1/scorecard_pb.rb +4 -2
- data/lib/google/monitoring/dashboard/v1/section_header_pb.rb +44 -0
- data/lib/google/monitoring/dashboard/v1/service_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/single_view_group_pb.rb +44 -0
- data/lib/google/monitoring/dashboard/v1/table_display_options_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/table_pb.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/text_pb.rb +8 -2
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +12 -2
- data/lib/google/monitoring/dashboard/v1/xychart_pb.rb +1 -1
- data/proto_docs/google/api/label.rb +49 -0
- data/proto_docs/google/api/monitored_resource.rb +150 -0
- data/proto_docs/google/monitoring/dashboard/v1/common.rb +3 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboard.rb +1 -1
- data/proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb +4 -3
- data/proto_docs/google/monitoring/dashboard/v1/error_reporting_panel.rb +55 -0
- data/proto_docs/google/monitoring/dashboard/v1/incident_list.rb +45 -0
- data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +9 -0
- data/proto_docs/google/monitoring/dashboard/v1/piechart.rb +80 -0
- data/proto_docs/google/monitoring/dashboard/v1/scorecard.rb +4 -0
- data/proto_docs/google/monitoring/dashboard/v1/section_header.rb +41 -0
- data/proto_docs/google/monitoring/dashboard/v1/single_view_group.rb +36 -0
- data/proto_docs/google/monitoring/dashboard/v1/text.rb +146 -0
- data/proto_docs/google/monitoring/dashboard/v1/widget.rb +20 -0
- data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +5 -5
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +17 -2
@@ -29,10 +29,156 @@ module Google
|
|
29
29
|
# @!attribute [rw] format
|
30
30
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::Format]
|
31
31
|
# How the text content is formatted.
|
32
|
+
# @!attribute [rw] style
|
33
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle]
|
34
|
+
# How the text is styled
|
32
35
|
class Text
|
33
36
|
include ::Google::Protobuf::MessageExts
|
34
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
38
|
|
39
|
+
# Properties that determine how the title and content are styled
|
40
|
+
# @!attribute [rw] background_color
|
41
|
+
# @return [::String]
|
42
|
+
# The background color as a hex string. "#RRGGBB" or "#RGB"
|
43
|
+
# @!attribute [rw] text_color
|
44
|
+
# @return [::String]
|
45
|
+
# The text color as a hex string. "#RRGGBB" or "#RGB"
|
46
|
+
# @!attribute [rw] horizontal_alignment
|
47
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::HorizontalAlignment]
|
48
|
+
# The horizontal alignment of both the title and content
|
49
|
+
# @!attribute [rw] vertical_alignment
|
50
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::VerticalAlignment]
|
51
|
+
# The vertical alignment of both the title and content
|
52
|
+
# @!attribute [rw] padding
|
53
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PaddingSize]
|
54
|
+
# The amount of padding around the widget
|
55
|
+
# @!attribute [rw] font_size
|
56
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::FontSize]
|
57
|
+
# Font sizes for both the title and content. The title will still be larger
|
58
|
+
# relative to the content.
|
59
|
+
# @!attribute [rw] pointer_location
|
60
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Text::TextStyle::PointerLocation]
|
61
|
+
# The pointer location for this widget (also sometimes called a "tail")
|
62
|
+
class TextStyle
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
|
66
|
+
# The horizontal alignment of both the title and content on a text widget
|
67
|
+
module HorizontalAlignment
|
68
|
+
# No horizontal alignment specified, will default to H_LEFT
|
69
|
+
HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0
|
70
|
+
|
71
|
+
# Left-align
|
72
|
+
H_LEFT = 1
|
73
|
+
|
74
|
+
# Center-align
|
75
|
+
H_CENTER = 2
|
76
|
+
|
77
|
+
# Right-align
|
78
|
+
H_RIGHT = 3
|
79
|
+
end
|
80
|
+
|
81
|
+
# The vertical alignment of both the title and content on a text widget
|
82
|
+
module VerticalAlignment
|
83
|
+
# No vertical alignment specified, will default to V_TOP
|
84
|
+
VERTICAL_ALIGNMENT_UNSPECIFIED = 0
|
85
|
+
|
86
|
+
# Top-align
|
87
|
+
V_TOP = 1
|
88
|
+
|
89
|
+
# Center-align
|
90
|
+
V_CENTER = 2
|
91
|
+
|
92
|
+
# Bottom-align
|
93
|
+
V_BOTTOM = 3
|
94
|
+
end
|
95
|
+
|
96
|
+
# Specifies padding size around a text widget
|
97
|
+
module PaddingSize
|
98
|
+
# No padding size specified, will default to P_EXTRA_SMALL
|
99
|
+
PADDING_SIZE_UNSPECIFIED = 0
|
100
|
+
|
101
|
+
# Extra small padding
|
102
|
+
P_EXTRA_SMALL = 1
|
103
|
+
|
104
|
+
# Small padding
|
105
|
+
P_SMALL = 2
|
106
|
+
|
107
|
+
# Medium padding
|
108
|
+
P_MEDIUM = 3
|
109
|
+
|
110
|
+
# Large padding
|
111
|
+
P_LARGE = 4
|
112
|
+
|
113
|
+
# Extra large padding
|
114
|
+
P_EXTRA_LARGE = 5
|
115
|
+
end
|
116
|
+
|
117
|
+
# Specifies a font size for the title and content of a text widget
|
118
|
+
module FontSize
|
119
|
+
# No font size specified, will default to FS_LARGE
|
120
|
+
FONT_SIZE_UNSPECIFIED = 0
|
121
|
+
|
122
|
+
# Extra small font size
|
123
|
+
FS_EXTRA_SMALL = 1
|
124
|
+
|
125
|
+
# Small font size
|
126
|
+
FS_SMALL = 2
|
127
|
+
|
128
|
+
# Medium font size
|
129
|
+
FS_MEDIUM = 3
|
130
|
+
|
131
|
+
# Large font size
|
132
|
+
FS_LARGE = 4
|
133
|
+
|
134
|
+
# Extra large font size
|
135
|
+
FS_EXTRA_LARGE = 5
|
136
|
+
end
|
137
|
+
|
138
|
+
# Specifies where a visual pointer is placed on a text widget (also
|
139
|
+
# sometimes called a "tail")
|
140
|
+
module PointerLocation
|
141
|
+
# No visual pointer
|
142
|
+
POINTER_LOCATION_UNSPECIFIED = 0
|
143
|
+
|
144
|
+
# Placed in the middle of the top of the widget
|
145
|
+
PL_TOP = 1
|
146
|
+
|
147
|
+
# Placed in the middle of the right side of the widget
|
148
|
+
PL_RIGHT = 2
|
149
|
+
|
150
|
+
# Placed in the middle of the bottom of the widget
|
151
|
+
PL_BOTTOM = 3
|
152
|
+
|
153
|
+
# Placed in the middle of the left side of the widget
|
154
|
+
PL_LEFT = 4
|
155
|
+
|
156
|
+
# Placed on the left side of the top of the widget
|
157
|
+
PL_TOP_LEFT = 5
|
158
|
+
|
159
|
+
# Placed on the right side of the top of the widget
|
160
|
+
PL_TOP_RIGHT = 6
|
161
|
+
|
162
|
+
# Placed on the top of the right side of the widget
|
163
|
+
PL_RIGHT_TOP = 7
|
164
|
+
|
165
|
+
# Placed on the bottom of the right side of the widget
|
166
|
+
PL_RIGHT_BOTTOM = 8
|
167
|
+
|
168
|
+
# Placed on the right side of the bottom of the widget
|
169
|
+
PL_BOTTOM_RIGHT = 9
|
170
|
+
|
171
|
+
# Placed on the left side of the bottom of the widget
|
172
|
+
PL_BOTTOM_LEFT = 10
|
173
|
+
|
174
|
+
# Placed on the bottom of the left side of the widget
|
175
|
+
PL_LEFT_BOTTOM = 11
|
176
|
+
|
177
|
+
# Placed on the top of the left side of the widget
|
178
|
+
PL_LEFT_TOP = 12
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
36
182
|
# The format type of the text content.
|
37
183
|
module Format
|
38
184
|
# Format is unspecified. Defaults to MARKDOWN.
|
@@ -52,6 +52,26 @@ module Google
|
|
52
52
|
# @!attribute [rw] logs_panel
|
53
53
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::LogsPanel]
|
54
54
|
# A widget that shows a stream of logs.
|
55
|
+
# @!attribute [rw] incident_list
|
56
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::IncidentList]
|
57
|
+
# A widget that shows list of incidents.
|
58
|
+
# @!attribute [rw] pie_chart
|
59
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::PieChart]
|
60
|
+
# A widget that displays timeseries data as a pie chart.
|
61
|
+
# @!attribute [rw] error_reporting_panel
|
62
|
+
# @return [::Google::Monitoring::Dashboard::V1::ErrorReportingPanel]
|
63
|
+
# A widget that displays a list of error groups.
|
64
|
+
# @!attribute [rw] section_header
|
65
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::SectionHeader]
|
66
|
+
# A widget that defines a section header for easier navigation of the
|
67
|
+
# dashboard.
|
68
|
+
# @!attribute [rw] single_view_group
|
69
|
+
# @return [::Google::Cloud::Monitoring::Dashboard::V1::SingleViewGroup]
|
70
|
+
# A widget that groups the other widgets by using a dropdown menu.
|
71
|
+
# @!attribute [rw] id
|
72
|
+
# @return [::String]
|
73
|
+
# Optional. The widget id. Ids may be made up of alphanumerics, dashes and
|
74
|
+
# underscores. Widget ids are optional.
|
55
75
|
class Widget
|
56
76
|
include ::Google::Protobuf::MessageExts
|
57
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -38,13 +38,13 @@ module Google
|
|
38
38
|
# Threshold lines drawn horizontally across the chart.
|
39
39
|
# @!attribute [rw] x_axis
|
40
40
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis]
|
41
|
-
# The properties applied to the
|
41
|
+
# The properties applied to the x-axis.
|
42
42
|
# @!attribute [rw] y_axis
|
43
43
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis]
|
44
|
-
# The properties applied to the
|
44
|
+
# The properties applied to the y-axis.
|
45
45
|
# @!attribute [rw] y2_axis
|
46
46
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::Axis]
|
47
|
-
# The properties applied to the
|
47
|
+
# The properties applied to the y2-axis.
|
48
48
|
# @!attribute [rw] chart_options
|
49
49
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::ChartOptions]
|
50
50
|
# Display options for the chart.
|
@@ -89,13 +89,13 @@ module Google
|
|
89
89
|
|
90
90
|
# The data is plotted as a set of filled areas (one area per series),
|
91
91
|
# with the areas stacked vertically (the base of each area is the top of
|
92
|
-
# its predecessor, and the base of the first area is the
|
92
|
+
# its predecessor, and the base of the first area is the x-axis). Since
|
93
93
|
# the areas do not overlap, each is filled with a different opaque color.
|
94
94
|
STACKED_AREA = 2
|
95
95
|
|
96
96
|
# The data is plotted as a set of rectangular boxes (one box per series),
|
97
97
|
# with the boxes stacked vertically (the base of each box is the top of
|
98
|
-
# its predecessor, and the base of the first box is the
|
98
|
+
# its predecessor, and the base of the first box is the x-axis). Since
|
99
99
|
# the boxes do not overlap, each is filled with a different opaque color.
|
100
100
|
STACKED_BAR = 3
|
101
101
|
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `Struct` represents a structured data value, consisting of fields
|
23
|
+
# which map to dynamically typed values. In some languages, `Struct`
|
24
|
+
# might be supported by a native representation. For example, in
|
25
|
+
# scripting languages like JS a struct is represented as an
|
26
|
+
# object. The details of that representation are described together
|
27
|
+
# with the proto support for the language.
|
28
|
+
#
|
29
|
+
# The JSON representation for `Struct` is JSON object.
|
30
|
+
# @!attribute [rw] fields
|
31
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
|
32
|
+
# Unordered map of dynamically typed values.
|
33
|
+
class Struct
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
|
37
|
+
# @!attribute [rw] key
|
38
|
+
# @return [::String]
|
39
|
+
# @!attribute [rw] value
|
40
|
+
# @return [::Google::Protobuf::Value]
|
41
|
+
class FieldsEntry
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# `Value` represents a dynamically typed value which can be either
|
48
|
+
# null, a number, a string, a boolean, a recursive struct value, or a
|
49
|
+
# list of values. A producer of value is expected to set one of these
|
50
|
+
# variants. Absence of any variant indicates an error.
|
51
|
+
#
|
52
|
+
# The JSON representation for `Value` is JSON value.
|
53
|
+
# @!attribute [rw] null_value
|
54
|
+
# @return [::Google::Protobuf::NullValue]
|
55
|
+
# Represents a null value.
|
56
|
+
# @!attribute [rw] number_value
|
57
|
+
# @return [::Float]
|
58
|
+
# Represents a double value.
|
59
|
+
# @!attribute [rw] string_value
|
60
|
+
# @return [::String]
|
61
|
+
# Represents a string value.
|
62
|
+
# @!attribute [rw] bool_value
|
63
|
+
# @return [::Boolean]
|
64
|
+
# Represents a boolean value.
|
65
|
+
# @!attribute [rw] struct_value
|
66
|
+
# @return [::Google::Protobuf::Struct]
|
67
|
+
# Represents a structured value.
|
68
|
+
# @!attribute [rw] list_value
|
69
|
+
# @return [::Google::Protobuf::ListValue]
|
70
|
+
# Represents a repeated `Value`.
|
71
|
+
class Value
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# `ListValue` is a wrapper around a repeated field of values.
|
77
|
+
#
|
78
|
+
# The JSON representation for `ListValue` is JSON array.
|
79
|
+
# @!attribute [rw] values
|
80
|
+
# @return [::Array<::Google::Protobuf::Value>]
|
81
|
+
# Repeated field of dynamically typed values.
|
82
|
+
class ListValue
|
83
|
+
include ::Google::Protobuf::MessageExts
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
+
end
|
86
|
+
|
87
|
+
# `NullValue` is a singleton enumeration to represent the null value for the
|
88
|
+
# `Value` type union.
|
89
|
+
#
|
90
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
91
|
+
module NullValue
|
92
|
+
# Null value.
|
93
|
+
NULL_VALUE = 0
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
23
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
24
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
25
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
26
|
+
# Gregorian calendar backwards to year one.
|
27
|
+
#
|
28
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
29
|
+
# second table is needed for interpretation, using a [24-hour linear
|
30
|
+
# smear](https://developers.google.com/time/smear).
|
31
|
+
#
|
32
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
33
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
34
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
35
|
+
#
|
36
|
+
# # Examples
|
37
|
+
#
|
38
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
39
|
+
#
|
40
|
+
# Timestamp timestamp;
|
41
|
+
# timestamp.set_seconds(time(NULL));
|
42
|
+
# timestamp.set_nanos(0);
|
43
|
+
#
|
44
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
45
|
+
#
|
46
|
+
# struct timeval tv;
|
47
|
+
# gettimeofday(&tv, NULL);
|
48
|
+
#
|
49
|
+
# Timestamp timestamp;
|
50
|
+
# timestamp.set_seconds(tv.tv_sec);
|
51
|
+
# timestamp.set_nanos(tv.tv_usec * 1000);
|
52
|
+
#
|
53
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
54
|
+
#
|
55
|
+
# FILETIME ft;
|
56
|
+
# GetSystemTimeAsFileTime(&ft);
|
57
|
+
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
58
|
+
#
|
59
|
+
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
60
|
+
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
61
|
+
# Timestamp timestamp;
|
62
|
+
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
63
|
+
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
64
|
+
#
|
65
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
66
|
+
#
|
67
|
+
# long millis = System.currentTimeMillis();
|
68
|
+
#
|
69
|
+
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
|
+
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
|
+
#
|
72
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
73
|
+
#
|
74
|
+
# Instant now = Instant.now();
|
75
|
+
#
|
76
|
+
# Timestamp timestamp =
|
77
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
78
|
+
# .setNanos(now.getNano()).build();
|
79
|
+
#
|
80
|
+
# Example 6: Compute Timestamp from current time in Python.
|
81
|
+
#
|
82
|
+
# timestamp = Timestamp()
|
83
|
+
# timestamp.GetCurrentTime()
|
84
|
+
#
|
85
|
+
# # JSON Mapping
|
86
|
+
#
|
87
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
88
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
89
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
90
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
91
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
92
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
93
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
94
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
95
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
96
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
97
|
+
#
|
98
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
99
|
+
# 01:30 UTC on January 15, 2017.
|
100
|
+
#
|
101
|
+
# In JavaScript, one can convert a Date object to this format using the
|
102
|
+
# standard
|
103
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
104
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
105
|
+
# to this format using
|
106
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
107
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
108
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
110
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
111
|
+
# @!attribute [rw] seconds
|
112
|
+
# @return [::Integer]
|
113
|
+
# Represents seconds of UTC time since Unix epoch
|
114
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
115
|
+
# 9999-12-31T23:59:59Z inclusive.
|
116
|
+
# @!attribute [rw] nanos
|
117
|
+
# @return [::Integer]
|
118
|
+
# Non-negative fractions of a second at nanosecond resolution. Negative
|
119
|
+
# second values with fractions must still have non-negative nanos values
|
120
|
+
# that count forward in time. Must be from 0 to 999,999,999
|
121
|
+
# inclusive.
|
122
|
+
class Timestamp
|
123
|
+
include ::Google::Protobuf::MessageExts
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
23
|
+
# Timestamp end (exclusive).
|
24
|
+
#
|
25
|
+
# The start must be less than or equal to the end.
|
26
|
+
# When the start equals the end, the interval is empty (matches no time).
|
27
|
+
# When both start and end are unspecified, the interval matches any time.
|
28
|
+
# @!attribute [rw] start_time
|
29
|
+
# @return [::Google::Protobuf::Timestamp]
|
30
|
+
# Optional. Inclusive start of the interval.
|
31
|
+
#
|
32
|
+
# If specified, a Timestamp matching this interval will have to be the same
|
33
|
+
# or after the start.
|
34
|
+
# @!attribute [rw] end_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Optional. Exclusive end of the interval.
|
37
|
+
#
|
38
|
+
# If specified, a Timestamp matching this interval will have to be before the
|
39
|
+
# end.
|
40
|
+
class Interval
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-dashboard-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -189,11 +189,16 @@ files:
|
|
189
189
|
- lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb
|
190
190
|
- lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb
|
191
191
|
- lib/google/monitoring/dashboard/v1/drilldowns_pb.rb
|
192
|
+
- lib/google/monitoring/dashboard/v1/error_reporting_panel_pb.rb
|
193
|
+
- lib/google/monitoring/dashboard/v1/incident_list_pb.rb
|
192
194
|
- lib/google/monitoring/dashboard/v1/layouts_pb.rb
|
193
195
|
- lib/google/monitoring/dashboard/v1/logs_panel_pb.rb
|
194
196
|
- lib/google/monitoring/dashboard/v1/metrics_pb.rb
|
197
|
+
- lib/google/monitoring/dashboard/v1/piechart_pb.rb
|
195
198
|
- lib/google/monitoring/dashboard/v1/scorecard_pb.rb
|
199
|
+
- lib/google/monitoring/dashboard/v1/section_header_pb.rb
|
196
200
|
- lib/google/monitoring/dashboard/v1/service_pb.rb
|
201
|
+
- lib/google/monitoring/dashboard/v1/single_view_group_pb.rb
|
197
202
|
- lib/google/monitoring/dashboard/v1/table_display_options_pb.rb
|
198
203
|
- lib/google/monitoring/dashboard/v1/table_pb.rb
|
199
204
|
- lib/google/monitoring/dashboard/v1/text_pb.rb
|
@@ -202,7 +207,9 @@ files:
|
|
202
207
|
- proto_docs/README.md
|
203
208
|
- proto_docs/google/api/client.rb
|
204
209
|
- proto_docs/google/api/field_behavior.rb
|
210
|
+
- proto_docs/google/api/label.rb
|
205
211
|
- proto_docs/google/api/launch_stage.rb
|
212
|
+
- proto_docs/google/api/monitored_resource.rb
|
206
213
|
- proto_docs/google/api/resource.rb
|
207
214
|
- proto_docs/google/monitoring/dashboard/v1/alertchart.rb
|
208
215
|
- proto_docs/google/monitoring/dashboard/v1/collapsible_group.rb
|
@@ -210,10 +217,15 @@ files:
|
|
210
217
|
- proto_docs/google/monitoring/dashboard/v1/dashboard.rb
|
211
218
|
- proto_docs/google/monitoring/dashboard/v1/dashboard_filter.rb
|
212
219
|
- proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb
|
220
|
+
- proto_docs/google/monitoring/dashboard/v1/error_reporting_panel.rb
|
221
|
+
- proto_docs/google/monitoring/dashboard/v1/incident_list.rb
|
213
222
|
- proto_docs/google/monitoring/dashboard/v1/layouts.rb
|
214
223
|
- proto_docs/google/monitoring/dashboard/v1/logs_panel.rb
|
215
224
|
- proto_docs/google/monitoring/dashboard/v1/metrics.rb
|
225
|
+
- proto_docs/google/monitoring/dashboard/v1/piechart.rb
|
216
226
|
- proto_docs/google/monitoring/dashboard/v1/scorecard.rb
|
227
|
+
- proto_docs/google/monitoring/dashboard/v1/section_header.rb
|
228
|
+
- proto_docs/google/monitoring/dashboard/v1/single_view_group.rb
|
217
229
|
- proto_docs/google/monitoring/dashboard/v1/table.rb
|
218
230
|
- proto_docs/google/monitoring/dashboard/v1/table_display_options.rb
|
219
231
|
- proto_docs/google/monitoring/dashboard/v1/text.rb
|
@@ -221,6 +233,9 @@ files:
|
|
221
233
|
- proto_docs/google/monitoring/dashboard/v1/xychart.rb
|
222
234
|
- proto_docs/google/protobuf/duration.rb
|
223
235
|
- proto_docs/google/protobuf/empty.rb
|
236
|
+
- proto_docs/google/protobuf/struct.rb
|
237
|
+
- proto_docs/google/protobuf/timestamp.rb
|
238
|
+
- proto_docs/google/type/interval.rb
|
224
239
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
225
240
|
licenses:
|
226
241
|
- Apache-2.0
|