github.com/antihax/goesi@v0.0.0-20240126031043-6c54d0cb7f95/meta/model_get_status_item.go (about) 1 /* 2 * ESI Meta Spec 3 * 4 * ESI specs and miscellaneous routes 5 * 6 * OpenAPI spec version: 0.1 7 * 8 * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 * 10 * Licensed under the Apache License, Version 2.0 (the "License"); 11 * you may not use this file except in compliance with the License. 12 * You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, software 17 * distributed under the License is distributed on an "AS IS" BASIS, 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 * See the License for the specific language governing permissions and 20 * limitations under the License. 21 */ 22 23 package meta 24 25 /* A list of GetStatusItem. */ 26 //easyjson:json 27 type GetStatusItemList []GetStatusItem 28 29 /* Per route status */ 30 //easyjson:json 31 type GetStatusItem struct { 32 Endpoint string `json:"endpoint,omitempty"` /* ESI Endpoint cluster advertising this route */ 33 Method string `json:"method,omitempty"` /* Swagger defined method */ 34 Route string `json:"route,omitempty"` /* Swagger defined route, not including version prefix */ 35 Status string `json:"status,omitempty"` /* Vague route status. Green is good, yellow is degraded, meaning slow or potentially dropping requests. Red means most requests are not succeeding and/or are very slow (5s+) on average. */ 36 Tags []string `json:"tags,omitempty"` /* Swagger tags applicable to this route */ 37 }