Skip to content

Commit

Permalink
Update json schema link in examples (#156)
Browse files Browse the repository at this point in the history
Reenable syntax completion in IDEs like IntelliJ for examples
  • Loading branch information
jeroenvandisseldorp authored Oct 11, 2024
1 parent e1a20e2 commit 88d0c17
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/00-example-generate-alertsettings.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to generate data and have it sent to a target topic in a given format.

Expand Down
2 changes: 1 addition & 1 deletion examples/00-example-generate-sensordata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to generate data and have it sent to a target topic in a given format.

Expand Down
2 changes: 1 addition & 1 deletion examples/01-example-inspect.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from four simple streams and log all messages

Expand Down
2 changes: 1 addition & 1 deletion examples/02-example-copy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a simple stream and copy every message to a target topic.

Expand Down
2 changes: 1 addition & 1 deletion examples/03-example-filter.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to filter messages from a simple stream. Here we
# only let "blue sensors" pass and discard other messages after logging.
Expand Down
2 changes: 1 addition & 1 deletion examples/04-example-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to branch processing of messages from a simple stream. Here we fork processing of "blue
# sensors" and "red sensors" into a separate branch each. All other sensors will be processed in a default branch.
Expand Down
2 changes: 1 addition & 1 deletion examples/05-example-route.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to route messages to a dynamic topic. The target topic is the result of an executed function.

Expand Down
2 changes: 1 addition & 1 deletion examples/06-example-duplicate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

streams:
sensor_source:
Expand Down
2 changes: 1 addition & 1 deletion examples/07-example-convert.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a simple AVRO stream, then perform a series of conversions:
#
Expand Down
2 changes: 1 addition & 1 deletion examples/08-example-count.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a simple stream, group by owner, apply windows and count owners per window.

Expand Down
2 changes: 1 addition & 1 deletion examples/09-example-aggregate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a simple stream, group by owner, apply windows and count owners per window.

Expand Down
2 changes: 1 addition & 1 deletion examples/10-example-queryable-table.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a simple stream, group by owner, apply windows and count owners per window.

Expand Down
2 changes: 1 addition & 1 deletion examples/11-example-field-modification.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from an AVRO stream, modify a specific field and output to a target
# stream. For validation purposes a second pipeline outputs the modified results.
Expand Down
2 changes: 1 addition & 1 deletion examples/12-example-byte-manipulation.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from a binary stream, manipulate specific bytes and output
# messages on a target stream. For validation purposes a second pipeline outputs the manipulated
Expand Down
2 changes: 1 addition & 1 deletion examples/13-example-join.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read sensor data from an Avro stream, join with the alert settings stored in a table and
# produce alerts on a topic for the sensor data that should trigger alerts
Expand Down
2 changes: 1 addition & 1 deletion examples/14-example-manual-state-store.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

streams:
sensor_source_avro:
Expand Down
2 changes: 1 addition & 1 deletion examples/15-example-pipeline-linking.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from four simple streams and log all messages

Expand Down
2 changes: 1 addition & 1 deletion examples/16-example-transform-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to transform timestamp and header information of messages

Expand Down
2 changes: 1 addition & 1 deletion examples/17-example-inspect-with-metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to read from four simple streams and log all messages

Expand Down
2 changes: 1 addition & 1 deletion examples/18-example-timestamp-extractor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $schema: https://raw.githubusercontent.com/Axual/ksml/main/docs/ksml-language-spec.json
# $schema: https://raw.githubusercontent.com/Axual/ksml/refs/heads/main/docs/ksml-language-spec.json

# This example shows how to apply a timestamp extractor and offset reset policy to an input stream

Expand Down

0 comments on commit 88d0c17

Please sign in to comment.