@@ -356,7 +356,7 @@ type LicenseResponse struct {
356
356
License License `json:"license"`
357
357
}
358
358
359
- // StartTrialResponse is the response to the start trial API call.
359
+ // StartBasicResponse is the response to the start trial API call.
360
360
type StartBasicResponse struct {
361
361
Acknowledged bool `json:"acknowledged"`
362
362
BasicWasStarted bool `json:"basic_was_started"`
@@ -378,7 +378,7 @@ type RemoteClusters struct {
378
378
RemoteClusters map [string ]RemoteCluster `json:"remote,omitempty"`
379
379
}
380
380
381
- // RemoteClusterSeeds is the set of seeds to use in a remote cluster setting.
381
+ // RemoteCluster is the set of seeds to use in a remote cluster setting.
382
382
type RemoteCluster struct {
383
383
Seeds []string `json:"seeds"`
384
384
}
@@ -421,8 +421,8 @@ var (
421
421
type ShutdownStatus string
422
422
423
423
var (
424
- // ShutdownStarted means a shutdown request has been accepted and is being processed in Elasticsearch.
425
- ShutdownStarted ShutdownStatus = "STARTED "
424
+ // ShutdownInProgress means a shutdown request has been accepted and is being processed in Elasticsearch.
425
+ ShutdownInProgress ShutdownStatus = "IN_PROGRESS "
426
426
// ShutdownComplete means a shutdown request has been processed and the node can be either restarted or taken out
427
427
// of the cluster by an orchestrator.
428
428
ShutdownComplete ShutdownStatus = "COMPLETE"
@@ -435,9 +435,9 @@ var (
435
435
436
436
// ShardMigration is the status of shards that are being migrated away from a node that goes through a shutdown.
437
437
type ShardMigration struct {
438
- Status ShutdownStatus `json:"status"`
439
- ShardsRemaining int `json:"shards_remaining "`
440
- Explanation string `json:"explanation"`
438
+ Status ShutdownStatus `json:"status"`
439
+ ShardMigrationsRemaining int `json:"shard_migrations_remaining "`
440
+ Explanation string `json:"explanation"`
441
441
}
442
442
443
443
// PersistentTasks expresses the status of preparing ongoing persistent tasks for a node shutdown.
@@ -455,7 +455,7 @@ type NodeShutdown struct {
455
455
NodeID string `json:"node_id"`
456
456
Type string `json:"type"`
457
457
Reason string `json:"reason"`
458
- ShutdownStartedMillis int `json:"shutdown_started_millis"`
458
+ ShutdownStartedMillis int `json:"shutdown_startedmillis"` // missing _ is a serialization inconsistency in Elasticsearch
459
459
Status ShutdownStatus `json:"status"`
460
460
ShardMigration ShardMigration `json:"shard_migration"`
461
461
PersistentTasks PersistentTasks `json:"persistent_tasks"`
0 commit comments