Skip to main content

KeyMetricApi

valkyrai-api

All URIs are relative to http://localhost:8080/v1

MethodHTTP requestDescription
deleteKeyMetricDELETE KeyMetricApiDelete 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

NameTypeDescriptionNotes
idUUIDUnique identifier for the KeyMetric.

Return type

Void

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the KeyMetric.

Return type

KeyMetric

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

KeyMetric

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

NameTypeDescriptionNotes
keyMetricKeyMetricKeyMetric details.

Return type

KeyMetric

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

NameTypeDescriptionNotes
idUUIDUnique identifier for the KeyMetric.
keyMetricKeyMetricUpdated KeyMetric details.

Return type

KeyMetric

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-04-09T20:27:13.881184-07:00[America/Los_Angeles]