com.dtsx.astra.sdk.db.domain.DatabaseMetrics Maven / Gradle / Ivy
/*
* Copyright DataStax, Inc.
*
* Licensed 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 com.dtsx.astra.sdk.db.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Wrap Database Metrics.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class DatabaseMetrics {
private int writeRequestsTotalCount;
private int readRequestsTotalCount;
private int liveDataSizeBytes;
private int errorsTotalCount;
/**
* Default constructor.
*/
public DatabaseMetrics() {}
/**
* Getter accessor for attribute 'writeRequestsTotalCount'.
*
* @return
* current value of 'writeRequestsTotalCount'
*/
public int getWriteRequestsTotalCount() {
return writeRequestsTotalCount;
}
/**
* Setter accessor for attribute 'writeRequestsTotalCount'.
* @param writeRequestsTotalCount
* new value for 'writeRequestsTotalCount '
*/
public void setWriteRequestsTotalCount(int writeRequestsTotalCount) {
this.writeRequestsTotalCount = writeRequestsTotalCount;
}
/**
* Getter accessor for attribute 'readRequestsTotalCount'.
*
* @return
* current value of 'readRequestsTotalCount'
*/
public int getReadRequestsTotalCount() {
return readRequestsTotalCount;
}
/**
* Setter accessor for attribute 'readRequestsTotalCount'.
* @param readRequestsTotalCount
* new value for 'readRequestsTotalCount '
*/
public void setReadRequestsTotalCount(int readRequestsTotalCount) {
this.readRequestsTotalCount = readRequestsTotalCount;
}
/**
* Getter accessor for attribute 'liveDataSizeBytes'.
*
* @return
* current value of 'liveDataSizeBytes'
*/
public int getLiveDataSizeBytes() {
return liveDataSizeBytes;
}
/**
* Setter accessor for attribute 'liveDataSizeBytes'.
* @param liveDataSizeBytes
* new value for 'liveDataSizeBytes '
*/
public void setLiveDataSizeBytes(int liveDataSizeBytes) {
this.liveDataSizeBytes = liveDataSizeBytes;
}
/**
* Getter accessor for attribute 'errorsTotalCount'.
*
* @return
* current value of 'errorsTotalCount'
*/
public int getErrorsTotalCount() {
return errorsTotalCount;
}
/**
* Setter accessor for attribute 'errorsTotalCount'.
* @param errorsTotalCount
* new value for 'errorsTotalCount '
*/
public void setErrorsTotalCount(int errorsTotalCount) {
this.errorsTotalCount = errorsTotalCount;
}
}