Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Check the various properties present in config.json file on this page

Content on this page


Sample config.json file


 Click here to expand sample config.json

{

"mqConfig": {

"user": "iSight",
"password": "iSight",
"host": "127.0.0.1",
"exchange": "iSight",
"agentControlXchg": "iAgent"
},

"subscribe": {

"config": "SCM.GIT.config"
},

"publish": {

"data": "SCM.GIT.DATA",
"health": "SCM.GIT.HEALTH"
},

"communication": {

"type": "REST"
},

"dynamicTemplate": {

"responseTemplate": {

"sha": "commitId",

"commit": {

"author": {

"name": "authorName",
"date": "commitTime"

}

}

}

},

"enableBranches": false,
"toolCategory": "SCM",
"toolsTimeZone": "GMT",
"insightsTimeZone": "Asia/Kolkata",
"useResponseTemplate": true,
"auth": "base64",
"runSchedule": 30,
"timeStampField": "commitTime",
"timeStampFormat": "%Y-%m-%dT%H:%M:%SZ",
"startFrom": "2016-10-10 15:46:33",
"accessToken": "accesstoken",
"getRepos": "https://api.github.com/users/<USER_NAME>/repos",
"commitsBaseEndPoint": "https://api.github.com/repos/<REPO_NAME>/",
"isDebugAllowed": false,
"loggingSetting": {

"logLevel": "WARN"
}

}

Description of the properties in config.json file


PropertyDescription

"mqConfig": {

"user": "iSight",
"password": "iSight",
"host": "127.0.0.1",
"exchange": "iSight",
"agentControlXchg": "iAgent"
},

  • mqConfig - It contains the configuration used to setup and access RabbitMQ.
    • user - It is the username for RabbitMQ authentication.
    • password - It is the corresponding password for RabbitMQ authentication.
    • host - It is the host location name where RabbitMQ is hosted.
    • exchange It is the channel where agent related data exchanges will take place.
    • agentControlXchg It is the channel where control of agent related data information will take place.

"subscribe": {

"config": "SCM.GIT.config"
}

  • subscribe - It contains information related to the agent subscription queue.
    • config  - It is the name of the agent subscription queue.

"publish": {

"data": "SCM.GIT.DATA",
"health": "SCM.GIT.HEALTH"
}

  • publish - It contains publishing information related to the agent.
    • data - It is queue from which tool data is published into Neo4j.
    • health - It is queue from which tool execution information is published into Neo4j.

"communication": {

"type": "REST"
}

  • communication - It contains information related to the type of communication between the agent and the tool.
    • type - It defines the type of the communication. Eg: REST i.e. using RESTful APIs.

"dynamicTemplate": {

"responseTemplate": {

"sha": "commitId",

"commit": {

"author": {

"name": "authorName",
"date": "commitTime"

}

}

}

}

  • dynamicTemplate - This property contains information related to the response that is expected from the tool over REST APIs. This can be configured/customized at run time on the Agent's User Interface page.
    • responseTemplate - This is the response that is expected from the tool over REST API. This section shall always be included inside "dyanmicTemplate".
enableBranches

This is property that sets branching information for the tool.









Top Section

  • No labels