This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 97295be9d614 CAMEL-23832: camel-influxdb2 - improve the component and
option descriptions (#30936)
97295be9d614 is described below
commit 97295be9d6149ad86de22c92e3195a3cc099b3bd
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:52:37 2026 +0100
CAMEL-23832: camel-influxdb2 - improve the component and option
descriptions (#30936)
New texts for the component description, the component option
influxDBClient, 8 endpoint options and 3 headers,
checked against the Camel code and the influxdb-client-java 8.0.0 sources.
The old writePrecision texts did not say
that a Point, a Map or a Points body keeps the precision of each Point,
CamelInfluxDB2MeasurementName is a key of the
Map body and not a header that the producer reads, and retentionPolicy
claimed an effect it does not have.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-influxdb2 is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../apache/camel/catalog/components/influxdb2.json | 26 +++----
.../camel/catalog/docs/influxdb2-component.adoc | 2 +-
.../camel/component/influxdb2/influxdb2.json | 26 +++----
.../src/main/docs/influxdb2-component.adoc | 2 +-
.../component/influxdb2/InfluxDb2Component.java | 10 +--
.../component/influxdb2/InfluxDb2Constants.java | 11 ++-
.../component/influxdb2/InfluxDb2Endpoint.java | 40 +++++++---
.../component/ComponentsBuilderFactory.java | 2 +-
.../dsl/Influxdb2ComponentBuilderFactory.java | 8 +-
.../builder/endpoint/EndpointHeaderBuilders.java | 2 +-
.../builder/endpoint/StaticEndpointBuilders.java | 14 ++--
.../dsl/InfluxDb2EndpointBuilderFactory.java | 88 +++++++++++++++-------
tasks/component-descriptions.md | 2 +-
13 files changed, 147 insertions(+), 86 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/influxdb2.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/influxdb2.json
index bed6be61f582..854a26db924e 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/influxdb2.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/influxdb2.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "influxdb2",
"title": "InfluxDB2",
- "description": "Interact with InfluxDB v2, a time series database.",
+ "description": "Write time series data to InfluxDB 2.x.",
"deprecated": false,
"firstVersion": "3.20.0",
"label": "database",
@@ -24,30 +24,30 @@
"remote": true
},
"componentProperties": {
- "influxDBClient": { "index": 0, "kind": "property", "displayName": "Influx
DBClient", "group": "producer", "label": "", "required": false, "type":
"object", "javaType": "com.influxdb.client.InfluxDBClient", "deprecated":
false, "autowired": true, "secret": false, "description": "The shared Influx DB
to use for all endpoints" },
+ "influxDBClient": { "index": 0, "kind": "property", "displayName": "Influx
DBClient", "group": "producer", "label": "", "required": false, "type":
"object", "javaType": "com.influxdb.client.InfluxDBClient", "deprecated":
false, "autowired": true, "secret": false, "description": "The
com.influxdb.client.InfluxDBClient that all endpoints use. When it is set or
autowired, the connectionBean of an endpoint is not looked up in the registry.
The component does not close this client." },
"lazyStartProducer": { "index": 1, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of measurement", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#MEASUREMENT" },
- "camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "Never read by the
component: the InfluxDB 2.x write API has no retention policy, retention is a
property of the bucket", "autowired": false, "secret": false, "description":
"The string that defines the retention policy to the data created by the
endpoint. Deprecation note: Never read by t [...]
+ "CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key of the measurement name in a Map body, which the
producer converts to a Point whose fields are the other entries of the Map. The
producer does not read a message header of this name.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb [...]
+ "camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "Never read by the
component: the InfluxDB 2.x write API has no retention policy, retention is a
property of the bucket", "autowired": false, "secret": false, "description":
"The name of a retention policy, which InfluxDB 1.x has and InfluxDB 2.x does
not. Deprecation note: Never read by t [...]
"CamelInfluxDB2Org": { "index": 2, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the organization to write to, overriding the org option on the
endpoint.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#ORG" },
"CamelInfluxDB2Bucket": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the bucket to write to, overriding the bucket option on the endpoint.",
"constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#BUCKET" },
- "CamelInfluxDB2WritePrecision": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s",
"us", "ns" ], "deprecated": false, "autowired": false, "secret": false,
"description": "InfluxDb Write precision.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#WRITE_PRECISION" }
+ "CamelInfluxDB2WritePrecision": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s",
"us", "ns" ], "deprecated": false, "autowired": false, "secret": false,
"description": "The precision of the timestamps in a Measurement, Record,
Measurements or Records body, which replaces the writePrecision option. It does
not apply to a Point, a Map or a Points body.", [...]
},
"bodyTypes": {
"producerIn": { "carriers": [ "pojo", "map" ], "byOption": [ { "option":
"operation", "value": "PING", "carriers": [ "any" ] } ], "description": "A
com.influxdb.client.write.Point, or the Measurement, Record, Points,
Measurements or Records wrappers of the component (package
org.apache.camel.component.influxdb2.data), or a Map of the field names and
their values with the measurement name under the CamelInfluxDB2MeasurementName
key. Text, a List or an annotated class that is not wrapp [...]
"producerOut": { "carriers": [ "unchanged" ], "byOption": [ { "option":
"operation", "value": "PING", "carriers": [ "value" ], "javaType":
"java.lang.Boolean" } ], "description": "An insert leaves the body unchanged;
ping gives a Boolean, true when the server answered" }
},
"properties": {
- "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection
Bean", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Connection to the Influx database, of class
com.influxdb.client.InfluxDBClient.class." },
- "autoCreateBucket": { "index": 1, "kind": "parameter", "displayName":
"Auto Create Bucket", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Define if we want
to auto create the bucket if it's not present." },
- "autoCreateOrg": { "index": 2, "kind": "parameter", "displayName": "Auto
Create Org", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Define if we want to
auto create the organization if it's not present." },
- "bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the bucket where the time series
will be stored." },
- "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation",
"enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "INSERT", "description": "Define if this
operation is an insert or a ping." },
- "org": { "index": 5, "kind": "parameter", "displayName": "Org", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the organization where the time series will be
stored." },
- "retentionPolicy": { "index": 6, "kind": "parameter", "displayName":
"Retention Policy", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": true,
"deprecationNote": "Never read by the component: the InfluxDB 2.x write API has
no retention policy, retention is a property of the bucket", "autowired":
false, "secret": false, "defaultValue": "default", "description": "Define the
retention policy to the data created by the [...]
- "writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write
Precision", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [
"ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "ms", "description": "The format or precision of time
series timestamps." },
+ "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection
Bean", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the
com.influxdb.client.InfluxDBClient bean to look up in the registry. It is not
looked up when the component has a client, set with its influxDBClient option
or autowired." },
+ "autoCreateBucket": { "index": 1, "kind": "parameter", "displayName":
"Auto Create Bucket", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether the
endpoint looks up the bucket of the bucket option when it starts, and creates
it in the organization of the org option when it does not exist. If
autoCreateOrg is false and that organization do [...]
+ "autoCreateOrg": { "index": 2, "kind": "parameter", "displayName": "Auto
Create Org", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether the endpoint
looks up the organization of the org option when it starts, and creates it when
it does not exist. An organization that the CamelInfluxDB2Org header names is
not created." },
+ "bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the bucket to write to. The
CamelInfluxDB2Bucket header replaces this option for a write. The
autoCreateBucket option uses this bucket when the endpoint starts." },
+ "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation",
"enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "INSERT", "description": "The operation of the
producer. INSERT writes the body to the bucket. PING calls the ping endpoint of
InfluxDB and sets the body to a Boolean: tru [...]
+ "org": { "index": 5, "kind": "parameter", "displayName": "Org", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the organization to write to. The CamelInfluxDB2Org
header replaces this option for a write. The autoCreateOrg and autoCreateBucket
options use this organization when the endpoint starts." },
+ "retentionPolicy": { "index": 6, "kind": "parameter", "displayName":
"Retention Policy", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": true,
"deprecationNote": "Never read by the component: the InfluxDB 2.x write API has
no retention policy, retention is a property of the bucket", "autowired":
false, "secret": false, "defaultValue": "default", "description": "The name of
a retention policy, which InfluxDB 1.x has [...]
+ "writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write
Precision", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [
"ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "ms", "description": "The precision of the timestamps in
a Measurement, Record, Measurements or Records body. It does not apply to a
Point, a Map or a Points body, as [...]
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/influxdb2-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/influxdb2-component.adoc
index eb9be9f59978..c1f2b0857710 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/influxdb2-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/influxdb2-component.adoc
@@ -2,7 +2,7 @@
:doctitle: InfluxDB2
:shortname: influxdb2
:artifactid: camel-influxdb2
-:description: Interact with InfluxDB v2, a time series database.
+:description: Write time series data to InfluxDB 2.x.
:since: 3.20
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-influxdb2/src/generated/resources/META-INF/org/apache/camel/component/influxdb2/influxdb2.json
b/components/camel-influxdb2/src/generated/resources/META-INF/org/apache/camel/component/influxdb2/influxdb2.json
index bed6be61f582..854a26db924e 100644
---
a/components/camel-influxdb2/src/generated/resources/META-INF/org/apache/camel/component/influxdb2/influxdb2.json
+++
b/components/camel-influxdb2/src/generated/resources/META-INF/org/apache/camel/component/influxdb2/influxdb2.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "influxdb2",
"title": "InfluxDB2",
- "description": "Interact with InfluxDB v2, a time series database.",
+ "description": "Write time series data to InfluxDB 2.x.",
"deprecated": false,
"firstVersion": "3.20.0",
"label": "database",
@@ -24,30 +24,30 @@
"remote": true
},
"componentProperties": {
- "influxDBClient": { "index": 0, "kind": "property", "displayName": "Influx
DBClient", "group": "producer", "label": "", "required": false, "type":
"object", "javaType": "com.influxdb.client.InfluxDBClient", "deprecated":
false, "autowired": true, "secret": false, "description": "The shared Influx DB
to use for all endpoints" },
+ "influxDBClient": { "index": 0, "kind": "property", "displayName": "Influx
DBClient", "group": "producer", "label": "", "required": false, "type":
"object", "javaType": "com.influxdb.client.InfluxDBClient", "deprecated":
false, "autowired": true, "secret": false, "description": "The
com.influxdb.client.InfluxDBClient that all endpoints use. When it is set or
autowired, the connectionBean of an endpoint is not looked up in the registry.
The component does not close this client." },
"lazyStartProducer": { "index": 1, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"Whether the producer should be started lazy (on the first message). By
starting lazy you can use this to allow CamelContext and routes to startup in
situations where a producer may otherwise fail [...]
"autowiredEnabled": { "index": 2, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of measurement", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#MEASUREMENT" },
- "camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "Never read by the
component: the InfluxDB 2.x write API has no retention policy, retention is a
property of the bucket", "autowired": false, "secret": false, "description":
"The string that defines the retention policy to the data created by the
endpoint. Deprecation note: Never read by t [...]
+ "CamelInfluxDB2MeasurementName": { "index": 0, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The key of the measurement name in a Map body, which the
producer converts to a Point whose fields are the other entries of the Map. The
producer does not read a message header of this name.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb [...]
+ "camelInfluxDB.RetentionPolicy": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "Never read by the
component: the InfluxDB 2.x write API has no retention policy, retention is a
property of the bucket", "autowired": false, "secret": false, "description":
"The name of a retention policy, which InfluxDB 1.x has and InfluxDB 2.x does
not. Deprecation note: Never read by t [...]
"CamelInfluxDB2Org": { "index": 2, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the organization to write to, overriding the org option on the
endpoint.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#ORG" },
"CamelInfluxDB2Bucket": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the bucket to write to, overriding the bucket option on the endpoint.",
"constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#BUCKET" },
- "CamelInfluxDB2WritePrecision": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s",
"us", "ns" ], "deprecated": false, "autowired": false, "secret": false,
"description": "InfluxDb Write precision.", "constantName":
"org.apache.camel.component.influxdb2.InfluxDb2Constants#WRITE_PRECISION" }
+ "CamelInfluxDB2WritePrecision": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "com.influxdb.client.domain.WritePrecision", "enum": [ "ms", "s",
"us", "ns" ], "deprecated": false, "autowired": false, "secret": false,
"description": "The precision of the timestamps in a Measurement, Record,
Measurements or Records body, which replaces the writePrecision option. It does
not apply to a Point, a Map or a Points body.", [...]
},
"bodyTypes": {
"producerIn": { "carriers": [ "pojo", "map" ], "byOption": [ { "option":
"operation", "value": "PING", "carriers": [ "any" ] } ], "description": "A
com.influxdb.client.write.Point, or the Measurement, Record, Points,
Measurements or Records wrappers of the component (package
org.apache.camel.component.influxdb2.data), or a Map of the field names and
their values with the measurement name under the CamelInfluxDB2MeasurementName
key. Text, a List or an annotated class that is not wrapp [...]
"producerOut": { "carriers": [ "unchanged" ], "byOption": [ { "option":
"operation", "value": "PING", "carriers": [ "value" ], "javaType":
"java.lang.Boolean" } ], "description": "An insert leaves the body unchanged;
ping gives a Boolean, true when the server answered" }
},
"properties": {
- "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection
Bean", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Connection to the Influx database, of class
com.influxdb.client.InfluxDBClient.class." },
- "autoCreateBucket": { "index": 1, "kind": "parameter", "displayName":
"Auto Create Bucket", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Define if we want
to auto create the bucket if it's not present." },
- "autoCreateOrg": { "index": 2, "kind": "parameter", "displayName": "Auto
Create Org", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Define if we want to
auto create the organization if it's not present." },
- "bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the bucket where the time series
will be stored." },
- "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation",
"enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "INSERT", "description": "Define if this
operation is an insert or a ping." },
- "org": { "index": 5, "kind": "parameter", "displayName": "Org", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the organization where the time series will be
stored." },
- "retentionPolicy": { "index": 6, "kind": "parameter", "displayName":
"Retention Policy", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": true,
"deprecationNote": "Never read by the component: the InfluxDB 2.x write API has
no retention policy, retention is a property of the bucket", "autowired":
false, "secret": false, "defaultValue": "default", "description": "Define the
retention policy to the data created by the [...]
- "writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write
Precision", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [
"ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "ms", "description": "The format or precision of time
series timestamps." },
+ "connectionBean": { "index": 0, "kind": "path", "displayName": "Connection
Bean", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the
com.influxdb.client.InfluxDBClient bean to look up in the registry. It is not
looked up when the component has a client, set with its influxDBClient option
or autowired." },
+ "autoCreateBucket": { "index": 1, "kind": "parameter", "displayName":
"Auto Create Bucket", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether the
endpoint looks up the bucket of the bucket option when it starts, and creates
it in the organization of the org option when it does not exist. If
autoCreateOrg is false and that organization do [...]
+ "autoCreateOrg": { "index": 2, "kind": "parameter", "displayName": "Auto
Create Org", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": true, "description": "Whether the endpoint
looks up the organization of the org option when it starts, and creates it when
it does not exist. An organization that the CamelInfluxDB2Org header names is
not created." },
+ "bucket": { "index": 3, "kind": "parameter", "displayName": "Bucket",
"group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of the bucket to write to. The
CamelInfluxDB2Bucket header replaces this option for a write. The
autoCreateBucket option uses this bucket when the endpoint starts." },
+ "operation": { "index": 4, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.influxdb2.enums.Operation",
"enum": [ "INSERT", "PING" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "INSERT", "description": "The operation of the
producer. INSERT writes the body to the bucket. PING calls the ping endpoint of
InfluxDB and sets the body to a Boolean: tru [...]
+ "org": { "index": 5, "kind": "parameter", "displayName": "Org", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the organization to write to. The CamelInfluxDB2Org
header replaces this option for a write. The autoCreateOrg and autoCreateBucket
options use this organization when the endpoint starts." },
+ "retentionPolicy": { "index": 6, "kind": "parameter", "displayName":
"Retention Policy", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": true,
"deprecationNote": "Never read by the component: the InfluxDB 2.x write API has
no retention policy, retention is a property of the bucket", "autowired":
false, "secret": false, "defaultValue": "default", "description": "The name of
a retention policy, which InfluxDB 1.x has [...]
+ "writePrecision": { "index": 7, "kind": "parameter", "displayName": "Write
Precision", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "com.influxdb.client.domain.WritePrecision", "enum": [
"ms", "s", "us", "ns" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "ms", "description": "The precision of the timestamps in
a Measurement, Record, Measurements or Records body. It does not apply to a
Point, a Map or a Points body, as [...]
"lazyStartProducer": { "index": 8, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
}
}
diff --git a/components/camel-influxdb2/src/main/docs/influxdb2-component.adoc
b/components/camel-influxdb2/src/main/docs/influxdb2-component.adoc
index eb9be9f59978..c1f2b0857710 100644
--- a/components/camel-influxdb2/src/main/docs/influxdb2-component.adoc
+++ b/components/camel-influxdb2/src/main/docs/influxdb2-component.adoc
@@ -2,7 +2,7 @@
:doctitle: InfluxDB2
:shortname: influxdb2
:artifactid: camel-influxdb2
-:description: Interact with InfluxDB v2, a time series database.
+:description: Write time series data to InfluxDB 2.x.
:since: 3.20
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Component.java
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Component.java
index c0a6943fac7b..f4030bd8abc4 100644
---
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Component.java
+++
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Component.java
@@ -28,7 +28,10 @@ import org.apache.camel.support.DefaultComponent;
@Component("influxdb2")
public class InfluxDb2Component extends DefaultComponent {
- @Metadata(autowired = true)
+ @Metadata(autowired = true,
+ description = "The com.influxdb.client.InfluxDBClient that all
endpoints use. When it is set or autowired,"
+ + " the connectionBean of an endpoint is not
looked up in the registry. The component does not"
+ + " close this client.")
private InfluxDBClient influxDBClient;
public InfluxDb2Component() {
@@ -51,11 +54,6 @@ public class InfluxDb2Component extends DefaultComponent {
return influxDBClient;
}
- /**
- * The shared Influx DB to use for all endpoints
- *
- * @param influxDBClient
- */
public void setInfluxDBClient(InfluxDBClient influxDBClient) {
this.influxDBClient = influxDBClient;
}
diff --git
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Constants.java
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Constants.java
index 263380a0b7d6..d1efb49b0b32 100644
---
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Constants.java
+++
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Constants.java
@@ -19,9 +19,12 @@ package org.apache.camel.component.influxdb2;
import org.apache.camel.spi.Metadata;
public final class InfluxDb2Constants {
- @Metadata(description = "The name of measurement", javaType = "String")
+ @Metadata(description = "The key of the measurement name in a Map body,
which the producer converts to a Point whose"
+ + " fields are the other entries of the Map. The
producer does not read a message header of this"
+ + " name.",
+ javaType = "String")
public static final String MEASUREMENT = "CamelInfluxDB2MeasurementName";
- @Metadata(description = "The string that defines the retention policy to
the data created by the endpoint",
+ @Metadata(description = "The name of a retention policy, which InfluxDB
1.x has and InfluxDB 2.x does not.",
javaType = "String",
deprecationNote = "Never read by the component: the InfluxDB 2.x
write API has no retention policy,"
+ " retention is a property of the bucket")
@@ -33,7 +36,9 @@ public final class InfluxDb2Constants {
@Metadata(description = "The name of the bucket to write to, overriding
the bucket option on the endpoint.",
javaType = "String")
public static final String BUCKET = "CamelInfluxDB2Bucket";
- @Metadata(description = "InfluxDb Write precision.", javaType =
"com.influxdb.client.domain.WritePrecision")
+ @Metadata(description = "The precision of the timestamps in a Measurement,
Record, Measurements or Records body, which"
+ + " replaces the writePrecision option. It does
not apply to a Point, a Map or a Points body.",
+ javaType = "com.influxdb.client.domain.WritePrecision")
public static final String WRITE_PRECISION =
"CamelInfluxDB2WritePrecision";
private InfluxDb2Constants() {
diff --git
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Endpoint.java
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Endpoint.java
index e98bd5e2fd47..a826dad579d0 100644
---
a/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Endpoint.java
+++
b/components/camel-influxdb2/src/main/java/org/apache/camel/component/influxdb2/InfluxDb2Endpoint.java
@@ -42,8 +42,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * Interact with <a
href="https://influxdata.com/time-series-platform/influxdb/">InfluxDB</a> v2, a
time series
- * database.
+ * Write time series data to <a
href="https://influxdata.com/time-series-platform/influxdb/">InfluxDB</a> 2.x.
*/
@UriEndpoint(firstVersion = "3.20.0", scheme = "influxdb2", title =
"InfluxDB2",
syntax = "influxdb2:connectionBean", category = {
Category.DATABASE },
@@ -71,30 +70,51 @@ public class InfluxDb2Endpoint extends DefaultEndpoint {
@UriPath
@Metadata(required = true,
- description = "Connection to the Influx database, of class
com.influxdb.client.InfluxDBClient.class.")
+ description = "The name of the
com.influxdb.client.InfluxDBClient bean to look up in the registry. It is not"
+ + " looked up when the component has a client, set
with its influxDBClient option or"
+ + " autowired.")
private String connectionBean;
@UriParam
- @Metadata(required = true, description = "The name of the organization
where the time series will be stored.")
+ @Metadata(required = true,
+ description = "The name of the organization to write to. The
CamelInfluxDB2Org header replaces this option"
+ + " for a write. The autoCreateOrg and
autoCreateBucket options use this organization when the"
+ + " endpoint starts.")
private String org;
@UriParam
- @Metadata(required = true, description = "The name of the bucket where the
time series will be stored.")
+ @Metadata(required = true,
+ description = "The name of the bucket to write to. The
CamelInfluxDB2Bucket header replaces this option for a"
+ + " write. The autoCreateBucket option uses this
bucket when the endpoint starts.")
private String bucket;
- @UriParam(defaultValue = "default", description = "Define the retention
policy to the data created by the endpoint.")
+ @UriParam(defaultValue = "default",
+ description = "The name of a retention policy, which InfluxDB
1.x has and InfluxDB 2.x does not.")
@Metadata(deprecationNote = "Never read by the component: the InfluxDB 2.x
write API has no retention policy,"
+ " retention is a property of the bucket")
@Deprecated
private String retentionPolicy = "default";
- @UriParam(defaultValue = "INSERT", description = "Define if this operation
is an insert or a ping.")
+ @UriParam(defaultValue = "INSERT",
+ description = "The operation of the producer. INSERT writes the
body to the bucket. PING calls the ping"
+ + " endpoint of InfluxDB and sets the body to a
Boolean: true when InfluxDB answered with"
+ + " success, false otherwise.")
private Operation operation = Operation.INSERT;
- @UriParam(defaultValue = "true", description = "Define if we want to auto
create the organization if it's not present.")
+ @UriParam(defaultValue = "true",
+ description = "Whether the endpoint looks up the organization of
the org option when it starts, and creates"
+ + " it when it does not exist. An organization
that the CamelInfluxDB2Org header names is not"
+ + " created.")
private boolean autoCreateOrg = true;
- @UriParam(defaultValue = "true", description = "Define if we want to auto
create the bucket if it's not present.")
+ @UriParam(defaultValue = "true",
+ description = "Whether the endpoint looks up the bucket of the
bucket option when it starts, and creates it in"
+ + " the organization of the org option when it
does not exist. If autoCreateOrg is false and"
+ + " that organization does not exist, the endpoint
fails to start. A bucket that the"
+ + " CamelInfluxDB2Bucket header names is not
created.")
private boolean autoCreateBucket = true;
@UriParam(defaultValue = "ms",
- description = "The format or precision of time series
timestamps.")
+ description = "The precision of the timestamps in a Measurement,
Record, Measurements or Records body. It"
+ + " does not apply to a Point, a Map or a Points
body, as the client writes each Point with its"
+ + " own precision (ns unless set with Point.time).
The CamelInfluxDB2WritePrecision header"
+ + " replaces this option.")
private WritePrecision writePrecision = WritePrecision.MS;
private String orgID;
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 9a9c62985d51..5d0b0450446d 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2858,7 +2858,7 @@ public interface ComponentsBuilderFactory {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Influxdb2ComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Influxdb2ComponentBuilderFactory.java
index 5f4894eafedf..b4a59e36d313 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Influxdb2ComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Influxdb2ComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.influxdb2.InfluxDb2Component;
/**
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,7 @@ public interface Influxdb2ComponentBuilderFactory {
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -51,7 +51,9 @@ public interface Influxdb2ComponentBuilderFactory {
interface Influxdb2ComponentBuilder extends
ComponentBuilder<InfluxDb2Component> {
/**
- * The shared Influx DB to use for all endpoints.
+ * The com.influxdb.client.InfluxDBClient that all endpoints use. When
+ * it is set or autowired, the connectionBean of an endpoint is not
+ * looked up in the registry. The component does not close this client.
*
* The option is a:
* <code>com.influxdb.client.InfluxDBClient</code> type.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index c05b1fe09680..a3d5b8835360 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -2263,7 +2263,7 @@ public class EndpointHeaderBuilders {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 73dfa6bbf7e6..8db32aa8be54 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -9290,7 +9290,7 @@ public class StaticEndpointBuilders {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -9299,8 +9299,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>influxdb2:connectionBean</code>
*
* Path parameter: connectionBean (required)
- * Connection to the Influx database, of class
- * com.influxdb.client.InfluxDBClient.class.
+ * The name of the com.influxdb.client.InfluxDBClient bean to look up in
the
+ * registry. It is not looked up when the component has a client, set with
+ * its influxDBClient option or autowired.
*
* @param path connectionBean
* @return the dsl builder
@@ -9310,7 +9311,7 @@ public class StaticEndpointBuilders {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -9319,8 +9320,9 @@ public class StaticEndpointBuilders {
* Syntax: <code>influxdb2:connectionBean</code>
*
* Path parameter: connectionBean (required)
- * Connection to the Influx database, of class
- * com.influxdb.client.InfluxDBClient.class.
+ * The name of the com.influxdb.client.InfluxDBClient bean to look up in
the
+ * registry. It is not looked up when the component has a client, set with
+ * its influxDBClient option or autowired.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/InfluxDb2EndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/InfluxDb2EndpointBuilderFactory.java
index 0493bd4f0ee8..2f6e6c386631 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/InfluxDb2EndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/InfluxDb2EndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,7 +45,11 @@ public interface InfluxDb2EndpointBuilderFactory {
}
/**
- * Define if we want to auto create the bucket if it's not present.
+ * Whether the endpoint looks up the bucket of the bucket option when
it
+ * starts, and creates it in the organization of the org option when it
+ * does not exist. If autoCreateOrg is false and that organization does
+ * not exist, the endpoint fails to start. A bucket that the
+ * CamelInfluxDB2Bucket header names is not created.
*
* The option is a: <code>boolean</code> type.
*
@@ -60,7 +64,11 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define if we want to auto create the bucket if it's not present.
+ * Whether the endpoint looks up the bucket of the bucket option when
it
+ * starts, and creates it in the organization of the org option when it
+ * does not exist. If autoCreateOrg is false and that organization does
+ * not exist, the endpoint fails to start. A bucket that the
+ * CamelInfluxDB2Bucket header names is not created.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -75,8 +83,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define if we want to auto create the organization if it's not
- * present.
+ * Whether the endpoint looks up the organization of the org option
when
+ * it starts, and creates it when it does not exist. An organization
+ * that the CamelInfluxDB2Org header names is not created.
*
* The option is a: <code>boolean</code> type.
*
@@ -91,8 +100,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define if we want to auto create the organization if it's not
- * present.
+ * Whether the endpoint looks up the organization of the org option
when
+ * it starts, and creates it when it does not exist. An organization
+ * that the CamelInfluxDB2Org header names is not created.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -107,7 +117,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * The name of the bucket where the time series will be stored.
+ * The name of the bucket to write to. The CamelInfluxDB2Bucket header
+ * replaces this option for a write. The autoCreateBucket option uses
+ * this bucket when the endpoint starts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -122,7 +134,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define if this operation is an insert or a ping.
+ * The operation of the producer. INSERT writes the body to the bucket.
+ * PING calls the ping endpoint of InfluxDB and sets the body to a
+ * Boolean: true when InfluxDB answered with success, false otherwise.
*
* The option is a:
* <code>org.apache.camel.component.influxdb2.enums.Operation</code>
@@ -139,7 +153,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define if this operation is an insert or a ping.
+ * The operation of the producer. INSERT writes the body to the bucket.
+ * PING calls the ping endpoint of InfluxDB and sets the body to a
+ * Boolean: true when InfluxDB answered with success, false otherwise.
*
* The option will be converted to a
* <code>org.apache.camel.component.influxdb2.enums.Operation</code>
@@ -156,7 +172,10 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * The name of the organization where the time series will be stored.
+ * The name of the organization to write to. The CamelInfluxDB2Org
+ * header replaces this option for a write. The autoCreateOrg and
+ * autoCreateBucket options use this organization when the endpoint
+ * starts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -171,9 +190,10 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * Define the retention policy to the data created by the endpoint.
- * Deprecation note: Never read by the component: the InfluxDB 2.x
write
- * API has no retention policy, retention is a property of the bucket.
+ * The name of a retention policy, which InfluxDB 1.x has and InfluxDB
+ * 2.x does not. Deprecation note: Never read by the component: the
+ * InfluxDB 2.x write API has no retention policy, retention is a
+ * property of the bucket.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -189,7 +209,11 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * The format or precision of time series timestamps.
+ * The precision of the timestamps in a Measurement, Record,
+ * Measurements or Records body. It does not apply to a Point, a Map or
+ * a Points body, as the client writes each Point with its own
precision
+ * (ns unless set with Point.time). The CamelInfluxDB2WritePrecision
+ * header replaces this option.
*
* The option is a:
* <code>com.influxdb.client.domain.WritePrecision</code> type.
@@ -205,7 +229,11 @@ public interface InfluxDb2EndpointBuilderFactory {
return this;
}
/**
- * The format or precision of time series timestamps.
+ * The precision of the timestamps in a Measurement, Record,
+ * Measurements or Records body. It does not apply to a Point, a Map or
+ * a Points body, as the client writes each Point with its own
precision
+ * (ns unless set with Point.time). The CamelInfluxDB2WritePrecision
+ * header replaces this option.
*
* The option will be converted to a
* <code>com.influxdb.client.domain.WritePrecision</code> type.
@@ -283,7 +311,7 @@ public interface InfluxDb2EndpointBuilderFactory {
public interface InfluxDb2Builders {
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -296,7 +324,7 @@ public interface InfluxDb2EndpointBuilderFactory {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -305,8 +333,9 @@ public interface InfluxDb2EndpointBuilderFactory {
* Syntax: <code>influxdb2:connectionBean</code>
*
* Path parameter: connectionBean (required)
- * Connection to the Influx database, of class
- * com.influxdb.client.InfluxDBClient.class.
+ * The name of the com.influxdb.client.InfluxDBClient bean to look up
in
+ * the registry. It is not looked up when the component has a client,
+ * set with its influxDBClient option or autowired.
*
* @param path connectionBean
* @return the dsl builder
@@ -316,7 +345,7 @@ public interface InfluxDb2EndpointBuilderFactory {
}
/**
* InfluxDB2 (camel-influxdb2)
- * Interact with InfluxDB v2, a time series database.
+ * Write time series data to InfluxDB 2.x.
*
* Category: database
* Since: 3.20
@@ -325,8 +354,9 @@ public interface InfluxDb2EndpointBuilderFactory {
* Syntax: <code>influxdb2:connectionBean</code>
*
* Path parameter: connectionBean (required)
- * Connection to the Influx database, of class
- * com.influxdb.client.InfluxDBClient.class.
+ * The name of the com.influxdb.client.InfluxDBClient bean to look up
in
+ * the registry. It is not looked up when the component has a client,
+ * set with its influxDBClient option or autowired.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -349,7 +379,9 @@ public interface InfluxDb2EndpointBuilderFactory {
public static final InfluxDb2HeaderNameBuilder INSTANCE = new
InfluxDb2HeaderNameBuilder();
/**
- * The name of measurement.
+ * The key of the measurement name in a Map body, which the producer
+ * converts to a Point whose fields are the other entries of the Map.
+ * The producer does not read a message header of this name.
*
* The option is a: {@code String} type.
*
@@ -361,8 +393,8 @@ public interface InfluxDb2EndpointBuilderFactory {
return "CamelInfluxDB2MeasurementName";
}
/**
- * The string that defines the retention policy to the data created by
- * the endpoint. Deprecation note: Never read by the component: the
+ * The name of a retention policy, which InfluxDB 1.x has and InfluxDB
+ * 2.x does not. Deprecation note: Never read by the component: the
* InfluxDB 2.x write API has no retention policy, retention is a
* property of the bucket.
*
@@ -403,7 +435,9 @@ public interface InfluxDb2EndpointBuilderFactory {
return "CamelInfluxDB2Bucket";
}
/**
- * InfluxDb Write precision.
+ * The precision of the timestamps in a Measurement, Record,
+ * Measurements or Records body, which replaces the writePrecision
+ * option. It does not apply to a Point, a Map or a Points body.
*
* The option is a: {@code com.influxdb.client.domain.WritePrecision}
* type.
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 03342390c2a4..b66d44aa4a4e 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -225,7 +225,7 @@ or removes its row.
| camel-infinispan | infinispan | |
| camel-infinispan-embedded | infinispan-embedded | |
| camel-influxdb | influxdb | |
-| camel-influxdb2 | influxdb2 | |
+| camel-influxdb2 | influxdb2 | yes |
| camel-jcache | jcache | |
| camel-jcr | jcr | |
| camel-jdbc | jdbc | |