Skip to content

Commit

Permalink
Add support for footnote in prefix description. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin authored and karenzone committed Jun 8, 2018
1 parent 3516abe commit b87c730
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ These are fields which are common across all types of events.

## <a name="agent"></a> Agent fields

The agent fields contains the data about the agent/client/shipper that created the event.

As an example in case of Beats for logs the `agent.name` is `filebeat`. In the case of APM it is the agent running in the app / service. The agent information does not change if data is sent through queuing system like Kafka, Redis, or processing systems like Logstash or APM Server.
The agent fields contain the data about the agent/client/shipper that created the event.


| Field | Description | Type | Multi Field | Example |
Expand All @@ -75,6 +73,9 @@ As an example in case of Beats for logs the `agent.name` is `filebeat`. In the c
| <a name="agent.ephemeral_id"></a>`agent.ephemeral_id` | Ephemeral identifier of this agent if one exists.<br/>This id compared to id normally changes across restarts. | keyword | | `8a4f500f` |


In the case of Beats for logs, the agent.name is filebeat. For APM, it is the agent running in the app/service. The agent information does not change if data is sent through queuing systems like Kafka, Redis, or processing systems such as Logstash or APM Server.


## <a name="cloud"></a> Cloud fields

All fields related to the cloud or infrastructure the events are coming from.
Expand Down
12 changes: 6 additions & 6 deletions schemas/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
title: Agent
group: 2
description: >
The agent fields contains the data about the agent/client/shipper that
The agent fields contain the data about the agent/client/shipper that
created the event.
As an example in case of Beats for logs the `agent.name` is `filebeat`.
In the case of APM it is the agent running in the app / service. The agent
information does not change if data is sent through queuing system like
Kafka, Redis, or processing systems like Logstash or APM Server.
footnote: >
In the case of Beats for logs, the agent.name is filebeat. For APM, it is the
agent running in the app/service. The agent information does not change if
data is sent through queuing systems like Kafka, Redis, or processing systems
such as Logstash or APM Server.
fields:
- name: version
type: keyword
Expand Down
4 changes: 4 additions & 0 deletions scripts/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def clean_fields(fields):

for field in namespace["fields"]:
clean_string_field(field, "description")
clean_string_field(field, "footnote")
clean_string_field(field, "example")
clean_string_field(field, "type")

Expand Down Expand Up @@ -136,4 +137,7 @@ def get_markdown_table(namespace, title_prefix="##", link=False):

output += "\n\n"

if "footnote" in namespace:
output += namespace["footnote"].replace("\n", "\n\n") + "\n"

return output

0 comments on commit b87c730

Please sign in to comment.