Uses of Class
com.blackhillsoftware.json.EasySmfGsonBuilder
Package
Description
This package provides the
EasySmfGsonBuilder
class
which creates a Gson instance
configured to generate JSON from SMF data using EasySMF:JE classes.This package provides a command line program framework for writing
JSON data from SMF record input - see class
Smf2JsonCLI
for usage information.-
Uses of EasySmfGsonBuilder in com.blackhillsoftware.json
Modifier and TypeMethodDescriptionAdd a fixed value to the generated JSON for every record or section of a particular typeRename a section or field from a specific record or section type.EasySmfGsonBuilder.avoidScientificNotation
(boolean value) Use decimal numbers instead of scientific notation for a wider range of double and float values (true/false).<T extends SmfData>
EasySmfGsonBuilderEasySmfGsonBuilder.calculateEntry
(Class<T> targetType, String name, Function<T, Object> value) Add a calculated value to the JSON for every record or section of a particular typeEasySmfGsonBuilder.cicsClockDetail
(boolean value) Include detailed data for CICS clocks (true/false).EasySmfGsonBuilder.cicsExcludeGroup
(String name) Exclude a group of fields from CICS transaction dataEasySmfGsonBuilder.cicsVerbose
(boolean value) Export CICS transaction data in verbose format (true/false).EasySmfGsonBuilder.decimalPlaces
(int value) Set the maximum number of decimal places to be used in double and floating point numbers (1-9).EasySmfGsonBuilder.durationAsDuration
(boolean value) Indicate whether Duration entries for time values (CPU time etc) should be included.EasySmfGsonBuilder.durationAsSeconds
(boolean value) Indicate whether time values (CPU time etc) converted to seconds should be included.EasySmfGsonBuilder.exclude
(MonitoringField field) Exclude a CICS monitoring field.Exclude a section or field from a specific record or section type by name.Exclude a section or field by name.EasySmfGsonBuilder.include
(MonitoringField field) Include a CICS monitoring field.Include a section or field from a specific record or section type by name.Include a section or field by name.EasySmfGsonBuilder.includeDeprecated
(boolean value) Indicate whether fields that are marked as Deprecated in the EasySMF API should be includedEasySmfGsonBuilder.includeEmptyStrings
(boolean value) Include fields with empty strings in the output (true/false).EasySmfGsonBuilder.includeRawValues
(boolean value) Indicate whether the ...RawValue() entries should be included in the output where they are provided, eg java.time entries where the value is converted to Duration, LocalDateTime, Seconds etc.EasySmfGsonBuilder.includeSectionType
(boolean value) Indicate whether a "sectionType" entry should be added to each section with name of the section class.EasySmfGsonBuilder.includeUnsetFlags
(boolean value) Indicate whether flags returned as boolean values should be included if the flag is not set (i.e. the value is zero/false)EasySmfGsonBuilder.includeZeroValues
(boolean value) Include fields with zero values in the output (true/false).EasySmfGsonBuilder.setPrettyPrinting()
Call setPrettyPrinting() on the underlying GsonBuilderEasySmfGsonBuilder.timesAsEpochSeconds
(boolean value) Indicate whether time values (ZonedDateTime, OffsetDateTime, Instant) should be expressed as seconds from the Unix epoch -
Uses of EasySmfGsonBuilder in com.blackhillsoftware.smf2json.cli
Modifier and TypeMethodDescriptionSmf2JsonCLI.easySmfGsonBuilder()
Get theEasySmfGsonBuilder
used to create the Gson instance.