Skip to content

Commit

Permalink
change json alias
Browse files Browse the repository at this point in the history
Signed-off-by: Katherine Shen <[email protected]>
  • Loading branch information
shenkw1 committed Jan 22, 2025
1 parent b028983 commit 4632aa3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ public static boolean isValidPattern(final String pattern) {
})
private String outputFormat = DEFAULT_OUTPUT_FORMAT;

@JsonProperty("to_origination_metadata")
@JsonAlias("origination_timestamp_to_metadata")
@JsonProperty("origination_timestamp_to_metadata")
@JsonAlias("to_origination_metadata")
@JsonPropertyDescription("Include the origination timestamp in the metadata. " +
"Enabling this option will use this timestamp to report the EndToEndLatency metric " +
"when events reach the sink. Default is <code>false</code>.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ public class FlattenProcessorConfig {
})
private String target;

@JsonProperty("remove_processed_fields")
@JsonAlias("remove_source_keys")
@JsonProperty("remove_source_keys")
@JsonAlias("remove_processed_fields")
@JsonPropertyDescription("When <code>true</code>, the processor removes all processed fields from the source. " +
"The default is <code>false</code> which leaves the source fields.")
private boolean removeProcessedFields = false;

@JsonProperty(REMOVE_LIST_INDICES_KEY)
@JsonAlias("remove_list_items")
@JsonProperty("remove_list_items")
@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>.")
private boolean removeListIndices = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class ConvertEntryTypeProcessorConfig implements ConverterArguments {
@JsonPropertyDescription("Target type for the values. Default value is <code>integer</code>.")
private TargetType type = TargetType.INTEGER;

@JsonProperty("null_values")
@JsonAlias("null_conversion_values")
@JsonProperty("null_conversion_values")
@JsonAlias("null_values")
@JsonPropertyDescription("String representation of what constitutes a null value. If the field value equals one of these strings, then the value is considered null and is converted to null.")
private List<String> nullValues;

Expand Down

0 comments on commit 4632aa3

Please sign in to comment.