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()
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();
try {
KeyMetric result = apiInstance.getKeyMetricList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling KeyMetricApi#getKeyMetricList");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
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-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-04-09T20:27:13.881184-07:00[America/Los_Angeles] |