Modify Kafka Mapper Mapping

Modify Kafka Mapper Mapping

Modify an Existing Kafka Mapper Configuration.

Request
URI
PUT
https://{api_host}/tcsa.host.com/v1/kafkamapper/mappings
COPY
Request Body
KafkaMapperRequestObject of type(s) application/json
Required
{
    "metadata": {
        "enabled": true,
        "description": "KMD RegEx Desc",
        "keys": [
            "string"
        ],
        "type": "json_metrics"
    },
    "default": {
        "mapping": {
            "metricType": "$.properties.devtype",
            "instance": "$.properties.instance",
            "properties.entityName": "$.properties.table",
            "properties.entityType": "$.properties.type",
            "processedTimestamp": "$.timestamp",
            "metrics": "$.metrics.*.value",
            "type": "Kafka-Metrics-Defn",
            "properties.dataSource": "$.properties.ip",
            "properties.deviceName": "$.properties.devdesc",
            "timestamp": "$.timestamp",
            "properties.deviceType": "$.properties.devtype",
            "tags": "$.relations.*.type"
        }
    }
}
Authentication
This operation uses the following authentication methods.
Responses
200

OK

{
    "status": "Metadata for Modified  Kafka Mapper has been persisted in repos"
}

400

Invalid Request sent by the user

Operation doesn't return any data structure

401

User authentication failed

Operation doesn't return any data structure

403

Access to the requested resource/operation is forbidden

Operation doesn't return any data structure

404

Cannot find requested resource

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure