| 1 |
// Code generated by mdatagen. DO NOT EDIT. |
| 2 |
|
| 3 |
package {{ .Package }} |
| 4 |
|
| 5 |
import ( |
| 6 |
{{- if .Metrics | parseImportsRequired }} |
| 7 |
"strconv" |
| 8 |
"fmt" |
| 9 |
{{- end }} |
| 10 |
"time" |
| 11 |
|
| 12 |
"go.opentelemetry.io/collector/component" |
| 13 |
"go.opentelemetry.io/collector/pdata/pcommon" |
| 14 |
"go.opentelemetry.io/collector/pdata/pmetric" |
| 15 |
{{- if or isReceiver isScraper isConnector }} |
| 16 |
"go.opentelemetry.io/collector/{{ .Status.Class }}" |
| 17 |
{{- end }} |
| 18 |
{{- if .SemConvVersion }} |
| 19 |
conventions "go.opentelemetry.io/otel/semconv/v{{ .SemConvVersion }}" |
| 20 |
{{- end }} |
| 21 |
{{ if .ResourceAttributes -}} |
| 22 |
"go.opentelemetry.io/collector/filter" |
| 23 |
{{- end }} |
| 24 |
) |
| 25 |
|
| 26 |
{{ range $name, $info := .Attributes }} |
| 27 |
{{- if $info.Enum -}} |
| 28 |
// Attribute{{ $name.Render }} specifies the value {{ $name }} attribute. |
| 29 |
type Attribute{{ $name.Render }} int |
| 30 |
|
| 31 |
const ( |
| 32 |
_ Attribute{{ $name.Render }} = iota |
| 33 |
{{- range $info.Enum }} |
| 34 |
Attribute{{ $name.Render }}{{ . | publicVar }} |
| 35 |
{{- end }} |
| 36 |
) |
| 37 |
|
| 38 |
// String returns the string representation of the Attribute{{ $name.Render }}. |
| 39 |
func (av Attribute{{ $name.Render }}) String() string { |
| 40 |
switch av { |
| 41 |
{{- range $info.Enum }} |
| 42 |
case Attribute{{ $name.Render }}{{ . | publicVar }}: |
| 43 |
return "{{ . }}" |
| 44 |
{{- end }} |
| 45 |
} |
| 46 |
return "" |
| 47 |
} |
| 48 |
|
| 49 |
// MapAttribute{{ $name.Render }} is a helper map of string to Attribute{{ $name.Render }} attribute value. |
| 50 |
var MapAttribute{{ $name.Render }} = map[string]Attribute{{ $name.Render }}{ |
| 51 |
{{- range $info.Enum }} |
| 52 |
"{{ . }}": Attribute{{ $name.Render }}{{ . | publicVar }}, |
| 53 |
{{- end }} |
| 54 |
} |
| 55 |
|
| 56 |
{{ end }} |
| 57 |
{{- end }} |
| 58 |
|
| 59 |
var MetricsInfo = metricsInfo{ |
| 60 |
{{- range $name, $metric := .Metrics }} |
| 61 |
{{ $name.Render }}: metricInfo{ |
| 62 |
Name: "{{ $name }}", |
| 63 |
}, |
| 64 |
{{- end }} |
| 65 |
} |
| 66 |
|
| 67 |
type metricsInfo struct { |
| 68 |
{{- range $name, $metric := .Metrics }} |
| 69 |
{{ $name.Render }} metricInfo |
| 70 |
{{- end }} |
| 71 |
} |
| 72 |
|
| 73 |
type metricInfo struct { |
| 74 |
Name string |
| 75 |
} |
| 76 |
|
| 77 |
{{ if getMetricConditionalAttributes .Attributes }} |
| 78 |
type MetricAttributeOption interface { |
| 79 |
apply(pmetric.NumberDataPoint) |
| 80 |
} |
| 81 |
|
| 82 |
type metricAttributeOptionFunc func(pmetric.NumberDataPoint) |
| 83 |
|
| 84 |
func (maof metricAttributeOptionFunc) apply(dp pmetric.NumberDataPoint) { |
| 85 |
maof(dp) |
| 86 |
} |
| 87 |
|
| 88 |
{{ range getMetricConditionalAttributes .Attributes }} |
| 89 |
func With{{ .Render }}MetricAttribute({{ .RenderUnexported }}AttributeValue {{ (attributeInfo .).Type.Primitive }}) MetricAttributeOption { |
| 90 |
return metricAttributeOptionFunc(func(dp pmetric.NumberDataPoint) { |
| 91 |
{{- template "putAttribute" . }} |
| 92 |
}) |
| 93 |
} |
| 94 |
{{ end }} |
| 95 |
{{ end }} |
| 96 |
|
| 97 |
{{ range $name, $metric := .Metrics -}} |
| 98 |
type metric{{ $name.Render }} struct { |
| 99 |
data pmetric.Metric // data buffer for generated metric. |
| 100 |
config MetricConfig // metric config provided by user. |
| 101 |
capacity int // max observed number of data points added to the metric. |
| 102 |
} |
| 103 |
|
| 104 |
// init fills {{ $name }} metric with initial data. |
| 105 |
func (m *metric{{ $name.Render }}) init() { |
| 106 |
m.data.SetName("{{ $name }}") |
| 107 |
m.data.SetDescription("{{ $metric.Description }}") |
| 108 |
m.data.SetUnit("{{ $metric.Unit }}") |
| 109 |
m.data.SetEmpty{{ $metric.Data.Type }}() |
| 110 |
{{- if $metric.Data.HasMonotonic }} |
| 111 |
m.data.{{ $metric.Data.Type }}().SetIsMonotonic({{ $metric.Data.Monotonic }}) |
| 112 |
{{- end }} |
| 113 |
{{- if $metric.Data.HasAggregated }} |
| 114 |
m.data.{{ $metric.Data.Type }}().SetAggregationTemporality(pmetric.AggregationTemporality{{ $metric.Data.AggregationTemporality }}) |
| 115 |
{{- end }} |
| 116 |
{{- if $metric.Attributes }} |
| 117 |
m.data.{{ $metric.Data.Type }}().DataPoints().EnsureCapacity(m.capacity) |
| 118 |
{{- end }} |
| 119 |
} |
| 120 |
|
| 121 |
func (m *metric{{ $name.Render }}) recordDataPoint(start pcommon.Timestamp, ts pcommon.Timestamp, val {{ $metric.Data.MetricValueType.BasicType }} |
| 122 |
{{- range $metric.Attributes -}}{{- if not (attributeInfo .).IsConditional -}}, {{ .RenderUnexported }}AttributeValue {{ (attributeInfo .).Type.Primitive }}{{ end }}{{ end }}{{- if $metric.HasConditionalAttributes $.Attributes -}}, options ...MetricAttributeOption{{- end -}}) { |
| 123 |
if !m.config.Enabled { |
| 124 |
return |
| 125 |
} |
| 126 |
dp := m.data.{{ $metric.Data.Type }}().DataPoints().AppendEmpty() |
| 127 |
dp.SetStartTimestamp(start) |
| 128 |
dp.SetTimestamp(ts) |
| 129 |
dp.Set{{ $metric.Data.MetricValueType }}Value(val) |
| 130 |
{{- range $metric.Attributes }} |
| 131 |
{{- if not (attributeInfo .).IsConditional -}} |
| 132 |
{{- template "putAttribute" . -}} |
| 133 |
{{- end }} |
| 134 |
{{- end }} |
| 135 |
|
| 136 |
{{- if $metric.HasConditionalAttributes $.Attributes }} |
| 137 |
for _, op := range options { |
| 138 |
op.apply(dp) |
| 139 |
} |
| 140 |
{{- end }} |
| 141 |
} |
| 142 |
|
| 143 |
// updateCapacity saves max length of data point slices that will be used for the slice capacity. |
| 144 |
func (m *metric{{ $name.Render }}) updateCapacity() { |
| 145 |
if m.data.{{ $metric.Data.Type }}().DataPoints().Len() > m.capacity { |
| 146 |
m.capacity = m.data.{{ $metric.Data.Type }}().DataPoints().Len() |
| 147 |
} |
| 148 |
} |
| 149 |
|
| 150 |
// emit appends recorded metric data to a metrics slice and prepares it for recording another set of data points. |
| 151 |
func (m *metric{{ $name.Render }}) emit(metrics pmetric.MetricSlice) { |
| 152 |
if m.config.Enabled && m.data.{{ $metric.Data.Type }}().DataPoints().Len() > 0 { |
| 153 |
m.updateCapacity() |
| 154 |
m.data.MoveTo(metrics.AppendEmpty()) |
| 155 |
m.init() |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
func newMetric{{ $name.Render }}(cfg MetricConfig) metric{{ $name.Render }} { |
| 160 |
m := metric{{ $name.Render }}{config: cfg} |
| 161 |
if cfg.Enabled { |
| 162 |
m.data = pmetric.NewMetric() |
| 163 |
m.init() |
| 164 |
} |
| 165 |
return m |
| 166 |
} |
| 167 |
|
| 168 |
{{ end -}} |
| 169 |
|
| 170 |
// MetricsBuilder provides an interface for scrapers to report metrics while taking care of all the transformations |
| 171 |
// required to produce metric representation defined in metadata and user config. |
| 172 |
type MetricsBuilder struct { |
| 173 |
config MetricsBuilderConfig // config of the metrics builder. |
| 174 |
startTime pcommon.Timestamp // start time that will be applied to all recorded data points. |
| 175 |
metricsCapacity int // maximum observed number of metrics per resource. |
| 176 |
metricsBuffer pmetric.Metrics // accumulates metrics data before emitting. |
| 177 |
buildInfo component.BuildInfo // contains version information. |
| 178 |
{{- if .ResourceAttributes }} |
| 179 |
resourceAttributeIncludeFilter map[string]filter.Filter |
| 180 |
resourceAttributeExcludeFilter map[string]filter.Filter |
| 181 |
{{- end }} |
| 182 |
{{- range $name, $metric := .Metrics }} |
| 183 |
metric{{ $name.Render }} metric{{ $name.Render }} |
| 184 |
{{- end }} |
| 185 |
} |
| 186 |
|
| 187 |
// MetricBuilderOption applies changes to default metrics builder. |
| 188 |
type MetricBuilderOption interface { |
| 189 |
apply(*MetricsBuilder) |
| 190 |
} |
| 191 |
|
| 192 |
type metricBuilderOptionFunc func(mb *MetricsBuilder) |
| 193 |
|
| 194 |
func (mbof metricBuilderOptionFunc) apply(mb *MetricsBuilder) { |
| 195 |
mbof(mb) |
| 196 |
} |
| 197 |
|
| 198 |
// WithStartTime sets startTime on the metrics builder. |
| 199 |
func WithStartTime(startTime pcommon.Timestamp) MetricBuilderOption { |
| 200 |
return metricBuilderOptionFunc(func(mb *MetricsBuilder) { |
| 201 |
mb.startTime = startTime |
| 202 |
}) |
| 203 |
} |
| 204 |
|
| 205 |
{{- if or isReceiver isScraper isConnector }} |
| 206 |
func NewMetricsBuilder(mbc MetricsBuilderConfig, settings {{ .Status.Class }}.Settings, options ...MetricBuilderOption) *MetricsBuilder { |
| 207 |
{{- range $name, $metric := .Metrics }} |
| 208 |
{{- if $metric.Warnings.IfEnabled }} |
| 209 |
if mbc.Metrics.{{ $name.Render }}.Enabled { |
| 210 |
settings.Logger.Warn("[WARNING] `{{ $name }}` should not be enabled: {{ $metric.Warnings.IfEnabled }}") |
| 211 |
} |
| 212 |
{{- end }} |
| 213 |
{{- if $metric.Warnings.IfEnabledNotSet }} |
| 214 |
if !mbc.Metrics.{{ $name.Render }}.enabledSetByUser { |
| 215 |
settings.Logger.Warn("[WARNING] Please set `enabled` field explicitly for `{{ $name }}`: {{ $metric.Warnings.IfEnabledNotSet }}") |
| 216 |
} |
| 217 |
{{- end }} |
| 218 |
{{- if $metric.Warnings.IfConfigured }} |
| 219 |
if mbc.Metrics.{{ $name.Render }}.enabledSetByUser { |
| 220 |
settings.Logger.Warn("[WARNING] `{{ $name }}` should not be configured: {{ $metric.Warnings.IfConfigured }}") |
| 221 |
} |
| 222 |
{{- end }} |
| 223 |
{{- end }} |
| 224 |
{{- range $name, $attr := .ResourceAttributes }} |
| 225 |
{{- if $attr.Warnings.IfEnabled }} |
| 226 |
if mbc.ResourceAttributes.{{ $name.Render }}.Enabled { |
| 227 |
settings.Logger.Warn("[WARNING] `{{ $name }}` should not be enabled: {{ $attr.Warnings.IfEnabled }}") |
| 228 |
} |
| 229 |
{{- end }} |
| 230 |
{{- if $attr.Warnings.IfEnabledNotSet }} |
| 231 |
if !mbc.ResourceAttributes.{{ $name.Render }}.enabledSetByUser { |
| 232 |
settings.Logger.Warn("[WARNING] Please set `enabled` field explicitly for `{{ $name }}`: {{ $attr.Warnings.IfEnabledNotSet }}") |
| 233 |
} |
| 234 |
{{- end }} |
| 235 |
{{- if $attr.Warnings.IfConfigured }} |
| 236 |
if mbc.ResourceAttributes.{{ $name.Render }}.enabledSetByUser || mbc.ResourceAttributes.{{ $name.Render }}.MetricsInclude != nil || mbc.ResourceAttributes.{{ $name.Render }}.MetricsExclude != nil { |
| 237 |
settings.Logger.Warn("[WARNING] `{{ $name }}` should not be configured: {{ $attr.Warnings.IfConfigured }}") |
| 238 |
} |
| 239 |
{{- end }} |
| 240 |
{{- end }} |
| 241 |
mb := &MetricsBuilder{ |
| 242 |
config: mbc, |
| 243 |
startTime: pcommon.NewTimestampFromTime(time.Now()), |
| 244 |
metricsBuffer: pmetric.NewMetrics(), |
| 245 |
buildInfo: settings.BuildInfo, |
| 246 |
{{- range $name, $metric := .Metrics }} |
| 247 |
metric{{ $name.Render }}: newMetric{{ $name.Render }}(mbc.Metrics.{{ $name.Render }}), |
| 248 |
{{- end }} |
| 249 |
{{ if .ResourceAttributes -}} |
| 250 |
resourceAttributeIncludeFilter: make(map[string]filter.Filter), |
| 251 |
resourceAttributeExcludeFilter: make(map[string]filter.Filter), |
| 252 |
{{- end }} |
| 253 |
} |
| 254 |
{{- range $name, $attr := .ResourceAttributes }} |
| 255 |
if mbc.ResourceAttributes.{{ $name.Render }}.MetricsInclude != nil { |
| 256 |
mb.resourceAttributeIncludeFilter["{{ $name }}"] = filter.CreateFilter(mbc.ResourceAttributes.{{ $name.Render }}.MetricsInclude) |
| 257 |
} |
| 258 |
if mbc.ResourceAttributes.{{ $name.Render }}.MetricsExclude != nil { |
| 259 |
mb.resourceAttributeExcludeFilter["{{ $name }}"] = filter.CreateFilter(mbc.ResourceAttributes.{{ $name.Render }}.MetricsExclude) |
| 260 |
} |
| 261 |
{{- end }} |
| 262 |
|
| 263 |
for _, op := range options { |
| 264 |
op.apply(mb) |
| 265 |
} |
| 266 |
return mb |
| 267 |
} |
| 268 |
{{- end }} |
| 269 |
|
| 270 |
{{- if .ResourceAttributes }} |
| 271 |
// NewResourceBuilder returns a new resource builder that should be used to build a resource associated with for the emitted metrics. |
| 272 |
func (mb *MetricsBuilder) NewResourceBuilder() *ResourceBuilder { |
| 273 |
return NewResourceBuilder(mb.config.ResourceAttributes) |
| 274 |
} |
| 275 |
{{- end }} |
| 276 |
|
| 277 |
// updateCapacity updates max length of metrics and resource attributes that will be used for the slice capacity. |
| 278 |
func (mb *MetricsBuilder) updateCapacity(rm pmetric.ResourceMetrics) { |
| 279 |
if mb.metricsCapacity < rm.ScopeMetrics().At(0).Metrics().Len() { |
| 280 |
mb.metricsCapacity = rm.ScopeMetrics().At(0).Metrics().Len() |
| 281 |
} |
| 282 |
} |
| 283 |
|
| 284 |
// ResourceMetricsOption applies changes to provided resource metrics. |
| 285 |
type ResourceMetricsOption interface { |
| 286 |
apply(pmetric.ResourceMetrics) |
| 287 |
} |
| 288 |
|
| 289 |
type resourceMetricsOptionFunc func(pmetric.ResourceMetrics) |
| 290 |
|
| 291 |
func (rmof resourceMetricsOptionFunc) apply(rm pmetric.ResourceMetrics) { |
| 292 |
rmof(rm) |
| 293 |
} |
| 294 |
|
| 295 |
// WithResource sets the provided resource on the emitted ResourceMetrics. |
| 296 |
// It's recommended to use ResourceBuilder to create the resource. |
| 297 |
func WithResource(res pcommon.Resource) ResourceMetricsOption { |
| 298 |
return resourceMetricsOptionFunc(func(rm pmetric.ResourceMetrics) { |
| 299 |
res.CopyTo(rm.Resource()) |
| 300 |
}) |
| 301 |
} |
| 302 |
|
| 303 |
// WithStartTimeOverride overrides start time for all the resource metrics data points. |
| 304 |
// This option should be only used if different start time has to be set on metrics coming from different resources. |
| 305 |
func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption { |
| 306 |
return resourceMetricsOptionFunc(func(rm pmetric.ResourceMetrics) { |
| 307 |
var dps pmetric.NumberDataPointSlice |
| 308 |
metrics := rm.ScopeMetrics().At(0).Metrics() |
| 309 |
for i := 0; i < metrics.Len(); i++ { |
| 310 |
switch metrics.At(i).Type() { |
| 311 |
case pmetric.MetricTypeGauge: |
| 312 |
dps = metrics.At(i).Gauge().DataPoints() |
| 313 |
case pmetric.MetricTypeSum: |
| 314 |
dps = metrics.At(i).Sum().DataPoints() |
| 315 |
} |
| 316 |
for j := 0; j < dps.Len(); j++ { |
| 317 |
dps.At(j).SetStartTimestamp(start) |
| 318 |
} |
| 319 |
} |
| 320 |
}) |
| 321 |
} |
| 322 |
|
| 323 |
// EmitForResource saves all the generated metrics under a new resource and updates the internal state to be ready for |
| 324 |
// recording another set of data points as part of another resource. This function can be helpful when one scraper |
| 325 |
// needs to emit metrics from several resources. Otherwise calling this function is not required, |
| 326 |
// just `Emit` function can be called instead. |
| 327 |
// Resource attributes should be provided as ResourceMetricsOption arguments. |
| 328 |
func (mb *MetricsBuilder) EmitForResource(options ...ResourceMetricsOption) { |
| 329 |
rm := pmetric.NewResourceMetrics() |
| 330 |
{{- if .SemConvVersion }} |
| 331 |
rm.SetSchemaUrl(conventions.SchemaURL) |
| 332 |
{{- end }} |
| 333 |
ils := rm.ScopeMetrics().AppendEmpty() |
| 334 |
ils.Scope().SetName(ScopeName) |
| 335 |
ils.Scope().SetVersion(mb.buildInfo.Version) |
| 336 |
ils.Metrics().EnsureCapacity(mb.metricsCapacity) |
| 337 |
{{- range $name, $metric := .Metrics }} |
| 338 |
mb.metric{{- $name.Render }}.emit(ils.Metrics()) |
| 339 |
{{- end }} |
| 340 |
|
| 341 |
for _, op := range options { |
| 342 |
op.apply(rm) |
| 343 |
} |
| 344 |
{{ if .ResourceAttributes -}} |
| 345 |
for attr, filter := range mb.resourceAttributeIncludeFilter { |
| 346 |
if val, ok := rm.Resource().Attributes().Get(attr); ok && !filter.Matches(val.AsString()) { |
| 347 |
return |
| 348 |
} |
| 349 |
} |
| 350 |
for attr, filter := range mb.resourceAttributeExcludeFilter { |
| 351 |
if val, ok := rm.Resource().Attributes().Get(attr); ok && filter.Matches(val.AsString()) { |
| 352 |
return |
| 353 |
} |
| 354 |
} |
| 355 |
{{- end }} |
| 356 |
|
| 357 |
if ils.Metrics().Len() > 0 { |
| 358 |
mb.updateCapacity(rm) |
| 359 |
rm.MoveTo(mb.metricsBuffer.ResourceMetrics().AppendEmpty()) |
| 360 |
} |
| 361 |
} |
| 362 |
|
| 363 |
// Emit returns all the metrics accumulated by the metrics builder and updates the internal state to be ready for |
| 364 |
// recording another set of metrics. This function will be responsible for applying all the transformations required to |
| 365 |
// produce metric representation defined in metadata and user config, e.g. delta or cumulative. |
| 366 |
func (mb *MetricsBuilder) Emit(options ...ResourceMetricsOption) pmetric.Metrics { |
| 367 |
mb.EmitForResource(options...) |
| 368 |
metrics := mb.metricsBuffer |
| 369 |
mb.metricsBuffer = pmetric.NewMetrics() |
| 370 |
return metrics |
| 371 |
} |
| 372 |
|
| 373 |
{{ range $name, $metric := .Metrics -}} |
| 374 |
// Record{{ $name.Render }}DataPoint adds a data point to {{ $name }} metric. |
| 375 |
func (mb *MetricsBuilder) Record{{ $name.Render }}DataPoint(ts pcommon.Timestamp |
| 376 |
{{- if $metric.Data.HasMetricInputType }}, inputVal {{ $metric.Data.MetricInputType.String }} |
| 377 |
{{- else }}, val {{ $metric.Data.MetricValueType.BasicType }} |
| 378 |
{{- end }} |
| 379 |
{{- range $metric.Attributes -}} |
| 380 |
{{- if not (attributeInfo .).IsConditional -}} |
| 381 |
, {{ .RenderUnexported }}AttributeValue {{ if (attributeInfo .).Enum }}Attribute{{ .Render }}{{ else }}{{ (attributeInfo .).Type.Primitive }}{{ end }} |
| 382 |
{{- end -}} |
| 383 |
{{- end -}} |
| 384 |
{{- if $metric.HasConditionalAttributes $.Attributes -}} |
| 385 |
, options... MetricAttributeOption |
| 386 |
{{- end -}} |
| 387 |
) |
| 388 |
{{- if $metric.Data.HasMetricInputType }} error{{ end }} { |
| 389 |
{{- if $metric.Data.HasMetricInputType }} |
| 390 |
{{- if eq $metric.Data.MetricValueType.BasicType "float64" }} |
| 391 |
val, err := strconv.ParseFloat(inputVal, 64) |
| 392 |
{{- else if eq $metric.Data.MetricValueType.BasicType "int64" }} |
| 393 |
val, err := strconv.ParseInt(inputVal, 10, 64) |
| 394 |
{{- end }} |
| 395 |
if err != nil { |
| 396 |
return fmt.Errorf("failed to parse {{ $metric.Data.MetricValueType.BasicType }} for {{ $name.Render }}, value was %s: %w", inputVal, err) |
| 397 |
} |
| 398 |
{{- end }} |
| 399 |
mb.metric{{ $name.Render }}.recordDataPoint(mb.startTime, ts, val |
| 400 |
{{- range $metric.Attributes -}} |
| 401 |
{{- if not (attributeInfo .).IsConditional -}} |
| 402 |
, {{ .RenderUnexported }}AttributeValue{{ if (attributeInfo .).Enum }}.String(){{ end }} |
| 403 |
{{- end -}} |
| 404 |
{{- end -}} |
| 405 |
{{- if $metric.HasConditionalAttributes $.Attributes -}} |
| 406 |
, options... |
| 407 |
{{- end -}} |
| 408 |
) |
| 409 |
{{- if $metric.Data.HasMetricInputType }} |
| 410 |
return nil |
| 411 |
{{- end }} |
| 412 |
} |
| 413 |
{{ end }} |
| 414 |
|
| 415 |
// Reset resets metrics builder to its initial state. It should be used when external metrics source is restarted, |
| 416 |
// and metrics builder should update its startTime and reset it's internal state accordingly. |
| 417 |
func (mb *MetricsBuilder) Reset(options ...MetricBuilderOption) { |
| 418 |
mb.startTime = pcommon.NewTimestampFromTime(time.Now()) |
| 419 |
for _, op := range options { |
| 420 |
op.apply(mb) |
| 421 |
} |
| 422 |
} |