jobsHistoryAlgorithmsGet
Fetch list of all distinct algorithms used by the filtered jobs.
This endpoint lists all distinct algorithms used by the filtered jobs.
/jobs/history/algorithms
Usage and SDK Samples
curl -X GET "http://localhost/v1/jobs/history/algorithms?q=&locale="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlgorithmsApi;
import java.io.File;
import java.util.*;
public class AlgorithmsApiExample {
public static void main(String[] args) {
AlgorithmsApi apiInstance = new AlgorithmsApi();
String q = q_example; // String | The query in RSQL format.
String locale = locale_example; // String | The locale adopted for internationalization. When provided, this locale defines the language for message responses.
try {
AlgorithmResponse result = apiInstance.jobsHistoryAlgorithmsGet(q, locale);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlgorithmsApi#jobsHistoryAlgorithmsGet");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AlgorithmsApi;
public class AlgorithmsApiExample {
public static void main(String[] args) {
AlgorithmsApi apiInstance = new AlgorithmsApi();
String q = q_example; // String | The query in RSQL format.
String locale = locale_example; // String | The locale adopted for internationalization. When provided, this locale defines the language for message responses.
try {
AlgorithmResponse result = apiInstance.jobsHistoryAlgorithmsGet(q, locale);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlgorithmsApi#jobsHistoryAlgorithmsGet");
e.printStackTrace();
}
}
}
String *q = q_example; // The query in RSQL format. (optional) (default to null)
String *locale = locale_example; // The locale adopted for internationalization. When provided, this locale defines the language for message responses. (optional) (default to null)
AlgorithmsApi *apiInstance = [[AlgorithmsApi alloc] init];
// Fetch list of all distinct algorithms used by the filtered jobs.
[apiInstance jobsHistoryAlgorithmsGetWith:q
locale:locale
completionHandler: ^(AlgorithmResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var JobHistoryService = require('job_history_service');
var api = new JobHistoryService.AlgorithmsApi()
var opts = {
'q': q_example, // {String} The query in RSQL format.
'locale': locale_example // {String} The locale adopted for internationalization. When provided, this locale defines the language for message responses.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.jobsHistoryAlgorithmsGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class jobsHistoryAlgorithmsGetExample
{
public void main()
{
var apiInstance = new AlgorithmsApi();
var q = q_example; // String | The query in RSQL format. (optional) (default to null)
var locale = locale_example; // String | The locale adopted for internationalization. When provided, this locale defines the language for message responses. (optional) (default to null)
try
{
// Fetch list of all distinct algorithms used by the filtered jobs.
AlgorithmResponse result = apiInstance.jobsHistoryAlgorithmsGet(q, locale);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AlgorithmsApi.jobsHistoryAlgorithmsGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new OpenAPITools\Client\Api\AlgorithmsApi();
$q = q_example; // String | The query in RSQL format.
$locale = locale_example; // String | The locale adopted for internationalization. When provided, this locale defines the language for message responses.
try {
$result = $api_instance->jobsHistoryAlgorithmsGet($q, $locale);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlgorithmsApi->jobsHistoryAlgorithmsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlgorithmsApi;
my $api_instance = WWW::OPenAPIClient::AlgorithmsApi->new();
my $q = q_example; # String | The query in RSQL format.
my $locale = locale_example; # String | The locale adopted for internationalization. When provided, this locale defines the language for message responses.
eval {
my $result = $api_instance->jobsHistoryAlgorithmsGet(q => $q, locale => $locale);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AlgorithmsApi->jobsHistoryAlgorithmsGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = openapi_client.AlgorithmsApi()
q = q_example # String | The query in RSQL format. (optional) (default to null)
locale = locale_example # String | The locale adopted for internationalization. When provided, this locale defines the language for message responses. (optional) (default to null)
try:
# Fetch list of all distinct algorithms used by the filtered jobs.
api_response = api_instance.jobs_history_algorithms_get(q=q, locale=locale)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlgorithmsApi->jobsHistoryAlgorithmsGet: %s\n" % e)
extern crate AlgorithmsApi;
pub fn main() {
let q = q_example; // String
let locale = locale_example; // String
let mut context = AlgorithmsApi::Context::default();
let result = client.jobsHistoryAlgorithmsGet(q, locale, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Query parameters
Name | Description |
---|---|
q |
String
The query in RSQL format.
|
locale |
String
The locale adopted for internationalization. When provided, this locale defines the language for message responses.
|