|
6 | 6 | elements:
|
7 | 7 | {% for element in elements -%}
|
8 | 8 | - title: {{element.title}}
|
9 |
| - name: {{element.title}} |
| 9 | + name: {{element.title}}_{{element.statistic}} |
| 10 | + note_state: expanded |
| 11 | + note_display: above |
| 12 | + note_text: {{element.statistic.title()}} |
10 | 13 | explore: {{element.explore}}
|
| 14 | + {% if element.statistic == "percentile" -%} |
11 | 15 | type: "ci-line-chart"
|
| 16 | + {% else -%} |
| 17 | + type: looker_line |
| 18 | + {% endif -%} |
12 | 19 | fields: [
|
13 | 20 | {{element.explore}}.{{element.xaxis}},
|
14 | 21 | {{element.explore}}.branch,
|
15 |
| - {{element.explore}}.high, |
16 |
| - {{element.explore}}.low, |
17 |
| - {{element.explore}}.percentile |
| 22 | + {% if element.statistic == "percentile" -%} |
| 23 | + {{element.explore}}.upper, |
| 24 | + {{element.explore}}.lower, |
| 25 | + {% endif -%} |
| 26 | + {{element.explore}}.point |
18 | 27 | ]
|
19 | 28 | pivots: [
|
20 | 29 | {{element.explore}}.branch
|
21 | 30 | {%- if group_by_dimension and element.title.endswith(group_by_dimension) %}, {{element.explore}}.{{group_by_dimension}} {% endif %}
|
22 | 31 | ]
|
23 | 32 | {% if not compact_visualization -%}
|
24 | 33 | filters:
|
25 |
| - {{element.explore}}.probe: {{element.metric}} |
| 34 | + {{element.explore}}.metric: {{element.metric}} |
| 35 | + {{element.explore}}.statistic: {{element.statistic}} |
26 | 36 | {% endif -%}
|
27 | 37 | row: {{element.row}}
|
28 | 38 | col: {{element.col}}
|
29 | 39 | width: 12
|
30 | 40 | height: 8
|
31 | 41 | field_x: {{element.explore}}.{{element.xaxis}}
|
32 |
| - field_y: {{element.explore}}.percentile |
| 42 | + field_y: {{element.explore}}.point |
33 | 43 | log_scale: false
|
34 |
| - ci_lower: {{element.explore}}.low |
35 |
| - ci_upper: {{element.explore}}.high |
| 44 | + ci_lower: {{element.explore}}.lower |
| 45 | + ci_upper: {{element.explore}}.upper |
36 | 46 | show_grid: true
|
37 | 47 | listen:
|
38 |
| - Percentile: {{element.explore}}.percentile_conf |
| 48 | + {%- if element.statistic == "percentile" %} |
| 49 | + Percentile: {{element.explore}}.parameter |
| 50 | + {%- endif %} |
39 | 51 | {%- for dimension in dimensions %}
|
40 | 52 | {{dimension.title}}: {{element.explore}}.{{dimension.name}}
|
41 | 53 | {%- endfor %}
|
42 | 54 | {% if compact_visualization -%}
|
43 |
| - Probe: {{element.explore}}.probe |
| 55 | + Metric: {{element.explore}}.metric |
44 | 56 | {% endif -%}
|
45 | 57 | {%- for branch, color in element.series_colors.items() %}
|
46 | 58 | {{ branch }}: "{{ color }}"
|
|
54 | 66 | explore: {{alerts.explore}}
|
55 | 67 | type: looker_grid
|
56 | 68 | fields: [{{alerts.explore}}.submission_date,
|
57 |
| - {{alerts.explore}}.probe, {{alerts.explore}}.percentile, |
| 69 | + {{alerts.explore}}.metric, {{alerts.explore}}.statistic, {{alerts.explore}}.percentile, |
58 | 70 | {{alerts.explore}}.message, {{alerts.explore}}.branch, {{alerts.explore}}.errors]
|
59 | 71 | sorts: [{{alerts.explore}}.submission_date
|
60 | 72 | desc]
|
|
107 | 119 | filters:
|
108 | 120 | - name: Percentile
|
109 | 121 | title: Percentile
|
110 |
| - type: number_filter |
| 122 | + type: field_filter |
111 | 123 | default_value: '50'
|
112 | 124 | allow_multiple_values: false
|
113 | 125 | required: true
|
114 | 126 | ui_config:
|
115 |
| - type: dropdown_menu |
| 127 | + type: slider |
116 | 128 | display: inline
|
117 |
| - options: |
118 |
| - - '10' |
119 |
| - - '20' |
120 |
| - - '30' |
121 |
| - - '40' |
122 |
| - - '50' |
123 |
| - - '60' |
124 |
| - - '70' |
125 |
| - - '80' |
126 |
| - - '90' |
127 |
| - - '95' |
128 |
| - - '99' |
| 129 | + options: [] |
| 130 | + model: operational_monitoring |
| 131 | + explore: {{ elements[0].explore }} |
| 132 | + listens_to_filters: [] |
| 133 | + field: {{ elements[0].explore }}.parameter |
129 | 134 | {% if compact_visualization -%}
|
130 |
| - - name: Probe |
131 |
| - title: Probe |
| 135 | + - name: Metric |
| 136 | + title: Metric |
132 | 137 | type: field_filter
|
133 | 138 | default_value: '{{ elements[0].metric }}'
|
134 |
| - allow_multiple_values: true |
| 139 | + allow_multiple_values: false |
135 | 140 | required: true
|
136 | 141 | ui_config:
|
137 | 142 | type: dropdown_menu
|
138 | 143 | display: popover
|
139 | 144 | model: operational_monitoring
|
140 | 145 | explore: {{ elements[0].explore }}
|
141 | 146 | listens_to_filters: []
|
142 |
| - field: {{ elements[0].explore }}.probe |
| 147 | + field: {{ elements[0].explore }}.metric |
| 148 | + - name: Statistic |
| 149 | + title: Statistic |
| 150 | + type: field_filter |
| 151 | + default_value: '{{ elements[0].statistic }}' |
| 152 | + allow_multiple_values: false |
| 153 | + required: true |
| 154 | + ui_config: |
| 155 | + type: dropdown_menu |
| 156 | + display: popover |
| 157 | + model: operational_monitoring |
| 158 | + explore: {{ elements[0].explore }} |
| 159 | + listens_to_filters: [] |
| 160 | + field: {{ elements[0].explore }}.statistic |
143 | 161 | {% endif -%}
|
144 | 162 |
|
145 | 163 | {% for dimension in dimensions -%}
|
|
171 | 189 | {% for option in dimension.options | sort -%}
|
172 | 190 | - '{{option}}'
|
173 | 191 | {% endfor %}
|
174 |
| - {% endif %} |
| 192 | + {% endif %} |
175 | 193 | {% endfor -%}
|
0 commit comments