Class: DatadogAPIClient::V2::ModelLabAPIAPI
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::ModelLabAPIAPI
- Defined in:
- lib/datadog_api_client/v2/api/model_lab_api_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_model_lab_run(run_id, opts = {}) ⇒ Object
Delete a Model Lab run.
-
#delete_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a Model Lab run.
-
#get_model_lab_artifact_content(project_id, artifact_path, opts = {}) ⇒ Object
Get Model Lab artifact content.
-
#get_model_lab_artifact_content_with_http_info(project_id, artifact_path, opts = {}) ⇒ Array<(File, Integer, Hash)>
Get Model Lab artifact content.
-
#get_model_lab_project(project_id, opts = {}) ⇒ Object
Get a Model Lab project.
-
#get_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(ModelLabProjectResponse, Integer, Hash)>
Get a Model Lab project.
-
#get_model_lab_run(run_id, opts = {}) ⇒ Object
Get a Model Lab run.
-
#get_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(ModelLabRunResponse, Integer, Hash)>
Get a Model Lab run.
-
#initialize(api_client = DatadogAPIClient::APIClient.default) ⇒ ModelLabAPIAPI
constructor
A new instance of ModelLabAPIAPI.
-
#list_model_lab_project_artifacts(project_id, opts = {}) ⇒ Object
List Model Lab project artifacts.
-
#list_model_lab_project_artifacts_with_http_info(project_id, opts = {}) ⇒ Array<(ModelLabProjectArtifactsResponse, Integer, Hash)>
List Model Lab project artifacts.
-
#list_model_lab_project_facet_keys(opts = {}) ⇒ Object
List Model Lab project facet keys.
-
#list_model_lab_project_facet_keys_with_http_info(opts = {}) ⇒ Array<(ModelLabFacetKeysResponse, Integer, Hash)>
List Model Lab project facet keys.
-
#list_model_lab_project_facet_values(facet_type, facet_name, opts = {}) ⇒ Object
List Model Lab project facet values.
-
#list_model_lab_project_facet_values_with_http_info(facet_type, facet_name, opts = {}) ⇒ Array<(ModelLabFacetValuesResponse, Integer, Hash)>
List Model Lab project facet values.
-
#list_model_lab_projects(opts = {}) ⇒ Object
List Model Lab projects.
-
#list_model_lab_projects_with_http_info(opts = {}) ⇒ Array<(ModelLabProjectsResponse, Integer, Hash)>
List Model Lab projects.
-
#list_model_lab_run_artifacts(run_id, opts = {}) ⇒ Object
List Model Lab run artifacts.
-
#list_model_lab_run_artifacts_with_http_info(run_id, opts = {}) ⇒ Array<(ModelLabRunArtifactsResponse, Integer, Hash)>
List Model Lab run artifacts.
-
#list_model_lab_run_facet_keys(filter_project_id, opts = {}) ⇒ Object
List Model Lab run facet keys.
-
#list_model_lab_run_facet_keys_with_http_info(filter_project_id, opts = {}) ⇒ Array<(ModelLabFacetKeysResponse, Integer, Hash)>
List Model Lab run facet keys.
-
#list_model_lab_run_facet_values(filter_project_id, facet_type, facet_name, opts = {}) ⇒ Object
List Model Lab run facet values.
-
#list_model_lab_run_facet_values_with_http_info(filter_project_id, facet_type, facet_name, opts = {}) ⇒ Array<(ModelLabFacetValuesResponse, Integer, Hash)>
List Model Lab run facet values.
-
#list_model_lab_runs(opts = {}) ⇒ Object
List Model Lab runs.
-
#list_model_lab_runs_with_http_info(opts = {}) ⇒ Array<(ModelLabRunsResponse, Integer, Hash)>
List Model Lab runs.
-
#pin_model_lab_run(run_id, opts = {}) ⇒ Object
Pin a Model Lab run.
-
#pin_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Pin a Model Lab run.
-
#star_model_lab_project(project_id, opts = {}) ⇒ Object
Star a Model Lab project.
-
#star_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Star a Model Lab project.
-
#unpin_model_lab_run(run_id, opts = {}) ⇒ Object
Unpin a Model Lab run.
-
#unpin_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Unpin a Model Lab run.
-
#unstar_model_lab_project(project_id, opts = {}) ⇒ Object
Remove star from a Model Lab project.
-
#unstar_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Remove star from a Model Lab project.
Constructor Details
#initialize(api_client = DatadogAPIClient::APIClient.default) ⇒ ModelLabAPIAPI
Returns a new instance of ModelLabAPIAPI.
22 23 24 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 22 def initialize(api_client = DatadogAPIClient::APIClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
20 21 22 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 20 def api_client @api_client end |
Instance Method Details
#delete_model_lab_run(run_id, opts = {}) ⇒ Object
Delete a Model Lab run.
29 30 31 32 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 29 def delete_model_lab_run(run_id, opts = {}) delete_model_lab_run_with_http_info(run_id, opts) nil end |
#delete_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a Model Lab run.
Delete a Model Lab run by its ID.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 41 def delete_model_lab_run_with_http_info(run_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.delete_model_lab_run".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_model_lab_run") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_model_lab_run")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.delete_model_lab_run ...' end # verify the required parameter 'run_id' is set if @api_client.config.client_side_validation && run_id.nil? fail ArgumentError, "Missing the required parameter 'run_id' when calling ModelLabAPIAPI.delete_model_lab_run" end # resource path local_var_path = '/api/v2/model-lab-api/runs/{run_id}'.sub('{run_id}', CGI.escape(run_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :delete_model_lab_run, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#delete_model_lab_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_model_lab_artifact_content(project_id, artifact_path, opts = {}) ⇒ Object
Get Model Lab artifact content.
100 101 102 103 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 100 def get_model_lab_artifact_content(project_id, artifact_path, opts = {}) data, _status_code, _headers = get_model_lab_artifact_content_with_http_info(project_id, artifact_path, opts) data end |
#get_model_lab_artifact_content_with_http_info(project_id, artifact_path, opts = {}) ⇒ Array<(File, Integer, Hash)>
Get Model Lab artifact content.
Download the raw content of a Model Lab artifact file.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 113 def get_model_lab_artifact_content_with_http_info(project_id, artifact_path, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.get_model_lab_artifact_content".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_model_lab_artifact_content") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_model_lab_artifact_content")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.get_model_lab_artifact_content ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ModelLabAPIAPI.get_model_lab_artifact_content" end # verify the required parameter 'artifact_path' is set if @api_client.config.client_side_validation && artifact_path.nil? fail ArgumentError, "Missing the required parameter 'artifact_path' when calling ModelLabAPIAPI.get_model_lab_artifact_content" end # resource path local_var_path = '/api/v2/model-lab-api/artifacts/content' # query parameters query_params = opts[:query_params] || {} query_params[:'project_id'] = project_id query_params[:'artifact_path'] = artifact_path # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :get_model_lab_artifact_content, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#get_model_lab_artifact_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_model_lab_project(project_id, opts = {}) ⇒ Object
Get a Model Lab project.
178 179 180 181 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 178 def get_model_lab_project(project_id, opts = {}) data, _status_code, _headers = get_model_lab_project_with_http_info(project_id, opts) data end |
#get_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(ModelLabProjectResponse, Integer, Hash)>
Get a Model Lab project.
Get a single Model Lab project by its ID.
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 190 def get_model_lab_project_with_http_info(project_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.get_model_lab_project".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_model_lab_project") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_model_lab_project")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.get_model_lab_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ModelLabAPIAPI.get_model_lab_project" end # resource path local_var_path = '/api/v2/model-lab-api/projects/{project_id}'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabProjectResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :get_model_lab_project, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#get_model_lab_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_model_lab_run(run_id, opts = {}) ⇒ Object
Get a Model Lab run.
249 250 251 252 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 249 def get_model_lab_run(run_id, opts = {}) data, _status_code, _headers = get_model_lab_run_with_http_info(run_id, opts) data end |
#get_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(ModelLabRunResponse, Integer, Hash)>
Get a Model Lab run.
Get a single Model Lab run by its ID.
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 261 def get_model_lab_run_with_http_info(run_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.get_model_lab_run".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_model_lab_run") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_model_lab_run")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.get_model_lab_run ...' end # verify the required parameter 'run_id' is set if @api_client.config.client_side_validation && run_id.nil? fail ArgumentError, "Missing the required parameter 'run_id' when calling ModelLabAPIAPI.get_model_lab_run" end # resource path local_var_path = '/api/v2/model-lab-api/runs/{run_id}'.sub('{run_id}', CGI.escape(run_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabRunResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :get_model_lab_run, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#get_model_lab_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_project_artifacts(project_id, opts = {}) ⇒ Object
List Model Lab project artifacts.
320 321 322 323 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 320 def list_model_lab_project_artifacts(project_id, opts = {}) data, _status_code, _headers = list_model_lab_project_artifacts_with_http_info(project_id, opts) data end |
#list_model_lab_project_artifacts_with_http_info(project_id, opts = {}) ⇒ Array<(ModelLabProjectArtifactsResponse, Integer, Hash)>
List Model Lab project artifacts.
List all artifact files for a specific Model Lab project.
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 332 def list_model_lab_project_artifacts_with_http_info(project_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_project_artifacts".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_project_artifacts") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_project_artifacts")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_project_artifacts ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ModelLabAPIAPI.list_model_lab_project_artifacts" end # resource path local_var_path = '/api/v2/model-lab-api/projects/{project_id}/artifacts'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabProjectArtifactsResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_project_artifacts, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_project_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_project_facet_keys(opts = {}) ⇒ Object
List Model Lab project facet keys.
391 392 393 394 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 391 def list_model_lab_project_facet_keys(opts = {}) data, _status_code, _headers = list_model_lab_project_facet_keys_with_http_info(opts) data end |
#list_model_lab_project_facet_keys_with_http_info(opts = {}) ⇒ Array<(ModelLabFacetKeysResponse, Integer, Hash)>
List Model Lab project facet keys.
List all available facet keys for filtering Model Lab projects.
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 402 def list_model_lab_project_facet_keys_with_http_info(opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_project_facet_keys".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_project_facet_keys") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_project_facet_keys")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_project_facet_keys ...' end # resource path local_var_path = '/api/v2/model-lab-api/project-facet-keys' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabFacetKeysResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_project_facet_keys, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_project_facet_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_project_facet_values(facet_type, facet_name, opts = {}) ⇒ Object
List Model Lab project facet values.
457 458 459 460 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 457 def list_model_lab_project_facet_values(facet_type, facet_name, opts = {}) data, _status_code, _headers = list_model_lab_project_facet_values_with_http_info(facet_type, facet_name, opts) data end |
#list_model_lab_project_facet_values_with_http_info(facet_type, facet_name, opts = {}) ⇒ Array<(ModelLabFacetValuesResponse, Integer, Hash)>
List Model Lab project facet values.
List available facet values for a specific project facet key.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 470 def list_model_lab_project_facet_values_with_http_info(facet_type, facet_name, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_project_facet_values".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_project_facet_values") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_project_facet_values")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_project_facet_values ...' end # verify the required parameter 'facet_type' is set if @api_client.config.client_side_validation && facet_type.nil? fail ArgumentError, "Missing the required parameter 'facet_type' when calling ModelLabAPIAPI.list_model_lab_project_facet_values" end # verify enum value allowable_values = ['tag'] if @api_client.config.client_side_validation && !allowable_values.include?(facet_type) fail ArgumentError, "invalid value for \"facet_type\", must be one of #{allowable_values}" end # verify the required parameter 'facet_name' is set if @api_client.config.client_side_validation && facet_name.nil? fail ArgumentError, "Missing the required parameter 'facet_name' when calling ModelLabAPIAPI.list_model_lab_project_facet_values" end # resource path local_var_path = '/api/v2/model-lab-api/project-facet-values' # query parameters query_params = opts[:query_params] || {} query_params[:'facet_type'] = facet_type query_params[:'facet_name'] = facet_name # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabFacetValuesResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_project_facet_values, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_project_facet_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_projects(opts = {}) ⇒ Object
List Model Lab projects.
540 541 542 543 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 540 def list_model_lab_projects(opts = {}) data, _status_code, _headers = list_model_lab_projects_with_http_info(opts) data end |
#list_model_lab_projects_with_http_info(opts = {}) ⇒ Array<(ModelLabProjectsResponse, Integer, Hash)>
List Model Lab projects.
List all Model Lab projects for the current organization.
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 557 def list_model_lab_projects_with_http_info(opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_projects".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_projects") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_projects")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_projects ...' end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ModelLabAPIAPI.list_model_lab_projects, must be smaller than or equal to 100.' end # resource path local_var_path = '/api/v2/model-lab-api/projects' # query parameters query_params = opts[:query_params] || {} query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filter[owner_id]'] = opts[:'filter_owner_id'] if !opts[:'filter_owner_id'].nil? query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabProjectsResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_projects, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_run_artifacts(run_id, opts = {}) ⇒ Object
List Model Lab run artifacts.
621 622 623 624 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 621 def list_model_lab_run_artifacts(run_id, opts = {}) data, _status_code, _headers = list_model_lab_run_artifacts_with_http_info(run_id, opts) data end |
#list_model_lab_run_artifacts_with_http_info(run_id, opts = {}) ⇒ Array<(ModelLabRunArtifactsResponse, Integer, Hash)>
List Model Lab run artifacts.
List artifact files for a specific Model Lab run.
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 634 def list_model_lab_run_artifacts_with_http_info(run_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_run_artifacts".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_run_artifacts") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_run_artifacts")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_run_artifacts ...' end # verify the required parameter 'run_id' is set if @api_client.config.client_side_validation && run_id.nil? fail ArgumentError, "Missing the required parameter 'run_id' when calling ModelLabAPIAPI.list_model_lab_run_artifacts" end # resource path local_var_path = '/api/v2/model-lab-api/runs/{run_id}/artifacts'.sub('{run_id}', CGI.escape(run_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabRunArtifactsResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_run_artifacts, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_run_artifacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_run_facet_keys(filter_project_id, opts = {}) ⇒ Object
List Model Lab run facet keys.
694 695 696 697 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 694 def list_model_lab_run_facet_keys(filter_project_id, opts = {}) data, _status_code, _headers = list_model_lab_run_facet_keys_with_http_info(filter_project_id, opts) data end |
#list_model_lab_run_facet_keys_with_http_info(filter_project_id, opts = {}) ⇒ Array<(ModelLabFacetKeysResponse, Integer, Hash)>
List Model Lab run facet keys.
List all available facet keys for filtering Model Lab runs.
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 706 def list_model_lab_run_facet_keys_with_http_info(filter_project_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_run_facet_keys".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_run_facet_keys") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_run_facet_keys")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_run_facet_keys ...' end # verify the required parameter 'filter_project_id' is set if @api_client.config.client_side_validation && filter_project_id.nil? fail ArgumentError, "Missing the required parameter 'filter_project_id' when calling ModelLabAPIAPI.list_model_lab_run_facet_keys" end # resource path local_var_path = '/api/v2/model-lab-api/facet-keys' # query parameters query_params = opts[:query_params] || {} query_params[:'filter[project_id]'] = filter_project_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabFacetKeysResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_run_facet_keys, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_run_facet_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_run_facet_values(filter_project_id, facet_type, facet_name, opts = {}) ⇒ Object
List Model Lab run facet values.
766 767 768 769 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 766 def list_model_lab_run_facet_values(filter_project_id, facet_type, facet_name, opts = {}) data, _status_code, _headers = list_model_lab_run_facet_values_with_http_info(filter_project_id, facet_type, facet_name, opts) data end |
#list_model_lab_run_facet_values_with_http_info(filter_project_id, facet_type, facet_name, opts = {}) ⇒ Array<(ModelLabFacetValuesResponse, Integer, Hash)>
List Model Lab run facet values.
List available facet values for a specific run facet key.
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 780 def list_model_lab_run_facet_values_with_http_info(filter_project_id, facet_type, facet_name, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_run_facet_values".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_run_facet_values") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_run_facet_values")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_run_facet_values ...' end # verify the required parameter 'filter_project_id' is set if @api_client.config.client_side_validation && filter_project_id.nil? fail ArgumentError, "Missing the required parameter 'filter_project_id' when calling ModelLabAPIAPI.list_model_lab_run_facet_values" end # verify the required parameter 'facet_type' is set if @api_client.config.client_side_validation && facet_type.nil? fail ArgumentError, "Missing the required parameter 'facet_type' when calling ModelLabAPIAPI.list_model_lab_run_facet_values" end # verify enum value allowable_values = ['parameter', 'attribute', 'tag', 'metric'] if @api_client.config.client_side_validation && !allowable_values.include?(facet_type) fail ArgumentError, "invalid value for \"facet_type\", must be one of #{allowable_values}" end # verify the required parameter 'facet_name' is set if @api_client.config.client_side_validation && facet_name.nil? fail ArgumentError, "Missing the required parameter 'facet_name' when calling ModelLabAPIAPI.list_model_lab_run_facet_values" end # resource path local_var_path = '/api/v2/model-lab-api/facet-values' # query parameters query_params = opts[:query_params] || {} query_params[:'filter[project_id]'] = filter_project_id query_params[:'facet_type'] = facet_type query_params[:'facet_name'] = facet_name # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabFacetValuesResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_run_facet_values, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_run_facet_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_model_lab_runs(opts = {}) ⇒ Object
List Model Lab runs.
855 856 857 858 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 855 def list_model_lab_runs(opts = {}) data, _status_code, _headers = list_model_lab_runs_with_http_info(opts) data end |
#list_model_lab_runs_with_http_info(opts = {}) ⇒ Array<(ModelLabRunsResponse, Integer, Hash)>
List Model Lab runs.
List all Model Lab runs for the current organization.
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 880 def list_model_lab_runs_with_http_info(opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.list_model_lab_runs".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_model_lab_runs") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_model_lab_runs")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.list_model_lab_runs ...' end allowable_values = ['pending', 'running', 'completed', 'failed', 'killed', 'unresponsive', 'paused'] if @api_client.config.client_side_validation && opts[:'filter_status'] && !allowable_values.include?(opts[:'filter_status']) fail ArgumentError, "invalid value for \"filter_status\", must be one of #{allowable_values}" end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100 fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ModelLabAPIAPI.list_model_lab_runs, must be smaller than or equal to 100.' end # resource path local_var_path = '/api/v2/model-lab-api/runs' # query parameters query_params = opts[:query_params] || {} query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filter[owner_id]'] = opts[:'filter_owner_id'] if !opts[:'filter_owner_id'].nil? query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil? query_params[:'filter[project_id]'] = opts[:'filter_project_id'] if !opts[:'filter_project_id'].nil? query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil? query_params[:'filter[params]'] = opts[:'filter_params'] if !opts[:'filter_params'].nil? query_params[:'filter[parent_run_id]'] = opts[:'filter_parent_run_id'] if !opts[:'filter_parent_run_id'].nil? query_params[:'pinned_first'] = opts[:'pinned_first'] if !opts[:'pinned_first'].nil? query_params[:'include_pinned'] = opts[:'include_pinned'] if !opts[:'include_pinned'].nil? query_params[:'include_descendant_matches'] = opts[:'include_descendant_matches'] if !opts[:'include_descendant_matches'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ModelLabRunsResponse' # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :list_model_lab_runs, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#list_model_lab_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#pin_model_lab_run(run_id, opts = {}) ⇒ Object
Pin a Model Lab run.
956 957 958 959 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 956 def pin_model_lab_run(run_id, opts = {}) pin_model_lab_run_with_http_info(run_id, opts) nil end |
#pin_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Pin a Model Lab run.
Pin a Model Lab run for the current user.
968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 968 def pin_model_lab_run_with_http_info(run_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.pin_model_lab_run".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.pin_model_lab_run") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.pin_model_lab_run")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.pin_model_lab_run ...' end # verify the required parameter 'run_id' is set if @api_client.config.client_side_validation && run_id.nil? fail ArgumentError, "Missing the required parameter 'run_id' when calling ModelLabAPIAPI.pin_model_lab_run" end # resource path local_var_path = '/api/v2/model-lab-api/runs/{run_id}/pin'.sub('{run_id}', CGI.escape(run_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :pin_model_lab_run, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#pin_model_lab_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#star_model_lab_project(project_id, opts = {}) ⇒ Object
Star a Model Lab project.
1027 1028 1029 1030 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1027 def star_model_lab_project(project_id, opts = {}) star_model_lab_project_with_http_info(project_id, opts) nil end |
#star_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Star a Model Lab project.
Star a Model Lab project for the current user.
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1039 def star_model_lab_project_with_http_info(project_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.star_model_lab_project".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.star_model_lab_project") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.star_model_lab_project")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.star_model_lab_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ModelLabAPIAPI.star_model_lab_project" end # resource path local_var_path = '/api/v2/model-lab-api/projects/{project_id}/star'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :star_model_lab_project, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#star_model_lab_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#unpin_model_lab_run(run_id, opts = {}) ⇒ Object
Unpin a Model Lab run.
1098 1099 1100 1101 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1098 def unpin_model_lab_run(run_id, opts = {}) unpin_model_lab_run_with_http_info(run_id, opts) nil end |
#unpin_model_lab_run_with_http_info(run_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Unpin a Model Lab run.
Remove the pin from a Model Lab run for the current user.
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1110 def unpin_model_lab_run_with_http_info(run_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.unpin_model_lab_run".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unpin_model_lab_run") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unpin_model_lab_run")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.unpin_model_lab_run ...' end # verify the required parameter 'run_id' is set if @api_client.config.client_side_validation && run_id.nil? fail ArgumentError, "Missing the required parameter 'run_id' when calling ModelLabAPIAPI.unpin_model_lab_run" end # resource path local_var_path = '/api/v2/model-lab-api/runs/{run_id}/pin'.sub('{run_id}', CGI.escape(run_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :unpin_model_lab_run, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#unpin_model_lab_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#unstar_model_lab_project(project_id, opts = {}) ⇒ Object
Remove star from a Model Lab project.
1169 1170 1171 1172 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1169 def unstar_model_lab_project(project_id, opts = {}) unstar_model_lab_project_with_http_info(project_id, opts) nil end |
#unstar_model_lab_project_with_http_info(project_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Remove star from a Model Lab project.
Remove the star from a Model Lab project for the current user.
1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/datadog_api_client/v2/api/model_lab_api_api.rb', line 1181 def unstar_model_lab_project_with_http_info(project_id, opts = {}) unstable_enabled = @api_client.config.unstable_operations["v2.unstar_model_lab_project".to_sym] if unstable_enabled @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.unstar_model_lab_project") else raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.unstar_model_lab_project")) end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ModelLabAPIAPI.unstar_model_lab_project ...' end # verify the required parameter 'project_id' is set if @api_client.config.client_side_validation && project_id.nil? fail ArgumentError, "Missing the required parameter 'project_id' when calling ModelLabAPIAPI.unstar_model_lab_project" end # resource path local_var_path = '/api/v2/model-lab-api/projects/{project_id}/star'.sub('{project_id}', CGI.escape(project_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] = opts.merge( :operation => :unstar_model_lab_project, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type, :api_version => "V2" ) data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ModelLabAPIAPI#unstar_model_lab_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |