KeyMetricApi
valkyrai-api
All URIs are relative to http://localhost:8080/v1
Method | HTTP request | Description |
---|---|---|
deleteKeyMetric | DELETE KeyMetricApi | Delete a KeyMetric. |
deleteKeyMetric
Void
deleteKeyMetric(id)
Delete a KeyMetric.
Deletes a specific KeyMetric.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.KeyMetricApi;
KeyMetricApi apiInstance = new KeyMetricApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the KeyMetric.
try {
Void result = apiInstance.deleteKeyMetric(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#deleteKeyMetric");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the KeyMetric. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
getKeyMetric
KeyMetric
getKeyMetric(id)
Retrieve a single KeyMetric
Retrieves a single KeyMetric for a specific uid.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.KeyMetricApi;
KeyMetricApi apiInstance = new KeyMetricApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the KeyMetric.
try {
KeyMetric result = apiInstance.getKeyMetric(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#getKeyMetric");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the KeyMetric. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
getKeyMetricList
KeyMetric
getKeyMetricList(pagesizesort)
Retrieve a list of KeyMetrics
Retrieves a list of KeyMetrics.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.KeyMetricApi;
KeyMetricApi apiInstance = new KeyMetricApi();
Integer page = 0; // Integer |
Integer size = 20; // Integer |
List<String> sort = Arrays.asList(); // List<String> |
try {
KeyMetric result = apiInstance.getKeyMetricList(pagesizesort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#getKeyMetricList");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | [optional] [default to 0] | |
size | Integer | [optional] [default to 20] | |
sort | List<String> | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
postKeyMetric
KeyMetric
postKeyMetric(keyMetric)
Create a new KeyMetric
Creates a new KeyMetric.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.KeyMetricApi;
KeyMetricApi apiInstance = new KeyMetricApi();
KeyMetric keyMetric = new KeyMetric(); // KeyMetric | KeyMetric details.
try {
KeyMetric result = apiInstance.postKeyMetric(keyMetric);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#postKeyMetric");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
keyMetric | KeyMetric | KeyMetric details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
updateKeyMetric
KeyMetric
updateKeyMetric(idkeyMetric)
Update an existing KeyMetric
Updates an existing KeyMetric.
Example
Import classes:
import com.valkyrlabs.ApiException;
import com.valkyrlabs.api.KeyMetricApi;
KeyMetricApi apiInstance = new KeyMetricApi();
UUID id = UUID.randomUUID(); // UUID | Unique identifier for the KeyMetric.
KeyMetric keyMetric = new KeyMetric(); // KeyMetric | Updated KeyMetric details.
try {
KeyMetric result = apiInstance.updateKeyMetric(idkeyMetric);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#updateKeyMetric");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Unique identifier for the KeyMetric. | |
keyMetric | KeyMetric | Updated KeyMetric details. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Generated Version Details
~ | value |
---|---|
GENERATOR VERSION | com.valkyrlabs:ValkyrAI API 1.0.1-SNAPSHOT |
API ARTIFACT | com.valkyrlabs.valkyrai-api.jar |
GENERATOR VERSION | org.openapitools.openapi-generator:7.5.0 |
GENERATOR CLASS | org.openapitools.codegen.languages.SpringCodegen |
GENERATED DATE | 2025-09-03T16:35:42.569765-07:00[America/Los_Angeles] |