1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . Runtime . Serialization ;
34using Elasticsearch . Net ;
45
@@ -15,7 +16,6 @@ public class CcrStatsResponse : ResponseBase
1516 public CcrFollowStats FollowStats { get ; internal set ; }
1617 }
1718
18-
1919 public class CcrFollowStats
2020 {
2121 /// <inheritdoc cref="FollowIndexStatsResponse.Indices" />
@@ -25,28 +25,55 @@ public class CcrFollowStats
2525
2626 public class CcrAutoFollowStats
2727 {
28-
2928 /// <summary>
30- /// the number of indices that the auto-follow coordinator failed to automatically follow; the causes of recent failures are
31- /// captured in the logs of the elected master node, and in the auto_follow_stats.recent_auto_follow_errors field
29+ /// The number of indices that the auto-follow coordinator failed to automatically follow; the causes of recent failures are
30+ /// captured in the logs of the elected master node, and in the <see cref="RecentAutoFollowErrors"/> field.
3231 /// </summary>
3332 [ DataMember ( Name = "number_of_failed_follow_indices" ) ]
3433 public long NumberOfFailedFollowIndices { get ; internal set ; }
3534
3635 /// <summary>
37- /// the number of times that the auto-follow coordinator failed to retrieve the cluster state from a
38- /// remote cluster registered in a collection of auto-follow patterns
36+ /// The number of times that the auto-follow coordinator failed to retrieve the cluster state from a
37+ /// remote cluster registered in a collection of auto-follow patterns.
3938 /// </summary>
4039 [ DataMember ( Name = "number_of_failed_remote_cluster_state_requests" ) ]
4140 public long NumberOfFailedRemoteClusterStateRequests { get ; internal set ; }
4241
43- /// <summary> the number of indices that the auto-follow coordinator successfully followed </summary>
42+ /// <summary>The number of indices that the auto-follow coordinator successfully followed. </summary>
4443 [ DataMember ( Name = "number_of_successful_follow_indices" ) ]
4544 public long NumberOfSuccessfulFollowIndices { get ; internal set ; }
4645
47- /// <summary> an array of objects representing failures by the auto-follow coordinator </summary>
46+ /// <summary>An array of objects representing failures by the auto-follow coordinator. </summary>
4847 [ DataMember ( Name = "recent_auto_follow_errors" ) ]
4948 public IReadOnlyCollection < ErrorCause > RecentAutoFollowErrors { get ; internal set ; } = EmptyReadOnly < ErrorCause > . Collection ;
5049
50+ /// <summary>
51+ /// An array of auto followed clusters.
52+ /// </summary>
53+ [ DataMember ( Name = "auto_followed_clusters" ) ]
54+ public IReadOnlyCollection < AutoFollowedCluster > AutoFollowedClusters { get ; internal set ; } = EmptyReadOnly < AutoFollowedCluster > . Collection ;
55+
56+ }
57+
58+ public class AutoFollowedCluster
59+ {
60+ /// <summary>
61+ /// The cluster name.
62+ /// </summary>
63+ [ DataMember ( Name = "cluster_name" ) ]
64+ public string ClusterName { get ; internal set ; }
65+
66+ /// <summary>
67+ /// Time since last check.
68+ /// </summary>
69+ [ DataMember ( Name = "time_since_last_check_millis" ) ]
70+ [ JsonFormatter ( typeof ( DateTimeOffsetEpochMillisecondsFormatter ) ) ]
71+ public DateTimeOffset TimeSinceLastCheck { get ; internal set ; }
72+
73+ /// <summary>
74+ /// Last seen metadata version.
75+ /// </summary>
76+ [ DataMember ( Name = "last_seen_metadata_version" ) ]
77+ public long LastSeenMetadataVersion { get ; internal set ; }
5178 }
5279}
0 commit comments