Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema revisions, add json aliases #5349

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class LambdaProcessorConfig extends LambdaCommonConfig {

@JsonPropertyDescription("Defines a condition for event to use this processor.")
@ExampleValues({
@Example(value = "/some_key == null", description = "The processor will only run on this condition.")
@Example(value = "/some_key == null", description = "The processor will only run when on events where this condition evaluates to true.")
shenkw1 marked this conversation as resolved.
Show resolved Hide resolved
})
@JsonProperty("lambda_when")
private String whenCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static boolean isValidPattern(final String pattern) {
@JsonPropertyDescription("Specifies under what condition the <code>date</code> processor should run. " +
shenkw1 marked this conversation as resolved.
Show resolved Hide resolved
"Default is no condition.")
@ExampleValues({
@Example(value = "/some_key == null", description = "Only runs the date processor on the Event if some_key is null or doesn't exist.")
@Example(value = "/some_key == null", description = "The processor will only run when on events where this condition evaluates to true.")
shenkw1 marked this conversation as resolved.
Show resolved Hide resolved
})
private String dateWhen;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class FlattenProcessorConfig {
"The default is <code>false</code> which leaves the source fields.")
private boolean removeProcessedFields = false;

@JsonProperty("remove_list_items")
@JsonProperty("remove_list_elements")
@JsonAlias(REMOVE_LIST_INDICES_KEY)
@JsonPropertyDescription("When <code>true</code>, the processor converts the fields from the source map into lists and " +
"puts the lists into the target field. Default is <code>false</code>.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class AddEntryProcessorConfig {
public static class Entry {
@JsonPropertyDescription("The key of the new entry to be added. Some examples of keys include <code>my_key</code>, " +
"<code>myKey</code>, and <code>object/sub_Key</code>. The key can also be a format expression, for example, <code>${/key1}</code> to " +
"use the value of field <code>key1</code> as the key. At least one of <code>key</code> or <code>metadata_key</code> is required.")
"use the value of field <code>key1</code> as the key. Exactly one of <code>key</code> or <code>metadata_key</code> is required.")
@AlsoRequired(values = {
@AlsoRequired.Required(name=METADATA_KEY_KEY, allowedValues = {"null"})
})
Expand All @@ -80,7 +80,7 @@ public static class Entry {
@JsonProperty(METADATA_KEY_KEY)
@JsonPropertyDescription("The key for the new metadata attribute. The argument must be a literal string key " +
"and not a JSON Pointer. Adds an attribute to the Events that will not be sent to the sinks, but can be used for condition expressions and routing with the getMetadata function. " +
"At least one of <code>key</code> or <code>metadata_key</code> is required.")
"Exactly one of <code>key</code> or <code>metadata_key</code> is required.")
@AlsoRequired(values = {
@AlsoRequired.Required(name="key", allowedValues = {"null"})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public static class Entry {
@NotEmpty
@NotNull
@JsonProperty("from_key")
@JsonPropertyDescription("The key of the entry to be copied.")
@JsonPropertyDescription("The key of the entry to be copied. This must be configured.")
private String fromKey;

@NotEmpty
@NotNull
@JsonProperty("to_key")
@JsonPropertyDescription("The key of the new entry to be added.")
@JsonPropertyDescription("The key of the new entry to be added. This must be configured.")
private String toKey;

@JsonProperty("overwrite_if_to_key_exists")
Expand Down Expand Up @@ -87,15 +87,15 @@ public Entry() {

@JsonProperty(FROM_LIST_KEY)
@JsonPropertyDescription("The key of the list of objects to be copied. " +
"Both <code>from_key</code> and <code>to_key</code> will be applied on the corresponding list.")
"Both <code>from_key</code> and <code>to_key</code> must be configured and will be applied on the corresponding list.")
@AlsoRequired(values = {
@AlsoRequired.Required(name = TO_LIST_KEY)
})
private String fromList;

@JsonProperty(TO_LIST_KEY)
@JsonPropertyDescription("The key of the new list to be added. " +
"Both <code>from_key</code> and <code>to_key</code> will be applied on the corresponding list.")
"Both <code>from_key</code> and <code>to_key</code> must be configured and will be applied on the corresponding list.")
@AlsoRequired(values = {
@AlsoRequired.Required(name = FROM_LIST_KEY)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class ObfuscationProcessorConfig {

@JsonProperty("source")
@JsonPropertyDescription("The source key to obfuscate. Default action is to mask ith <code>*</code>.")
@JsonPropertyDescription("The source key to obfuscate. Default action is to mask with <code>*</code>.")
@NotEmpty
@NotNull
@ExampleValues({
Expand Down
Loading