org.openmetadata.client.api.MetricsApi Maven / Gradle / Ivy
package org.openmetadata.client.api;
import org.openmetadata.client.ApiClient;
import org.openmetadata.client.EncodingUtils;
import org.openmetadata.client.model.ApiResponse;
import org.openmetadata.client.model.ChangeEvent;
import org.openmetadata.client.model.CreateMetric;
import org.openmetadata.client.model.EntityHistory;
import org.openmetadata.client.model.Metric;
import org.openmetadata.client.model.MetricsList;
import org.openmetadata.client.model.RestoreEntity;
import java.util.UUID;
import org.openmetadata.client.model.VoteRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import feign.*;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T14:35:21.920766473Z[Etc/UTC]")
public interface MetricsApi extends ApiClient.Api {
/**
* Add a follower
* Add a user identified by `userId` as followed of this Metric.
* @param id Id of the Metric (required)
* @param body Id of the user to be added as follower (optional)
* @return ChangeEvent
*/
@RequestLine("PUT /v1/metrics/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ChangeEvent addFollower2(@Param("id") UUID id, UUID body);
/**
* Add a follower
* Similar to addFollower2
but it also returns the http response headers .
* Add a user identified by `userId` as followed of this Metric.
* @param id Id of the Metric (required)
* @param body Id of the user to be added as follower (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/metrics/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse addFollower2WithHttpInfo(@Param("id") UUID id, UUID body);
/**
* Create a Metric
* Create a Metric.
* @param createMetric (optional)
* @return Metric
*/
@RequestLine("POST /v1/metrics")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Metric createMetric(CreateMetric createMetric);
/**
* Create a Metric
* Similar to createMetric
but it also returns the http response headers .
* Create a Metric.
* @param createMetric (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("POST /v1/metrics")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createMetricWithHttpInfo(CreateMetric createMetric);
/**
* Create or update a metric
* Create a new metric, if it does not exist or update an existing metric.
* @param createMetric (optional)
* @return Metric
*/
@RequestLine("PUT /v1/metrics")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Metric createOrUpdateMetric(CreateMetric createMetric);
/**
* Create or update a metric
* Similar to createOrUpdateMetric
but it also returns the http response headers .
* Create a new metric, if it does not exist or update an existing metric.
* @param createMetric (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/metrics")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createOrUpdateMetricWithHttpInfo(CreateMetric createMetric);
/**
* Delete a Metric by fully qualified name
* Delete a Metric by `fullyQualifiedName`.
* @param fqn Fully qualified name of the Metric (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/metrics/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteAPIEndpointByFQN1(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a Metric by fully qualified name
* Similar to deleteAPIEndpointByFQN1
but it also returns the http response headers .
* Delete a Metric by `fullyQualifiedName`.
* @param fqn Fully qualified name of the Metric (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/metrics/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteAPIEndpointByFQN1WithHttpInfo(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a Metric by fully qualified name
* Delete a Metric by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteAPIEndpointByFQN1
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteAPIEndpointByFQN1QueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Fully qualified name of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/metrics/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteAPIEndpointByFQN1(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteAPIEndpointByFQN1QueryParams queryParams);
/**
* Delete a Metric by fully qualified name
* Delete a Metric by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteAPIEndpointByFQN1
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Fully qualified name of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/metrics/name/{fqn}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteAPIEndpointByFQN1WithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteAPIEndpointByFQN1QueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteAPIEndpointByFQN1
method in a fluent style.
*/
public static class DeleteAPIEndpointByFQN1QueryParams extends HashMap {
public DeleteAPIEndpointByFQN1QueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
}
/**
* Remove a follower
* Remove the user identified `userId` as a follower of the Metric.
* @param id Id of the Metric (required)
* @param userId Id of the user being removed as follower (required)
* @return ChangeEvent
*/
@RequestLine("DELETE /v1/metrics/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
ChangeEvent deleteFollower3(@Param("id") UUID id, @Param("userId") String userId);
/**
* Remove a follower
* Similar to deleteFollower3
but it also returns the http response headers .
* Remove the user identified `userId` as a follower of the Metric.
* @param id Id of the Metric (required)
* @param userId Id of the user being removed as follower (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("DELETE /v1/metrics/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteFollower3WithHttpInfo(@Param("id") UUID id, @Param("userId") String userId);
/**
* Delete a Metric by id
* Delete a Metric by `id`.
* @param id Id of the Metric (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/metrics/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteMetric(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a Metric by id
* Similar to deleteMetric
but it also returns the http response headers .
* Delete a Metric by `id`.
* @param id Id of the Metric (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/metrics/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMetricWithHttpInfo(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete a Metric by id
* Delete a Metric by `id`.
* Note, this is equivalent to the other deleteMetric
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteMetricQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/metrics/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteMetric(@Param("id") UUID id, @QueryMap(encoded=true) DeleteMetricQueryParams queryParams);
/**
* Delete a Metric by id
* Delete a Metric by `id`.
* Note, this is equivalent to the other deleteMetric
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/metrics/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMetricWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) DeleteMetricQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteMetric
method in a fluent style.
*/
public static class DeleteMetricQueryParams extends HashMap {
public DeleteMetricQueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a Metric by fully qualified name.
* Get a Metric by fully qualified name.
* @param fqn Fully qualified name of the Metric (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return Metric
*/
@RequestLine("GET /v1/metrics/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Metric getMetricByFQN(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get a Metric by fully qualified name.
* Similar to getMetricByFQN
but it also returns the http response headers .
* Get a Metric by fully qualified name.
* @param fqn Fully qualified name of the Metric (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/metrics/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMetricByFQNWithHttpInfo(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get a Metric by fully qualified name.
* Get a Metric by fully qualified name.
* Note, this is equivalent to the other getMetricByFQN
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetMetricByFQNQueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Fully qualified name of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Metric
*/
@RequestLine("GET /v1/metrics/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Metric getMetricByFQN(@Param("fqn") String fqn, @QueryMap(encoded=true) GetMetricByFQNQueryParams queryParams);
/**
* Get a Metric by fully qualified name.
* Get a Metric by fully qualified name.
* Note, this is equivalent to the other getMetricByFQN
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Fully qualified name of the Metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Metric
*/
@RequestLine("GET /v1/metrics/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMetricByFQNWithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) GetMetricByFQNQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getMetricByFQN
method in a fluent style.
*/
public static class GetMetricByFQNQueryParams extends HashMap {
public GetMetricByFQNQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetMetricByFQNQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a metric by Id
* Get a metric by `Id`.
* @param id Id of the metric (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return Metric
*/
@RequestLine("GET /v1/metrics/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Metric getMetricByID(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get a metric by Id
* Similar to getMetricByID
but it also returns the http response headers .
* Get a metric by `Id`.
* @param id Id of the metric (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/metrics/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMetricByIDWithHttpInfo(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get a metric by Id
* Get a metric by `Id`.
* Note, this is equivalent to the other getMetricByID
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetMetricByIDQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Metric
*/
@RequestLine("GET /v1/metrics/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
Metric getMetricByID(@Param("id") UUID id, @QueryMap(encoded=true) GetMetricByIDQueryParams queryParams);
/**
* Get a metric by Id
* Get a metric by `Id`.
* Note, this is equivalent to the other getMetricByID
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the metric (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return Metric
*/
@RequestLine("GET /v1/metrics/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMetricByIDWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) GetMetricByIDQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getMetricByID
method in a fluent style.
*/
public static class GetMetricByIDQueryParams extends HashMap {
public GetMetricByIDQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetMetricByIDQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a version of the Metric
* Get a version of the Metric by given `id`
* @param id Id of the Metric (required)
* @param version Metric version number in the form `major`.`minor` (required)
* @return Metric
*/
@RequestLine("GET /v1/metrics/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
Metric getSpecificEndpointVersion1(@Param("id") UUID id, @Param("version") String version);
/**
* Get a version of the Metric
* Similar to getSpecificEndpointVersion1
but it also returns the http response headers .
* Get a version of the Metric by given `id`
* @param id Id of the Metric (required)
* @param version Metric version number in the form `major`.`minor` (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/metrics/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
ApiResponse getSpecificEndpointVersion1WithHttpInfo(@Param("id") UUID id, @Param("version") String version);
/**
* List Metric versions
* Get a list of all the versions of a metric identified by `id`
* @param id Id of the metric (required)
* @return EntityHistory
*/
@RequestLine("GET /v1/metrics/{id}/versions")
@Headers({
"Accept: application/json",
})
EntityHistory listAllMetricVersion(@Param("id") UUID id);
/**
* List Metric versions
* Similar to listAllMetricVersion
but it also returns the http response headers .
* Get a list of all the versions of a metric identified by `id`
* @param id Id of the metric (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/metrics/{id}/versions")
@Headers({
"Accept: application/json",
})
ApiResponse listAllMetricVersionWithHttpInfo(@Param("id") UUID id);
/**
* List metrics
* Get a list of metrics. Use `fields` parameter to get only necessary fields.
* @param fields Fields requested in the returned resource (optional)
* @param limit (optional, default to 10)
* @param before Returns list of metrics before this cursor (optional)
* @param after Returns list of metrics after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return MetricsList
*/
@RequestLine("GET /v1/metrics?fields={fields}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
MetricsList listMetrics(@Param("fields") String fields, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List metrics
* Similar to listMetrics
but it also returns the http response headers .
* Get a list of metrics. Use `fields` parameter to get only necessary fields.
* @param fields Fields requested in the returned resource (optional)
* @param limit (optional, default to 10)
* @param before Returns list of metrics before this cursor (optional)
* @param after Returns list of metrics after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/metrics?fields={fields}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listMetricsWithHttpInfo(@Param("fields") String fields, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List metrics
* Get a list of metrics. Use `fields` parameter to get only necessary fields.
* Note, this is equivalent to the other listMetrics
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link ListMetricsQueryParams} class that allows for
* building up this map in a fluent style.
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - limit - (optional, default to 10)
* - before - Returns list of metrics before this cursor (optional)
* - after - Returns list of metrics after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MetricsList
*/
@RequestLine("GET /v1/metrics?fields={fields}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
MetricsList listMetrics(@QueryMap(encoded=true) ListMetricsQueryParams queryParams);
/**
* List metrics
* Get a list of metrics. Use `fields` parameter to get only necessary fields.
* Note, this is equivalent to the other listMetrics
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - limit - (optional, default to 10)
* - before - Returns list of metrics before this cursor (optional)
* - after - Returns list of metrics after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MetricsList
*/
@RequestLine("GET /v1/metrics?fields={fields}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listMetricsWithHttpInfo(@QueryMap(encoded=true) ListMetricsQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* listMetrics
method in a fluent style.
*/
public static class ListMetricsQueryParams extends HashMap {
public ListMetricsQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public ListMetricsQueryParams limit(final Integer value) {
put("limit", EncodingUtils.encode(value));
return this;
}
public ListMetricsQueryParams before(final String value) {
put("before", EncodingUtils.encode(value));
return this;
}
public ListMetricsQueryParams after(final String value) {
put("after", EncodingUtils.encode(value));
return this;
}
public ListMetricsQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Update a Metric using name.
* Update an existing Metric using JsonPatch.
* @param fqn Name of the Metric (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a Metric using name. Documentation
*/
@RequestLine("PATCH /v1/metrics/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchMetric(@Param("fqn") String fqn, Object body);
/**
* Update a Metric using name.
* Similar to patchMetric
but it also returns the http response headers .
* Update an existing Metric using JsonPatch.
* @param fqn Name of the Metric (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a Metric using name. Documentation
*/
@RequestLine("PATCH /v1/metrics/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchMetricWithHttpInfo(@Param("fqn") String fqn, Object body);
/**
* Update a Metric
* Update an existing Metric using JsonPatch.
* @param id Id of the Metric (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a Metric Documentation
*/
@RequestLine("PATCH /v1/metrics/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchMetric1(@Param("id") UUID id, Object body);
/**
* Update a Metric
* Similar to patchMetric1
but it also returns the http response headers .
* Update an existing Metric using JsonPatch.
* @param id Id of the Metric (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update a Metric Documentation
*/
@RequestLine("PATCH /v1/metrics/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchMetric1WithHttpInfo(@Param("id") UUID id, Object body);
/**
* Restore a soft deleted Metric.
* Restore a soft deleted Metric.
* @param restoreEntity (optional)
* @return Metric
*/
@RequestLine("PUT /v1/metrics/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
Metric restore18(RestoreEntity restoreEntity);
/**
* Restore a soft deleted Metric.
* Similar to restore18
but it also returns the http response headers .
* Restore a soft deleted Metric.
* @param restoreEntity (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/metrics/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse restore18WithHttpInfo(RestoreEntity restoreEntity);
/**
* Update Vote for a Metric
* Update vote for a Metric
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return ChangeEvent
*/
@RequestLine("PUT /v1/metrics/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ChangeEvent updateVoteForMetric(@Param("id") UUID id, VoteRequest voteRequest);
/**
* Update Vote for a Metric
* Similar to updateVoteForMetric
but it also returns the http response headers .
* Update vote for a Metric
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/metrics/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse updateVoteForMetricWithHttpInfo(@Param("id") UUID id, VoteRequest voteRequest);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy