Skip to content

[Docs] Update the API used in docs/devguide/newbeat.asciidoc #7159

@ph

Description

@ph

The content of the file need to be updated with the the beats generator.

	event := common.MapStr{ (1)
			"@timestamp": common.Time(time.Now()), (2)
			"type":       b.Name,
			"counter":    counter,
		}
		bt.client.PublishEvent(event) (3)
		logp.Info("Event sent")
		counter++

TODO:

  • use bt.client.Publish()
  • use beat.Event instead of using directly a common.MapStr
  • update the description.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions