org.openmetadata.client.model.EventSubscriptionDiagnosticInfo Maven / Gradle / Ivy
/*
* OpenMetadata Apis
* --- title: APIs slug: /main-concepts/metadata-standard/apis --- # APIs OpenMetadata supports REST APIs for getting data and in and out of the metadata service. APIs are built using general best practices of REST API design. We take a schema-first approach by defining Types and Entities in JSON Schema. We implement APIs based on these schemas. ## Overview ### URI Following REST API conventions are followed for Resource URIs: - Operations for an entity are available through the Resource URI as a collection `.../api//entities`. - Plural of the entity name is used as the collection name - example `.../api/v1/users`. - Trailing forward slash is not used in the endpoint URI. Example use `.../api/v1/databases` instead of `.../api/v1/databases/`. - Resource URI for an entity instance by the entity id is `.../api/v1/entities/{id}`. - Resource URI for an entity instance by name is `.../api/v1/entities/name/{name}`. ### Resource Representation - The REST API calls return a response with JSON `Content-Type` and `Content-Length` that includes the length of the response. - All responses include the Resource ID field even though the id was provided in the request to simplify the consumption of the response at the client. - Entity names and field names use `camelCase` per Javascript naming convention. - All resources include an attribute `href` with Resource URI. All relationship fields of an entity will also include `href` links to the related resource for easy access. - Unknown fields sent by the client in API requests are not ignored to ensure the data sent by the client is not dropped at the server without the user being aware of it. ## API Organization You can find the swagger documentation [here](/swagger.html). In a nutshell: **Data Asset APIs** - support operations related to data asset entities. - `.../api/v1/databases` - `...api/v1/tables` - `.../api/v1/metrics` - `.../api/v1/dashboards` - `.../api/v1/reports` - `.../api/v1/pipelines` - `.../api/v1/topics` **Service APIs** - support operations related to services from which metadata is collected: - `.../api/v1/services` is the collection of all service resources. - `.../api/v1/services/databaseService` - APIs related to database services. This includes Transactional databases - MySQL, Postgres, MSSQL, Oracle, and Data Warehouses - Apache Hive BigQuery, Redshift, and Snowflake. - `.../api/v1/services/dashboardService` - APIs related to Dashboard Services. This includes Looker, Superset, and Tableau. - `.../api/v1/services/messagingService` - APIs related to Messaging Services. This includes Apache Kafka, Redpanda, - Kinesis, and others. **Teams & Users APIs** - `.../api/v1/teams` - APIs related to team entities - `.../api/v1/users` - APIs related to user entities **Search & Suggest APIs** - support search and suggest APIs: - `.../api/v1/search` - collection for search and suggest APIs - `.../api/v1/search/query` - search entities using query text - `.../api/v1/search/suggest` - get suggested entities used for auto-completion **Other APIs** - `.../api/v1/tags` for APIs related to Classification and Tag entities - `../api/v1/feeds` for APIs related to Threads and Posts entities - `.../api/v1/usage` for reporting usage information of entities
*
* The version of the OpenAPI document: 1.6.0-rc1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openmetadata.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openmetadata.client.model.ChangeEvent;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* EventSubscriptionDiagnosticInfo
*/
@JsonPropertyOrder({
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_CURRENT_OFFSET,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_FAILED_EVENTS_COUNT,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_HAS_PROCESSED_ALL_EVENTS,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_LATEST_OFFSET,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_COUNT,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_LIST,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_STARTING_OFFSET,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_SUCCESSFUL_EVENTS_COUNT,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_COUNT,
EventSubscriptionDiagnosticInfo.JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_LIST
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-20T14:35:21.920766473Z[Etc/UTC]")
public class EventSubscriptionDiagnosticInfo {
public static final String JSON_PROPERTY_CURRENT_OFFSET = "currentOffset";
private Long currentOffset;
public static final String JSON_PROPERTY_FAILED_EVENTS_COUNT = "failedEventsCount";
private Long failedEventsCount;
public static final String JSON_PROPERTY_HAS_PROCESSED_ALL_EVENTS = "hasProcessedAllEvents";
private Boolean hasProcessedAllEvents;
public static final String JSON_PROPERTY_LATEST_OFFSET = "latestOffset";
private Long latestOffset;
public static final String JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_COUNT = "relevantUnprocessedEventsCount";
private Long relevantUnprocessedEventsCount;
public static final String JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_LIST = "relevantUnprocessedEventsList";
private List relevantUnprocessedEventsList;
public static final String JSON_PROPERTY_STARTING_OFFSET = "startingOffset";
private Long startingOffset;
public static final String JSON_PROPERTY_SUCCESSFUL_EVENTS_COUNT = "successfulEventsCount";
private Long successfulEventsCount;
public static final String JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_COUNT = "totalUnprocessedEventsCount";
private Long totalUnprocessedEventsCount;
public static final String JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_LIST = "totalUnprocessedEventsList";
private List totalUnprocessedEventsList;
public EventSubscriptionDiagnosticInfo() {
}
public EventSubscriptionDiagnosticInfo currentOffset(Long currentOffset) {
this.currentOffset = currentOffset;
return this;
}
/**
* Get currentOffset
* @return currentOffset
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CURRENT_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCurrentOffset() {
return currentOffset;
}
@JsonProperty(JSON_PROPERTY_CURRENT_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCurrentOffset(Long currentOffset) {
this.currentOffset = currentOffset;
}
public EventSubscriptionDiagnosticInfo failedEventsCount(Long failedEventsCount) {
this.failedEventsCount = failedEventsCount;
return this;
}
/**
* Get failedEventsCount
* @return failedEventsCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_FAILED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getFailedEventsCount() {
return failedEventsCount;
}
@JsonProperty(JSON_PROPERTY_FAILED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFailedEventsCount(Long failedEventsCount) {
this.failedEventsCount = failedEventsCount;
}
public EventSubscriptionDiagnosticInfo hasProcessedAllEvents(Boolean hasProcessedAllEvents) {
this.hasProcessedAllEvents = hasProcessedAllEvents;
return this;
}
/**
* Get hasProcessedAllEvents
* @return hasProcessedAllEvents
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HAS_PROCESSED_ALL_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getHasProcessedAllEvents() {
return hasProcessedAllEvents;
}
@JsonProperty(JSON_PROPERTY_HAS_PROCESSED_ALL_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasProcessedAllEvents(Boolean hasProcessedAllEvents) {
this.hasProcessedAllEvents = hasProcessedAllEvents;
}
public EventSubscriptionDiagnosticInfo latestOffset(Long latestOffset) {
this.latestOffset = latestOffset;
return this;
}
/**
* Get latestOffset
* @return latestOffset
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LATEST_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getLatestOffset() {
return latestOffset;
}
@JsonProperty(JSON_PROPERTY_LATEST_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLatestOffset(Long latestOffset) {
this.latestOffset = latestOffset;
}
public EventSubscriptionDiagnosticInfo relevantUnprocessedEventsCount(Long relevantUnprocessedEventsCount) {
this.relevantUnprocessedEventsCount = relevantUnprocessedEventsCount;
return this;
}
/**
* Get relevantUnprocessedEventsCount
* @return relevantUnprocessedEventsCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getRelevantUnprocessedEventsCount() {
return relevantUnprocessedEventsCount;
}
@JsonProperty(JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRelevantUnprocessedEventsCount(Long relevantUnprocessedEventsCount) {
this.relevantUnprocessedEventsCount = relevantUnprocessedEventsCount;
}
public EventSubscriptionDiagnosticInfo relevantUnprocessedEventsList(List relevantUnprocessedEventsList) {
this.relevantUnprocessedEventsList = relevantUnprocessedEventsList;
return this;
}
public EventSubscriptionDiagnosticInfo addRelevantUnprocessedEventsListItem(ChangeEvent relevantUnprocessedEventsListItem) {
if (this.relevantUnprocessedEventsList == null) {
this.relevantUnprocessedEventsList = new ArrayList<>();
}
this.relevantUnprocessedEventsList.add(relevantUnprocessedEventsListItem);
return this;
}
/**
* Get relevantUnprocessedEventsList
* @return relevantUnprocessedEventsList
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRelevantUnprocessedEventsList() {
return relevantUnprocessedEventsList;
}
@JsonProperty(JSON_PROPERTY_RELEVANT_UNPROCESSED_EVENTS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRelevantUnprocessedEventsList(List relevantUnprocessedEventsList) {
this.relevantUnprocessedEventsList = relevantUnprocessedEventsList;
}
public EventSubscriptionDiagnosticInfo startingOffset(Long startingOffset) {
this.startingOffset = startingOffset;
return this;
}
/**
* Get startingOffset
* @return startingOffset
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STARTING_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getStartingOffset() {
return startingOffset;
}
@JsonProperty(JSON_PROPERTY_STARTING_OFFSET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartingOffset(Long startingOffset) {
this.startingOffset = startingOffset;
}
public EventSubscriptionDiagnosticInfo successfulEventsCount(Long successfulEventsCount) {
this.successfulEventsCount = successfulEventsCount;
return this;
}
/**
* Get successfulEventsCount
* @return successfulEventsCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUCCESSFUL_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getSuccessfulEventsCount() {
return successfulEventsCount;
}
@JsonProperty(JSON_PROPERTY_SUCCESSFUL_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuccessfulEventsCount(Long successfulEventsCount) {
this.successfulEventsCount = successfulEventsCount;
}
public EventSubscriptionDiagnosticInfo totalUnprocessedEventsCount(Long totalUnprocessedEventsCount) {
this.totalUnprocessedEventsCount = totalUnprocessedEventsCount;
return this;
}
/**
* Get totalUnprocessedEventsCount
* @return totalUnprocessedEventsCount
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTotalUnprocessedEventsCount() {
return totalUnprocessedEventsCount;
}
@JsonProperty(JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_COUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalUnprocessedEventsCount(Long totalUnprocessedEventsCount) {
this.totalUnprocessedEventsCount = totalUnprocessedEventsCount;
}
public EventSubscriptionDiagnosticInfo totalUnprocessedEventsList(List totalUnprocessedEventsList) {
this.totalUnprocessedEventsList = totalUnprocessedEventsList;
return this;
}
public EventSubscriptionDiagnosticInfo addTotalUnprocessedEventsListItem(ChangeEvent totalUnprocessedEventsListItem) {
if (this.totalUnprocessedEventsList == null) {
this.totalUnprocessedEventsList = new ArrayList<>();
}
this.totalUnprocessedEventsList.add(totalUnprocessedEventsListItem);
return this;
}
/**
* Get totalUnprocessedEventsList
* @return totalUnprocessedEventsList
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTotalUnprocessedEventsList() {
return totalUnprocessedEventsList;
}
@JsonProperty(JSON_PROPERTY_TOTAL_UNPROCESSED_EVENTS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalUnprocessedEventsList(List totalUnprocessedEventsList) {
this.totalUnprocessedEventsList = totalUnprocessedEventsList;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventSubscriptionDiagnosticInfo eventSubscriptionDiagnosticInfo = (EventSubscriptionDiagnosticInfo) o;
return Objects.equals(this.currentOffset, eventSubscriptionDiagnosticInfo.currentOffset) &&
Objects.equals(this.failedEventsCount, eventSubscriptionDiagnosticInfo.failedEventsCount) &&
Objects.equals(this.hasProcessedAllEvents, eventSubscriptionDiagnosticInfo.hasProcessedAllEvents) &&
Objects.equals(this.latestOffset, eventSubscriptionDiagnosticInfo.latestOffset) &&
Objects.equals(this.relevantUnprocessedEventsCount, eventSubscriptionDiagnosticInfo.relevantUnprocessedEventsCount) &&
Objects.equals(this.relevantUnprocessedEventsList, eventSubscriptionDiagnosticInfo.relevantUnprocessedEventsList) &&
Objects.equals(this.startingOffset, eventSubscriptionDiagnosticInfo.startingOffset) &&
Objects.equals(this.successfulEventsCount, eventSubscriptionDiagnosticInfo.successfulEventsCount) &&
Objects.equals(this.totalUnprocessedEventsCount, eventSubscriptionDiagnosticInfo.totalUnprocessedEventsCount) &&
Objects.equals(this.totalUnprocessedEventsList, eventSubscriptionDiagnosticInfo.totalUnprocessedEventsList);
}
@Override
public int hashCode() {
return Objects.hash(currentOffset, failedEventsCount, hasProcessedAllEvents, latestOffset, relevantUnprocessedEventsCount, relevantUnprocessedEventsList, startingOffset, successfulEventsCount, totalUnprocessedEventsCount, totalUnprocessedEventsList);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventSubscriptionDiagnosticInfo {\n");
sb.append(" currentOffset: ").append(toIndentedString(currentOffset)).append("\n");
sb.append(" failedEventsCount: ").append(toIndentedString(failedEventsCount)).append("\n");
sb.append(" hasProcessedAllEvents: ").append(toIndentedString(hasProcessedAllEvents)).append("\n");
sb.append(" latestOffset: ").append(toIndentedString(latestOffset)).append("\n");
sb.append(" relevantUnprocessedEventsCount: ").append(toIndentedString(relevantUnprocessedEventsCount)).append("\n");
sb.append(" relevantUnprocessedEventsList: ").append(toIndentedString(relevantUnprocessedEventsList)).append("\n");
sb.append(" startingOffset: ").append(toIndentedString(startingOffset)).append("\n");
sb.append(" successfulEventsCount: ").append(toIndentedString(successfulEventsCount)).append("\n");
sb.append(" totalUnprocessedEventsCount: ").append(toIndentedString(totalUnprocessedEventsCount)).append("\n");
sb.append(" totalUnprocessedEventsList: ").append(toIndentedString(totalUnprocessedEventsList)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy