Fix spelling errors in comments and documentation (#7492)
This commit is contained in:
@@ -83,7 +83,7 @@ func (s *serializer) createMulti(metric telegraf.Metric, dataGroup HECTimeSeries
|
||||
dataGroup.Source = commonTags.Source
|
||||
dataGroup.Fields = commonTags.Fields
|
||||
|
||||
// Stuff the metrid data into the structure.
|
||||
// Stuff the metric data into the structure.
|
||||
for _, field := range metric.FieldList() {
|
||||
value, valid := verifyValue(field.Value)
|
||||
|
||||
@@ -101,7 +101,7 @@ func (s *serializer) createMulti(metric telegraf.Metric, dataGroup HECTimeSeries
|
||||
// Output the data as a fields array and host,index,time,source overrides for the HEC.
|
||||
metricJSON, err = json.Marshal(dataGroup)
|
||||
default:
|
||||
// Just output the data and the time, useful for file based outuputs
|
||||
// Just output the data and the time, useful for file based outputs
|
||||
dataGroup.Fields["time"] = dataGroup.Time
|
||||
metricJSON, err = json.Marshal(dataGroup.Fields)
|
||||
}
|
||||
@@ -115,7 +115,7 @@ func (s *serializer) createMulti(metric telegraf.Metric, dataGroup HECTimeSeries
|
||||
}
|
||||
|
||||
func (s *serializer) createSingle(metric telegraf.Metric, dataGroup HECTimeSeries, commonTags CommonTags) (metricGroup []byte, err error) {
|
||||
/* The default mode is to generate one JSON entitiy per metric (required for pre-8.0 Splunks)
|
||||
/* The default mode is to generate one JSON entity per metric (required for pre-8.0 Splunks)
|
||||
**
|
||||
** The format for single metric is 'nameOfMetric = valueOfMetric'
|
||||
*/
|
||||
@@ -149,7 +149,7 @@ func (s *serializer) createSingle(metric telegraf.Metric, dataGroup HECTimeSerie
|
||||
// Output the data as a fields array and host,index,time,source overrides for the HEC.
|
||||
metricJSON, err = json.Marshal(dataGroup)
|
||||
default:
|
||||
// Just output the data and the time, useful for file based outuputs
|
||||
// Just output the data and the time, useful for file based outputs
|
||||
dataGroup.Fields["time"] = dataGroup.Time
|
||||
metricJSON, err = json.Marshal(dataGroup.Fields)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user