Skip to content

Service Usage Matrix

Matthijs Laan edited this page Apr 4, 2016 · 3 revisions

When logged in to the viewer-admin, open the menu-item Gegevensregister -> Service Gebruiks Matrix to see an overview of which attribute sources are used by which layers in an application.

To use this information in your own reporting, since version v4.6.4 you can request structured information from the flamingo configuration database as follows:

/viewer-admin/action/serviceUsageMatrix/json

A JSON object with the JSON representations of all applications and feature sources.

/viewer-admin/action/serviceUsageMatrix/xml

The same, but in XML. To determine which layer of a service is used by which application, look in the subelements of appLayers under an application and match the layerName and serviceId. You can find the URL of the service by looking for a subelement under the services element with an id subelement matching the serviceId of an applicationLayer. Note that multiple services subelements may occur in the entire document if a service is used by multiple applications.

/viewer-admin/action/serviceUsageMatrix/xmlTransformed

The same data, but with application layers matched to feature sources. The featureType elements under featureSources now have an applications array of applications using the feature type.

Use in scripts

If you want to get this information using a script, you need to login to the application by posting the login form with j_username and j_password form fields to /viewer-admin/j_security_check and send the cookies set by viewer-admin to the above mentioned URLs. Write your script to do something as described on this page.