.setPartial(config.partiallyBackupIndices()).get();
logger.info("Snapshot Status = "+createSnapshotResponse.status().toString());
if(createSnapshotResponse.status() == RestStatus.OK)
{
printSnapshotDetails(createSnapshotResponse);
<BUG>elasticcarMonitor.snapshotSuccess.incrementAndGet();
}</BUG>
else if (createSnapshotResponse.status() == RestStatus.INTERNAL_SERVER_ERROR) {
logger.info("Snapshot Completely Failed");
<BUG>elasticcarMonitor.snapshotFailure.incrementAndGet();
}</BUG>
}

.setPartial(config.partiallyBackupIndices()).get();
logger.info("Snapshot Status = "+createSnapshotResponse.status().toString());
if(createSnapshotResponse.status() == RestStatus.OK)
{
printSnapshotDetails(createSnapshotResponse);
snapshotSuccess.incrementAndGet();
snapshotDuration.set((createSnapshotResponse.getSnapshotInfo().endTime() - createSnapshotResponse.getSnapshotInfo().startTime())/(1000*60));
}
else if (createSnapshotResponse.status() == RestStatus.INTERNAL_SERVER_ERROR) {
logger.info("Snapshot Completely Failed");
snapshotFailure.incrementAndGet();
}
}
