Personal tools

3.6.2. Provided Metrics

Up one level
Usage of the metrics provided with the GRIA OGSA-DAI Service

The OGSA-DAI service provides metrics for each of the resource types:

Resource type Description Metric URI
Databases Generated for users who create a new database or connect an existing database. http://www.gria.org/sla/metric/activity/ogsadai/db
Database roles Generated for each database role that is created. http://www.gria.org/sla/metric/activity/ogsadai/role
Database subscriptions Generated for the user who subscribes to a database role. http://www.gria.org/sla/metric/activity/ogsadai/subscription
Database subscribers Generated for the owner of a database role when somebody subscribes to it. http://www.gria.org/sla/metric/resource/ogsadai/subscriber

Example

User A has been given permission by the service provider to create databases. He wants to create a new database, create some tables in that database, and then give User B read/write access to those tables.

  • User A calls createDatabase.

    Usage report for User A - Database
    http://www.gria.org/sla/metric/activity/ogsadai/db
    Total now: 1
    Usage report for User A - Administrative Role
    http://www.gria.org/sla/metric/activity/ogsadai/role
    Total now: 1
    Usage report for User A - Read/Write Role
    http://www.gria.org/sla/metric/activity/ogsadai/role
    Total now: 2
    Usage report for User A - Read Only Role
    http://www.gria.org/sla/metric/activity/ogsadai/role
    Total now: 3
  • User A calls subscribe on his administrative role so he can create a table.

    Usage report for User A - Subscription
    http://www.gria.org/sla/metric/activity/ogsadai/subscription
    Total now: 1
    Usage report for User A - Subscriber
    http://www.gria.org/sla/metric/resource/ogsadai/subscriber
    Total now: 1
  • User A calls perform on his subscription, creating a table.

  • User A gives User B permission to subscribe to his Read/Write role.

  • User B calls subscribe on the Read/Write role.

    Usage report for User B - Subscription
    http://www.gria.org/sla/metric/activity/ogsadai/subscription
    Total now: 1
    Usage report for User A - Subscriber
    http://www.gria.org/sla/metric/resource/ogsadai/subscriber
    Total now: 2
  • User B executes some queries on his Read/Write subscription.

At the end of this example, the usage for the two users is as follows:

User A's usage
1 database
3 database roles
1 subscription
2 subscribers
User B's usage
1 subscription