Skip to content

Commit 03e921f

Browse files
committed
Add OS support to transforms on website
Signed-off-by: Ana Hobden <operator@hoverbear.org>
1 parent 850671d commit 03e921f

29 files changed

+88
-28
lines changed

.meta/.schemas/meta.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,14 @@
656656
"description": "A simple title for this transform, typically one word.",
657657
"minLength": 1,
658658
"max_lenfth": 50
659+
},
660+
"only_operating_systems": {
661+
"$ref": "#/definitions/operating_systems",
662+
"description": "A whitelist of operating systems supported by this source."
663+
},
664+
"except_operating_systems": {
665+
"$ref": "#/definitions/operating_systems",
666+
"description": "A blacklist of operating systems not supported by this source."
659667
}
660668
}
661669
}

.meta/transforms/wasm.toml.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function_category = "program"
77
input_types = ["log"]
88
output_types = ["log"]
99
requirements = {}
10+
only_operating_systems = ["Linux"]
1011

1112
<%= render("_partials/fields/_component_options.toml", type: "transform", name: "wasm") %>
1213

scripts/generate/templates/_partials/_component_header.md.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: <%= "The Vector `#{component.name}` #{component.type} #{component_s
77
event_types: <%= component.event_types.to_json %>
88
function_category: <%= component.function_category.to_json %>
99
issues_url: <%= metadata.links.fetch("urls.#{component.id}_issues") %>
10-
<%- if !component.transform? -%>
10+
<%- if !component.transform? || component.respond_to?(:operating_systems) -%>
1111
operating_systems: <%= component.operating_systems.to_json %>
1212
<%- end -%>
1313
<%- if component.posts.any? -%>
@@ -17,7 +17,7 @@ sidebar_label: <%= "#{component.name}|#{component.event_types.to_json}".to_json
1717
source_url: <%= metadata.links.fetch("urls.#{component.id}_source") %>
1818
status: <%= component.status.to_json %>
1919
title: <%= "#{component.title} #{component.type.titleize}".to_json %>
20-
<%- if !component.transform? -%>
20+
<%- if !component.transform? || component.respond_to?(:operating_systems) -%>
2121
unsupported_operating_systems: <%= component.unsupported_operating_systems.to_json %>
2222
<%- end -%>
2323
---

website/docs/reference/transforms/add_fields.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-01"
2+
last_modified_on: "2020-06-10"
33
component_title: "Add Fields"
44
description: "The Vector `add_fields` transform accepts and outputs `log` events, allowing you to add one or more log fields."
55
event_types: ["log"]
66
function_category: "schema"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+add_fields%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "add_fields|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/add_fields.rs
1011
status: "prod-ready"
1112
title: "Add Fields Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

website/docs/reference/transforms/add_tags.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-01"
2+
last_modified_on: "2020-06-10"
33
component_title: "Add Tags"
44
description: "The Vector `add_tags` transform accepts and outputs `metric` events, allowing you to add one or more metric tags."
55
event_types: ["metric"]
66
function_category: "schema"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+add_tags%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "add_tags|[\"metric\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/add_tags.rs
1011
status: "prod-ready"
1112
title: "Add Tags Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

website/docs/reference/transforms/ansi_stripper.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-01"
2+
last_modified_on: "2020-06-10"
33
component_title: "ANSI Stripper"
44
description: "The Vector `ansi_stripper` transform accepts and outputs `log` events, allowing you to strips ANSI escape sequences from the specified field."
55
event_types: ["log"]
66
function_category: "sanitize"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+ansi_stripper%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "ansi_stripper|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/ansi_stripper.rs
1011
status: "prod-ready"
1112
title: "ANSI Stripper Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

website/docs/reference/transforms/aws_ec2_metadata.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-21"
2+
last_modified_on: "2020-06-10"
33
component_title: "AWS EC2 Metadata"
44
description: "The Vector `aws_ec2_metadata` transform accepts and outputs `log` events, allowing you to enrich logs with AWS EC2 instance metadata."
55
event_types: ["log"]
66
function_category: "enrich"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+aws_ec2_metadata%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "aws_ec2_metadata|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/aws_ec2_metadata.rs
1011
status: "beta"
1112
title: "AWS EC2 Metadata Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Alert from '@site/src/components/Alert';

website/docs/reference/transforms/coercer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-01"
2+
last_modified_on: "2020-06-10"
33
component_title: "Coercer"
44
description: "The Vector `coercer` transform accepts and outputs `log` events, allowing you to coerce log fields into fixed types."
55
event_types: ["log"]
66
function_category: "schema"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+coercer%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "coercer|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/coercer.rs
1011
status: "prod-ready"
1112
title: "Coercer Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

website/docs/reference/transforms/concat.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-01"
2+
last_modified_on: "2020-06-10"
33
component_title: "Concat"
44
description: "The Vector `concat` transform accepts and outputs `log` events, allowing you to concat (substrings) of other fields to a new one."
55
event_types: ["log"]
66
function_category: "schema"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+concat%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "concat|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/concat.rs
1011
status: "beta"
1112
title: "Concat Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

website/docs/reference/transforms/dedupe.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
last_modified_on: "2020-05-21"
2+
last_modified_on: "2020-06-10"
33
component_title: "Dedupe events"
44
description: "The Vector `dedupe` transform accepts and outputs `log` events, allowing you to prevent duplicate Events from being outputted by using an LRU cache."
55
event_types: ["log"]
66
function_category: "filter"
77
issues_url: https://github.com/timberio/vector/issues?q=is%3Aopen+is%3Aissue+label%3A%22transform%3A+dedupe%22
8+
operating_systems: ["Linux","MacOS","Windows"]
89
sidebar_label: "dedupe|[\"log\"]"
910
source_url: https://github.com/timberio/vector/tree/master/src/transforms/dedupe.rs
1011
status: "prod-ready"
1112
title: "Dedupe events Transform"
13+
unsupported_operating_systems: []
1214
---
1315

1416
import Fields from '@site/src/components/Fields';

0 commit comments

Comments
 (0)