@@ -28,7 +28,6 @@ func GetGeneratedCommands() *core.Commands {
2828 cockpitContact (),
2929 cockpitCockpitActivate (),
3030 cockpitCockpitGet (),
31- cockpitCockpitGetMetrics (),
3231 cockpitCockpitDeactivate (),
3332 cockpitCockpitResetGrafana (),
3433 cockpitTokenCreate (),
@@ -157,50 +156,6 @@ func cockpitCockpitGet() *core.Command {
157156 }
158157}
159158
160- func cockpitCockpitGetMetrics () * core.Command {
161- return & core.Command {
162- Short : `Get Cockpit metrics` ,
163- Long : `Get metrics from your Cockpit with the specified Project ID.` ,
164- Namespace : "cockpit" ,
165- Resource : "cockpit" ,
166- Verb : "get-metrics" ,
167- // Deprecated: false,
168- ArgsType : reflect .TypeOf (cockpit.GetCockpitMetricsRequest {}),
169- ArgSpecs : core.ArgSpecs {
170- core .ProjectIDArgSpec (),
171- {
172- Name : "start-date" ,
173- Short : `Desired time range's start date for the metrics` ,
174- Required : false ,
175- Deprecated : false ,
176- Positional : false ,
177- },
178- {
179- Name : "end-date" ,
180- Short : `Desired time range's end date for the metrics` ,
181- Required : false ,
182- Deprecated : false ,
183- Positional : false ,
184- },
185- {
186- Name : "metric-name" ,
187- Short : `Name of the metric requested` ,
188- Required : false ,
189- Deprecated : false ,
190- Positional : false ,
191- },
192- },
193- Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
194- request := args .(* cockpit.GetCockpitMetricsRequest )
195-
196- client := core .ExtractClient (ctx )
197- api := cockpit .NewAPI (client )
198- return api .GetCockpitMetrics (request )
199-
200- },
201- }
202- }
203-
204159func cockpitCockpitDeactivate () * core.Command {
205160 return & core.Command {
206161 Short : `Deactivate a Cockpit` ,
0 commit comments