File tree 2 files changed +57
-6
lines changed
proto/spaceone/api/dashboard/v1
2 files changed +57
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ service PrivateWidget{
40
40
};
41
41
}
42
42
43
- rpc load_sum (LoadPrivateWidgetRequest ) returns (google .protobuf .Struct ) {
43
+ rpc load_sum (LoadSumPrivateWidgetRequest ) returns (google .protobuf .Struct ) {
44
44
option (google.api.http ) = {
45
45
post : "/dashboard/v1/private-widget/load-sum"
46
46
body : "*"
@@ -62,6 +62,17 @@ service PrivateWidget{
62
62
}
63
63
}
64
64
65
+
66
+ message PrivateWidgetSort {
67
+ string key = 1 ;
68
+ bool desc = 2 ;
69
+ }
70
+
71
+ message PrivateWidgetPage {
72
+ int32 start = 1 ;
73
+ int32 limit = 2 ;
74
+ }
75
+
65
76
message CreatePrivateWidgetRequest {
66
77
enum State {
67
78
STATE_NONE = 0 ;
@@ -123,9 +134,24 @@ message PrivateWidgetRequest {
123
134
124
135
message LoadPrivateWidgetRequest {
125
136
string widget_id = 1 ;
126
- spaceone.api.core.v2.TimeSeriesAnalyzeQuery query = 2 ;
137
+ string granularity = 2 ;
138
+ string start = 3 ;
139
+ string end = 4 ;
140
+ // +optional
141
+ repeated PrivateWidgetSort sort = 5 ;
142
+ // +optional
143
+ PrivateWidgetPage page = 6 ;
144
+ // +optional
145
+ google.protobuf.Struct vars = 7 ;
146
+ }
147
+
148
+ message LoadSumPrivateWidgetRequest {
149
+ string widget_id = 1 ;
150
+ string granularity = 2 ;
151
+ string start = 3 ;
152
+ string end = 4 ;
127
153
// +optional
128
- google.protobuf.Struct vars = 3 ;
154
+ google.protobuf.Struct vars = 7 ;
129
155
}
130
156
131
157
message PrivateWidgetQuery {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ service PublicWidget{
40
40
};
41
41
}
42
42
43
- rpc load_sum (LoadPublicWidgetRequest ) returns (google .protobuf .Struct ) {
43
+ rpc load_sum (LoadSumPublicWidgetRequest ) returns (google .protobuf .Struct ) {
44
44
option (google.api.http ) = {
45
45
post : "/dashboard/v1/public-widget/load-sum"
46
46
body : "*"
@@ -62,6 +62,16 @@ service PublicWidget{
62
62
}
63
63
}
64
64
65
+ message PublicWidgetSort {
66
+ string key = 1 ;
67
+ bool desc = 2 ;
68
+ }
69
+
70
+ message PublicWidgetPage {
71
+ int32 start = 1 ;
72
+ int32 limit = 2 ;
73
+ }
74
+
65
75
message CreatePublicWidgetRequest {
66
76
enum State {
67
77
STATE_NONE = 0 ;
@@ -123,9 +133,24 @@ message PublicWidgetRequest {
123
133
124
134
message LoadPublicWidgetRequest {
125
135
string widget_id = 1 ;
126
- spaceone.api.core.v2.TimeSeriesAnalyzeQuery query = 2 ;
136
+ string granularity = 2 ;
137
+ string start = 3 ;
138
+ string end = 4 ;
139
+ // +optional
140
+ repeated PublicWidgetSort sort = 5 ;
141
+ // +optional
142
+ PublicWidgetPage page = 6 ;
143
+ // +optional
144
+ google.protobuf.Struct vars = 7 ;
145
+ }
146
+
147
+ message LoadSumPublicWidgetRequest {
148
+ string widget_id = 1 ;
149
+ string granularity = 2 ;
150
+ string start = 3 ;
151
+ string end = 4 ;
127
152
// +optional
128
- google.protobuf.Struct vars = 3 ;
153
+ google.protobuf.Struct vars = 7 ;
129
154
}
130
155
131
156
message PublicWidgetQuery {
You can’t perform that action at this time.
0 commit comments