Create Kafka Mapper

Create Kafka Mapper

Create a new Kafka Mapper.

Request
URI
POST
https://{api_host}/tcsa.host.com/v1/kafkamapper/mappings
COPY
Request Body

Request to create a New Kafka Mapper.

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

{
    "message": "Metadata for package ves-event 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

409

Resource already exists

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure