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
{ | |
"dashboard":{ | |
"url":"apimanalytics", | |
"owner":"admin", | |
"name":"APIM Analytics", | |
"description":"Widgets to configure APIM Analytics Alert Configurations", | |
"landingPage":"home", | |
"parentId":"0", | |
"pages":[{ | |
"id":"home", |
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
@source(type='inMemory' , topic='APIM_REQUEST') | |
define stream Request (meta_clientType string, applicationConsumerKey string, applicationName string, applicationId string, applicationOwner string, apiContext string,apiName string, apiVersion string, apiResourcePath string, apiResourceTemplate string, apiMethod string, apiCreator string, apiCreatorTenantDomain string, apiTier string, apiHostname string, username string, userTenantDomain string, userIp string, userAgent string, requestTimestamp long, throttledOut bool, responseTime long, serviceTime long, backendTime long, responseCacheHit bool, responseSize long, protocol string, responseCode int, destination string, securityLatency long, throttlingLatency long, requestMedLat long, responseMedLat long, backendLatency long, otherLatency long, gatewayType string, label string); | |
from Request | |
select apiName, apiVersion, apiCreator, responseCode, ifThenElse(responseCode>=500,1,0) as Fivexx, ifThenElse(responseCode>=400 AND responseCode<500,1,0) as Fourxx, ifThenEl |
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": { |
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
const path = require('path'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = { | |
context: path.resolve(__dirname, './src'), | |
entry: { | |
index: './TopAPICreators.jsx', | |
}, | |
output: { | |
path: path.resolve(__dirname, './dist/TopAPICreators'), |
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", | |
"version": "1.0.0", | |
"private": true, | |
"dependencies": { | |
"@wso2-dashboards/widget": "^1.4.0", | |
"@material-ui/core": "^3.9.0", | |
"@material-ui/icons": "^3.0.2", | |
"react": "^16.7.0", | |
"axios": "^0.16.2", |