|  | 
|  | 1 | +/* | 
|  | 2 | + * Licensed to Elasticsearch B.V. under one or more contributor | 
|  | 3 | + * license agreements. See the NOTICE file distributed with | 
|  | 4 | + * this work for additional information regarding copyright | 
|  | 5 | + * ownership. Elasticsearch B.V. licenses this file to you under | 
|  | 6 | + * the Apache License, Version 2.0 (the "License"); you may | 
|  | 7 | + * not use this file except in compliance with the License. | 
|  | 8 | + * You may obtain a copy of the License at | 
|  | 9 | + * | 
|  | 10 | + *     http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 11 | + * | 
|  | 12 | + * Unless required by applicable law or agreed to in writing, | 
|  | 13 | + * software distributed under the License is distributed on an | 
|  | 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | 
|  | 15 | + * KIND, either express or implied.  See the License for the | 
|  | 16 | + * specific language governing permissions and limitations | 
|  | 17 | + * under the License. | 
|  | 18 | + */ | 
|  | 19 | + | 
|  | 20 | +package co.elastic.clients.elasticsearch.cat; | 
|  | 21 | + | 
|  | 22 | +import co.elastic.clients.json.JsonEnum; | 
|  | 23 | +import co.elastic.clients.json.JsonpDeserializable; | 
|  | 24 | +import co.elastic.clients.json.JsonpDeserializer; | 
|  | 25 | + | 
|  | 26 | +//---------------------------------------------------------------- | 
|  | 27 | +//       THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. | 
|  | 28 | +//---------------------------------------------------------------- | 
|  | 29 | +// | 
|  | 30 | +// This code is generated from the Elasticsearch API specification | 
|  | 31 | +// at https://github.com/elastic/elasticsearch-specification | 
|  | 32 | +// | 
|  | 33 | +// Manual updates to this file will be lost when the code is | 
|  | 34 | +// re-generated. | 
|  | 35 | +// | 
|  | 36 | +// If you find a property that is missing or wrongly typed, please | 
|  | 37 | +// open an issue or a PR on the API specification repository. | 
|  | 38 | +// | 
|  | 39 | +//---------------------------------------------------------------- | 
|  | 40 | + | 
|  | 41 | +/** | 
|  | 42 | + * | 
|  | 43 | + * @see <a href="../doc-files/api-spec.html#cat._types.CatHealthColumn">API | 
|  | 44 | + *      specification</a> | 
|  | 45 | + */ | 
|  | 46 | +@JsonpDeserializable | 
|  | 47 | +public enum CatHealthColumn implements JsonEnum { | 
|  | 48 | +	/** | 
|  | 49 | +	 * The number of seconds since 1970-01-01 00:00:00. | 
|  | 50 | +	 */ | 
|  | 51 | +	Epoch("epoch", "t", "time"), | 
|  | 52 | + | 
|  | 53 | +	/** | 
|  | 54 | +	 * The time in HH:MM:SS format. | 
|  | 55 | +	 */ | 
|  | 56 | +	Timestamp("timestamp", "ts", "hms", "hhmmss"), | 
|  | 57 | + | 
|  | 58 | +	/** | 
|  | 59 | +	 * The cluster name. | 
|  | 60 | +	 */ | 
|  | 61 | +	Cluster("cluster", "cl"), | 
|  | 62 | + | 
|  | 63 | +	/** | 
|  | 64 | +	 * The health status. | 
|  | 65 | +	 */ | 
|  | 66 | +	Status("status", "st"), | 
|  | 67 | + | 
|  | 68 | +	/** | 
|  | 69 | +	 * The total number of nodes that can store data. | 
|  | 70 | +	 */ | 
|  | 71 | +	NodeTotal("node.total", "nt", "nodeTotal"), | 
|  | 72 | + | 
|  | 73 | +	/** | 
|  | 74 | +	 * The number of nodes that can store data. | 
|  | 75 | +	 */ | 
|  | 76 | +	NodeData("node.data", "nd", "nodeData"), | 
|  | 77 | + | 
|  | 78 | +	/** | 
|  | 79 | +	 * The total number of shards. | 
|  | 80 | +	 */ | 
|  | 81 | +	Shards("shards", "t", "sh", "shards.total", "shardsTotal"), | 
|  | 82 | + | 
|  | 83 | +	/** | 
|  | 84 | +	 * The number of primary shards. | 
|  | 85 | +	 */ | 
|  | 86 | +	Pri("pri", "p", "shards.primary", "shardsPrimary"), | 
|  | 87 | + | 
|  | 88 | +	/** | 
|  | 89 | +	 * The number of relocating nodes. | 
|  | 90 | +	 */ | 
|  | 91 | +	Relo("relo", "r", "shards.relocating", "shardsRelocating"), | 
|  | 92 | + | 
|  | 93 | +	/** | 
|  | 94 | +	 * The number of initializing nodes. | 
|  | 95 | +	 */ | 
|  | 96 | +	Init("init", "i", "shards.initializing", "shardsInitializing"), | 
|  | 97 | + | 
|  | 98 | +	/** | 
|  | 99 | +	 * The number of unassigned shards. | 
|  | 100 | +	 */ | 
|  | 101 | +	Unassign("unassign", "u", "shards.unassigned", "shardsUnassigned"), | 
|  | 102 | + | 
|  | 103 | +	/** | 
|  | 104 | +	 * The number of unassigned primary shards. | 
|  | 105 | +	 */ | 
|  | 106 | +	UnassignPri("unassign.pri", "up", "shards.unassigned.primary", "shardsUnassignedPrimary"), | 
|  | 107 | + | 
|  | 108 | +	/** | 
|  | 109 | +	 * The number of pending tasks. | 
|  | 110 | +	 */ | 
|  | 111 | +	PendingTasks("pending_tasks", "pt", "pendingTasks"), | 
|  | 112 | + | 
|  | 113 | +	/** | 
|  | 114 | +	 * The wait time of the longest pending task. | 
|  | 115 | +	 */ | 
|  | 116 | +	MaxTaskWaitTime("max_task_wait_time", "mtwt", "maxTaskWaitTime"), | 
|  | 117 | + | 
|  | 118 | +	/** | 
|  | 119 | +	 * The percentage of active shards. | 
|  | 120 | +	 */ | 
|  | 121 | +	ActiveShardsPercent("active_shards_percent", "asp", "activeShardsPercent"), | 
|  | 122 | + | 
|  | 123 | +	; | 
|  | 124 | + | 
|  | 125 | +	private final String jsonValue; | 
|  | 126 | +	private final String[] aliases; | 
|  | 127 | + | 
|  | 128 | +	CatHealthColumn(String jsonValue, String... aliases) { | 
|  | 129 | +		this.jsonValue = jsonValue; | 
|  | 130 | +		this.aliases = aliases; | 
|  | 131 | +	} | 
|  | 132 | + | 
|  | 133 | +	public String jsonValue() { | 
|  | 134 | +		return this.jsonValue; | 
|  | 135 | +	} | 
|  | 136 | + | 
|  | 137 | +	public String[] aliases() { | 
|  | 138 | +		return this.aliases; | 
|  | 139 | +	} | 
|  | 140 | + | 
|  | 141 | +	public static final JsonEnum.Deserializer<CatHealthColumn> _DESERIALIZER = new JsonEnum.Deserializer<>( | 
|  | 142 | +			CatHealthColumn.values()); | 
|  | 143 | +} | 
0 commit comments