﻿using System.Runtime.Serialization;
using Elasticsearch.Net.Utf8Json;

namespace Nest
{
	[DataContract]
	public class CatSnapshotsRecord : ICatRecord
	{
		[DataMember(Name ="duration")]
		public Time Duration { get; set; }

		[DataMember(Name ="end_epoch")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long EndEpoch { get; set; }

		[DataMember(Name ="end_time")]
		public string EndTime { get; set; }

		[DataMember(Name ="failed_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long FailedShards { get; set; }

		// duration indices successful_shards failed_shards total_shards
		[DataMember(Name ="id")]
		public string Id { get; set; }

		[DataMember(Name ="indices")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long Indices { get; set; }

		[DataMember(Name ="start_epoch")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long StartEpoch { get; set; }

		[DataMember(Name ="start_time")]
		public string StartTime { get; set; }

		[DataMember(Name ="status")]
		public string Status { get; set; }

		[DataMember(Name ="succesful_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long SuccesfulShards { get; set; }

		[DataMember(Name ="total_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long TotalShards { get; set; }
	}
}

﻿using System.Runtime.Serialization;
using Elasticsearch.Net.Utf8Json;

namespace Nest
{
	[DataContract]
	public class CatSnapshotsRecord : ICatRecord
	{
		[DataMember(Name ="duration")]
		public Time Duration { get; set; }

		[DataMember(Name ="end_epoch")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long EndEpoch { get; set; }

		[DataMember(Name ="end_time")]
		public string EndTime { get; set; }

		[DataMember(Name ="failed_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long FailedShards { get; set; }

		// duration indices successful_shards failed_shards total_shards
		[DataMember(Name ="id")]
		public string Id { get; set; }

		[DataMember(Name ="indices")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long Indices { get; set; }

		[DataMember(Name ="start_epoch")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long StartEpoch { get; set; }

		[DataMember(Name ="start_time")]
		public string StartTime { get; set; }

		[DataMember(Name ="status")]
		public string Status { get; set; }

		[DataMember(Name ="successful_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long SuccessfulShards { get; set; }

		[DataMember(Name ="total_shards")]
		[JsonFormatter(typeof(StringLongFormatter))]
		public long TotalShards { get; set; }
	}
}

Fix spelling of SuccessfulShards in CatSnapshots
Fix spelling of SuccessfulShards in CatSnapshots
