Skip to content

Instantly share code, notes, and snippets.

@sandalu95
Created February 19, 2019 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandalu95/6356427c5c58347186a7ca1867725914 to your computer and use it in GitHub Desktop.
Save sandalu95/6356427c5c58347186a7ca1867725914 to your computer and use it in GitHub Desktop.
Blog Codes - widgetConf.json file for TopAPICreators Widget
{
"name": "Top API Creators",
"id": "TopAPICreators",
"thumbnailURL": "",
"configs": {
"pubsub": {
"types": ["subscriber"]
},
"providerConfig" : {
"configs": {
"type": "SiddhiStoreDataProvider",
"config": {
"siddhiApp": "@App:name('APIMTopApiCreatorsSiddhi') @primaryKey('API_ID') @store(type=\"rdbms\" , datasource=\"AM_DB\") define table AM_API(API_ID int,API_PROVIDER string,API_NAME string,API_VERSION string,CONTEXT string,CONTEXT_TEMPLATE string,API_TIER string,CREATED_BY string,CREATED_TIME string,UPDATED_BY string,UPDATED_TIME string);",
"queryData": {
"query": "from AM_API select CREATED_BY,count(API_ID) AS count group by CREATED_BY order by count desc limit {{limit}};"
},
"publishingInterval": 60
}
}
},
"options": [
{
"id": "header",
"title": "Header",
"type": {
"name": "BOOLEAN",
"possibleValues": [
true,
false
]
},
"defaultValue": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment