Created
February 19, 2019 18:20
-
-
Save sandalu95/6356427c5c58347186a7ca1867725914 to your computer and use it in GitHub Desktop.
Blog Codes - widgetConf.json file for TopAPICreators Widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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