Configuration input schema json files for rest/kafka custom collector.

The configuration input schema json files for rest/kafka custom collectors can be found below.

  • Rest Collecor - config_input_schema.json

{  
"$schema": "http://json-schema.org/draft-04/schema#",  
"type": "object",  
"properties": {    
    "host": {      
        "type": "string",      
        "title": "Host Url",      
        "description": "Rest Uri from where data will be collected"    
     },    
     "verify_ssl": {      
          "type": "string",      
          "title": "verify SSL",      
          "description": "SSL verification Required",      
          "default": "false"    
     },    
     "username": {      
          "type": "string",      
          "title":"Username",      
          "description": "Authentication Username",      
          "default": ""    
      },    
     "password": {      
           "type": "string",      
           "title":"Password",      
           "description": "Authentication Password",      
           "default": ""    
      },    
      "assert_hostname": {      
            "type": "string",      
            "title":"assert hostname",      
            "default": "127.0.0.1"    
       },    
       "ssl_ca_cert": {      
             "type": "string",      
             "title":"SSL certificate",      
             "description": "Base 64 encoded SSL certificate String", 
             "default": ""    
      }  
   },  
"required": [    "host",    "verify_ssl"  ]
}
  • Kafka Collector - config_input_schema.json

{  
"$schema": "http://json-schema.org/draft-04/schema#",  
"type": "object",  
"required": [    
     "bootstrap_server",    
     "num_workers",    
     "topic_name",    
     "group_id",    
     "auto_offset_reset",    
     "num_threads"  
   ],
"properties": {  
    "bootstrap_server": {    
        "description": "The unique identifier for a product",    
        "type": "string",    
        "title": "Bootstrap Server"  
    },  
    "num_workers": {    
        "description": "The number of workers for consumer,worker process 
            for a consumer will be spawned",    
        "type": "integer",    
        "title": "Number of Worker Process"  
     },  
     "topic_name": {    
          "description": "The unique identifier for a product",    
          "type": "string",    
          "title": "Topic Name"  
     },  
     "group_id": {    
         "description": "Group Id for the kafka consumer",    
         "type": "string",    "title": "Group Id",    
         "default": "custom-kafka-consumer-group"  
     },  
     "auto_offset_reset": {    
          "description": "auto_offset_reset",    
          "type": "string",    "title": "auto_offset_reset",    
          "default": "earliest",    
          "enum" :["earliest", "latest", "none"]  
      },  
     "num_threads": {    
          "description": "The Number of threads per consumer",    
          "type": "integer",    
          "title": "Num Threads"  
      },    
     "sink": {      
         "description": "This is the destination kafka details ", 
         "type": "object",      
         "title": "Sink Properties",      
         "properties": {        
             "topic": {          
                 "description": "The topic for output ",         
                 "type": "string",          
                 "title": "Topic Name"        
              },        
        "properties": {          
             "description": "target kafka auth type",          
             "type": "object",          
             "title": "Properties",          
             "properties": {            
                  "bootstrap_servers": {              
                       "description": "Destination kafka Server address", 
                       "type": "string",              
                       "title": "Destination kafka address"            
              }          
       },          
      "required": [ 
             "bootstrap_servers"          
      ]    
    }      
  },      
  "required": [ 
        "topic",        
        "properties"     
  ]    
 }
}
}