use crate::common;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ShardClusterManagerThrottlingStatsDetail {
#[serde(rename = "throttled_tasks_per_task_type")]
pub throttled_tasks_per_task_type: serde_json::Value,
#[serde(rename = "total_throttled_tasks")]
pub total_throttled_tasks: u32,
}
impl ShardClusterManagerThrottlingStatsDetail {
pub fn new(throttled_tasks_per_task_type: serde_json::Value, total_throttled_tasks: u32) -> ShardClusterManagerThrottlingStatsDetail {
ShardClusterManagerThrottlingStatsDetail {
throttled_tasks_per_task_type,
total_throttled_tasks,
}
}
}