-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing fields on task status (#2779)
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 21 additions & 1 deletion
22
elastic4s-domain/src/main/scala/com/sksamuel/elastic4s/requests/task/TaskStatus.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
package com.sksamuel.elastic4s.requests.task | ||
|
||
case class TaskStatus(total: Long, updated: Long, created: Long, deleted: Long, batches: Long) | ||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
import scala.concurrent.duration.{DurationLong, FiniteDuration} | ||
|
||
case class TaskStatus( | ||
total: Long, | ||
updated: Long, | ||
created: Long, | ||
deleted: Long, | ||
batches: Long, | ||
@JsonProperty("version_conflicts") private val version_conflicts: Long, | ||
noops: Long, | ||
retries : Retries, | ||
@JsonProperty("throttled_millis") private val throttled_millis: Long | ||
) { | ||
def versionConflicts: Long = version_conflicts | ||
|
||
def throttledTime: FiniteDuration = throttled_millis.millis | ||
} | ||
|
||
case class Retries(bulk: Long, search: Long) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters