1. A method for metering use of at least one of a plurality of resources in an on-demand service environment, the method comprising the steps of: a computer receiving a usage record that indicates a particular state and includes an identifier that identifies a group of records, wherein the group of records includes the usage record; the computer including in each one of the group of records an identification of one of the plurality of resources, an identification of one of a plurality of users that used the one of the plurality of resources, and an amount of usage of the one of the plurality of resources by the one of the plurality of users; the computer storing the usage record in a record table, wherein the record table includes values of different types of usages of different ones of the plurality of resources, and wherein the group of records is stored in the record table; the computer using a first rule to select a plurality of the group of records, wherein the first rule identifies at least one of the plurality of users and at least one of the plurality of resources that was used by the identified at least one of the plurality of users the computer adding each amount of usage included in each one of the plurality of the group of records to determine a total usage; and the computer using the total usage and a formula that is included in a second rule to calculate a metric, wherein the second rule includes an identification of the at least one of the plurality of users that used the at least one of the plurality of resources.