|
9 | 9 | "istio.analysis.v1alpha1.AnalysisMessageBase": {
|
10 | 10 | "description": "AnalysisMessageBase describes some common information that is needed for all messages. All information should be static with respect to the error code.",
|
11 | 11 | "type": "object",
|
| 12 | + "properties": { |
| 13 | + "type": { |
| 14 | + "$ref": "#/components/schemas/istio.analysis.v1alpha1.AnalysisMessageBase.Type" |
| 15 | + }, |
| 16 | + "level": { |
| 17 | + "$ref": "#/components/schemas/istio.analysis.v1alpha1.AnalysisMessageBase.Level" |
| 18 | + }, |
| 19 | + "documentationUrl": { |
| 20 | + "description": "A url pointing to the Istio documentation for this specific error type. Should be of the form `^http(s)?://(preliminary\\.)?istio.io/docs/reference/config/analysis/` Required.", |
| 21 | + "type": "string", |
| 22 | + "format": "string" |
| 23 | + } |
| 24 | + } |
| 25 | + }, |
| 26 | + "istio.analysis.v1alpha1.AnalysisMessageBase.Type": { |
| 27 | + "description": "A unique identifier for the type of message. Name is intended to be human-readable, code is intended to be machine readable. There should be a one-to-one mapping between name and code. (i.e. do not re-use names or codes between message types.)", |
| 28 | + "type": "object", |
12 | 29 | "properties": {
|
13 | 30 | "name": {
|
14 | 31 | "description": "A human-readable name for the message type. e.g. \"InternalError\", \"PodMissingProxy\". This should be the same for all messages of the same type. Required.",
|
|
19 | 36 | "description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type. (e.g. \"IST0001\" is mapped to the \"InternalError\" message type.) 0000-0100 are reserved. Required.",
|
20 | 37 | "type": "string",
|
21 | 38 | "format": "string"
|
22 |
| - }, |
23 |
| - "level": { |
24 |
| - "$ref": "#/components/schemas/istio.analysis.v1alpha1.AnalysisMessageBase.Level" |
25 |
| - }, |
26 |
| - "documentationUrl": { |
27 |
| - "description": "A url pointing to the Istio documentation for this specific error type. Should be of the form `^http(s)?://(preliminary\\.)?istio.io/docs/reference/config/analysis/` Required.", |
28 |
| - "type": "string", |
29 |
| - "format": "string" |
30 | 39 | }
|
31 | 40 | }
|
32 | 41 | },
|
|
53 | 62 | "format": "string"
|
54 | 63 | },
|
55 | 64 | "template": {
|
56 |
| - "description": "A go-style template string defining how to combine the args for a particular message into a log line. Required.", |
| 65 | + "description": "A go-style template string (https://golang.org/pkg/fmt/#hdr-Printing) defining how to combine the args for a particular message into a log line. Required.", |
57 | 66 | "type": "string",
|
58 | 67 | "format": "string"
|
59 | 68 | },
|
|
75 | 84 | "format": "string"
|
76 | 85 | },
|
77 | 86 | "goType": {
|
78 |
| - "description": "Required. Should be a golang type, used in code generation", |
| 87 | + "description": "Required. Should be a golang type, used in code generation. Ideally this will change to a less language-pinned type before this gets out of alpha, but for compatibility with current istio/istio code it's go_type for now.", |
79 | 88 | "type": "string",
|
80 | 89 | "format": "string"
|
81 | 90 | }
|
|
93 | 102 | "type": "object"
|
94 | 103 | },
|
95 | 104 | "resourcePaths": {
|
96 |
| - "description": "A list of strings specifying the path for resources which were the cause of message generation. At least one is required.", |
| 105 | + "description": "A list of strings specifying the resource identifiers that were the cause of message generation. At least one is required.", |
97 | 106 | "type": "array",
|
98 | 107 | "items": {
|
99 | 108 | "type": "string",
|
|
0 commit comments