diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3ac7ae5f2b7..3f3cccacc2a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -18679,9 +18679,10 @@ components: description: |- The Splunk sourcetype for the events sent to this Splunk destination. - If absent, the default sourcetype `_json` is used. If set to null, the `sourcetype` - field is omitted from the Splunk HEC payload entirely. Otherwise, the provided string - value is used as the sourcetype. + If the field is absent from the request and no sourcetype has been previously set on this destination, the default sourcetype `_json` is used. + On update, if the field is absent from the request but a sourcetype was previously set, the previous value is kept. + If set to `null`, the sourcetype field is omitted from the forwarded event entirely. + Otherwise, the provided string value is used as the sourcetype. example: my-source nullable: true type: string @@ -18964,9 +18965,10 @@ components: description: |- The Splunk sourcetype for the events sent to this Splunk destination. - If absent, the default sourcetype `_json` is used. If set to null, the `sourcetype` - field is omitted from the Splunk HEC payload entirely. Otherwise, the provided string - value is used as the sourcetype. + If the field is absent from the request and no sourcetype has been previously set on this destination, the default sourcetype `_json` is used. + On update, if the field is absent from the request but a sourcetype was previously set, the previous value is kept. + If set to `null`, the sourcetype field is omitted from the forwarded event entirely. + Otherwise, the provided string value is used as the sourcetype. example: my-source nullable: true type: string diff --git a/src/main/java/com/datadog/api/client/v2/model/CustomDestinationForwardDestinationSplunk.java b/src/main/java/com/datadog/api/client/v2/model/CustomDestinationForwardDestinationSplunk.java index fbeaf7b493c..c845936beb2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CustomDestinationForwardDestinationSplunk.java +++ b/src/main/java/com/datadog/api/client/v2/model/CustomDestinationForwardDestinationSplunk.java @@ -105,9 +105,11 @@ public CustomDestinationForwardDestinationSplunk sourcetype(String sourcetype) { /** * The Splunk sourcetype for the events sent to this Splunk destination. * - *

If absent, the default sourcetype _json is used. If set to null, the - * sourcetype field is omitted from the Splunk HEC payload entirely. Otherwise, the - * provided string value is used as the sourcetype. + *

If the field is absent from the request and no sourcetype has been previously set on this + * destination, the default sourcetype _json is used. On update, if the field is + * absent from the request but a sourcetype was previously set, the previous value is kept. If set + * to null, the sourcetype field is omitted from the forwarded event entirely. + * Otherwise, the provided string value is used as the sourcetype. * * @return sourcetype */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CustomDestinationResponseForwardDestinationSplunk.java b/src/main/java/com/datadog/api/client/v2/model/CustomDestinationResponseForwardDestinationSplunk.java index b07813e3989..53eab8f26b8 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CustomDestinationResponseForwardDestinationSplunk.java +++ b/src/main/java/com/datadog/api/client/v2/model/CustomDestinationResponseForwardDestinationSplunk.java @@ -79,9 +79,11 @@ public CustomDestinationResponseForwardDestinationSplunk sourcetype(String sourc /** * The Splunk sourcetype for the events sent to this Splunk destination. * - *

If absent, the default sourcetype _json is used. If set to null, the - * sourcetype field is omitted from the Splunk HEC payload entirely. Otherwise, the - * provided string value is used as the sourcetype. + *

If the field is absent from the request and no sourcetype has been previously set on this + * destination, the default sourcetype _json is used. On update, if the field is + * absent from the request but a sourcetype was previously set, the previous value is kept. If set + * to null, the sourcetype field is omitted from the forwarded event entirely. + * Otherwise, the provided string value is used as the sourcetype. * * @return sourcetype */