All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.client.api.UsageApi Maven / Gradle / Ivy

There is a newer version: 1.5.11
Show newest version
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.DailyCount;
import org.openmetadata.client.model.EntityUsage;

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-09-25T06:10:38.496414726Z[Etc/UTC]")
public interface UsageApi extends ApiClient.Api {


  /**
   * Get usage by fully qualified name
   * Get usage details for an entity identified by fully qualified name.
   * @param entity Entity type for which usage is requested (required)
   * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required)
   * @param days Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
   * @param date Usage for number of days going back from this date in ISO 8601 format (default = currentDate) (optional)
   * @return EntityUsage
   */
  @RequestLine("GET /v1/usage/{entity}/name/{fqn}?days={days}&date={date}")
  @Headers({
    "Accept: application/json",
  })
  EntityUsage getEntityUsageByFQN(@Param("entity") String entity, @Param("fqn") String fqn, @Param("days") Integer days, @Param("date") String date);

  /**
   * Get usage by fully qualified name
   * Similar to getEntityUsageByFQN but it also returns the http response headers .
   * Get usage details for an entity identified by fully qualified name.
   * @param entity Entity type for which usage is requested (required)
   * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required)
   * @param days Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
   * @param date Usage for number of days going back from this date in ISO 8601 format (default = currentDate) (optional)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("GET /v1/usage/{entity}/name/{fqn}?days={days}&date={date}")
  @Headers({
    "Accept: application/json",
  })
  ApiResponse getEntityUsageByFQNWithHttpInfo(@Param("entity") String entity, @Param("fqn") String fqn, @Param("days") Integer days, @Param("date") String date);


  /**
   * Get usage by fully qualified name
   * Get usage details for an entity identified by fully qualified name.
   * Note, this is equivalent to the other getEntityUsageByFQN 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 GetEntityUsageByFQNQueryParams} class that allows for
   * building up this map in a fluent style.
   * @param entity Entity type for which usage is requested (required)
   * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required)
   * @param queryParams Map of query parameters as name-value pairs
   *   

The following elements may be specified in the query map:

*
    *
  • days - Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
  • *
  • date - Usage for number of days going back from this date in ISO 8601 format (default = currentDate) (optional)
  • *
* @return EntityUsage */ @RequestLine("GET /v1/usage/{entity}/name/{fqn}?days={days}&date={date}") @Headers({ "Accept: application/json", }) EntityUsage getEntityUsageByFQN(@Param("entity") String entity, @Param("fqn") String fqn, @QueryMap(encoded=true) GetEntityUsageByFQNQueryParams queryParams); /** * Get usage by fully qualified name * Get usage details for an entity identified by fully qualified name. * Note, this is equivalent to the other getEntityUsageByFQN that receives the query parameters as a map, * but this one also exposes the Http response headers * @param entity Entity type for which usage is requested (required) * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • days - Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
  • *
  • date - Usage for number of days going back from this date in ISO 8601 format (default = currentDate) (optional)
  • *
* @return EntityUsage */ @RequestLine("GET /v1/usage/{entity}/name/{fqn}?days={days}&date={date}") @Headers({ "Accept: application/json", }) ApiResponse getEntityUsageByFQNWithHttpInfo(@Param("entity") String entity, @Param("fqn") String fqn, @QueryMap(encoded=true) GetEntityUsageByFQNQueryParams queryParams); /** * A convenience class for generating query parameters for the * getEntityUsageByFQN method in a fluent style. */ public static class GetEntityUsageByFQNQueryParams extends HashMap { public GetEntityUsageByFQNQueryParams days(final Integer value) { put("days", EncodingUtils.encode(value)); return this; } public GetEntityUsageByFQNQueryParams date(final String value) { put("date", EncodingUtils.encode(value)); return this; } } /** * Get usage by id * Get usage details for an entity identified by `id`. * @param entity Entity type for which usage is requested (required) * @param id Entity id (required) * @param days Usage for number of days going back from the given date (default=1, min=1, max=30) (optional) * @param date Usage for number of days going back from this date in ISO 8601 format. (default = currentDate) (optional) * @return EntityUsage */ @RequestLine("GET /v1/usage/{entity}/{id}?days={days}&date={date}") @Headers({ "Accept: application/json", }) EntityUsage getEntityUsageByID(@Param("entity") String entity, @Param("id") String id, @Param("days") Integer days, @Param("date") String date); /** * Get usage by id * Similar to getEntityUsageByID but it also returns the http response headers . * Get usage details for an entity identified by `id`. * @param entity Entity type for which usage is requested (required) * @param id Entity id (required) * @param days Usage for number of days going back from the given date (default=1, min=1, max=30) (optional) * @param date Usage for number of days going back from this date in ISO 8601 format. (default = currentDate) (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/usage/{entity}/{id}?days={days}&date={date}") @Headers({ "Accept: application/json", }) ApiResponse getEntityUsageByIDWithHttpInfo(@Param("entity") String entity, @Param("id") String id, @Param("days") Integer days, @Param("date") String date); /** * Get usage by id * Get usage details for an entity identified by `id`. * Note, this is equivalent to the other getEntityUsageByID 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 GetEntityUsageByIDQueryParams} class that allows for * building up this map in a fluent style. * @param entity Entity type for which usage is requested (required) * @param id Entity id (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • days - Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
  • *
  • date - Usage for number of days going back from this date in ISO 8601 format. (default = currentDate) (optional)
  • *
* @return EntityUsage */ @RequestLine("GET /v1/usage/{entity}/{id}?days={days}&date={date}") @Headers({ "Accept: application/json", }) EntityUsage getEntityUsageByID(@Param("entity") String entity, @Param("id") String id, @QueryMap(encoded=true) GetEntityUsageByIDQueryParams queryParams); /** * Get usage by id * Get usage details for an entity identified by `id`. * Note, this is equivalent to the other getEntityUsageByID that receives the query parameters as a map, * but this one also exposes the Http response headers * @param entity Entity type for which usage is requested (required) * @param id Entity id (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • days - Usage for number of days going back from the given date (default=1, min=1, max=30) (optional)
  • *
  • date - Usage for number of days going back from this date in ISO 8601 format. (default = currentDate) (optional)
  • *
* @return EntityUsage */ @RequestLine("GET /v1/usage/{entity}/{id}?days={days}&date={date}") @Headers({ "Accept: application/json", }) ApiResponse getEntityUsageByIDWithHttpInfo(@Param("entity") String entity, @Param("id") String id, @QueryMap(encoded=true) GetEntityUsageByIDQueryParams queryParams); /** * A convenience class for generating query parameters for the * getEntityUsageByID method in a fluent style. */ public static class GetEntityUsageByIDQueryParams extends HashMap { public GetEntityUsageByIDQueryParams days(final Integer value) { put("days", EncodingUtils.encode(value)); return this; } public GetEntityUsageByIDQueryParams date(final String value) { put("date", EncodingUtils.encode(value)); return this; } } /** * Report usage by fully qualified name * Report usage information for an entity by name on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required) * @param dailyCount Usage information a given date (optional) * @return EntityUsage */ @RequestLine("POST /v1/usage/{entity}/name/{fqn}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) EntityUsage reportEntityUsageWithFQN(@Param("entity") String entity, @Param("fqn") String fqn, DailyCount dailyCount); /** * Report usage by fully qualified name * Similar to reportEntityUsageWithFQN but it also returns the http response headers . * Report usage information for an entity by name on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required) * @param dailyCount Usage information a given date (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("POST /v1/usage/{entity}/name/{fqn}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) ApiResponse reportEntityUsageWithFQNWithHttpInfo(@Param("entity") String entity, @Param("fqn") String fqn, DailyCount dailyCount); /** * Report usage by fully qualified name * Report usage information for an entity by name on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required) * @param dailyCount Usage information a given date (optional) * @return EntityUsage */ @RequestLine("PUT /v1/usage/{entity}/name/{fqn}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) EntityUsage reportEntityUsageWithFQN1(@Param("entity") String entity, @Param("fqn") String fqn, DailyCount dailyCount); /** * Report usage by fully qualified name * Similar to reportEntityUsageWithFQN1 but it also returns the http response headers . * Report usage information for an entity by name on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param fqn Fully qualified name of the entity that uniquely identifies an entity (required) * @param dailyCount Usage information a given date (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("PUT /v1/usage/{entity}/name/{fqn}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) ApiResponse reportEntityUsageWithFQN1WithHttpInfo(@Param("entity") String entity, @Param("fqn") String fqn, DailyCount dailyCount); /** * Report usage * Report usage information for an entity on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param id Entity id (required) * @param dailyCount Usage information a given date (optional) * @return EntityUsage */ @RequestLine("POST /v1/usage/{entity}/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) EntityUsage reportEntityUsageWithID(@Param("entity") String entity, @Param("id") String id, DailyCount dailyCount); /** * Report usage * Similar to reportEntityUsageWithID but it also returns the http response headers . * Report usage information for an entity on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param id Entity id (required) * @param dailyCount Usage information a given date (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("POST /v1/usage/{entity}/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) ApiResponse reportEntityUsageWithIDWithHttpInfo(@Param("entity") String entity, @Param("id") String id, DailyCount dailyCount); /** * Report usage * Report usage information for an entity on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param id Entity id (required) * @param dailyCount Usage information a given date (optional) * @return EntityUsage */ @RequestLine("PUT /v1/usage/{entity}/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) EntityUsage reportEntityUsageWithID1(@Param("entity") String entity, @Param("id") String id, DailyCount dailyCount); /** * Report usage * Similar to reportEntityUsageWithID1 but it also returns the http response headers . * Report usage information for an entity on a given date. System stores last 30 days of usage information. Usage information older than 30 days is deleted. * @param entity Entity type for which usage is reported (required) * @param id Entity id (required) * @param dailyCount Usage information a given date (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("PUT /v1/usage/{entity}/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) ApiResponse reportEntityUsageWithID1WithHttpInfo(@Param("entity") String entity, @Param("id") String id, DailyCount dailyCount); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy