| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.eagle.log.entity; |
| |
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| |
| /** |
| * TODO: (hchen9) currently we disable firstTimestamp in response avoid breaking older client implementation, |
| * but we may need to remove "firstTimestamp" from @JsonIgnoreProperties(ignoreUnknown = |
| * true,value={"firstTimestamp"}) to enable the feature later |
| */ |
| @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) |
| @JsonIgnoreProperties(ignoreUnknown = true, value = { |
| "firstTimestamp" |
| }) |
| public class ListQueryAPIResponseEntity { |
| private boolean success; |
| private String exception; |
| private int totalResults; |
| private long elapsedms; |
| private long lastTimestamp; |
| private long firstTimestamp; |
| |
| public long getFirstTimestamp() { |
| return firstTimestamp; |
| } |
| |
| public void setFirstTimestamp(long firstTimestamp) { |
| this.firstTimestamp = firstTimestamp; |
| } |
| |
| private Object obj; |
| |
| public long getElapsedms() { |
| return elapsedms; |
| } |
| |
| public void setElapsedms(long elapsedms) { |
| this.elapsedms = elapsedms; |
| } |
| |
| public boolean isSuccess() { |
| return success; |
| } |
| |
| public void setSuccess(boolean success) { |
| this.success = success; |
| } |
| |
| public String getException() { |
| return exception; |
| } |
| |
| public void setException(String exception) { |
| this.exception = exception; |
| } |
| |
| public int getTotalResults() { |
| return totalResults; |
| } |
| |
| public void setTotalResults(int totalResults) { |
| this.totalResults = totalResults; |
| } |
| |
| public long getLastTimestamp() { |
| return lastTimestamp; |
| } |
| |
| public void setLastTimestamp(long lastTimestamp) { |
| this.lastTimestamp = lastTimestamp; |
| } |
| |
| public Object getObj() { |
| return obj; |
| } |
| |
| public void setObj(Object obj) { |
| this.obj = obj; |
| } |
| } |