DataExplorerV2
Query and filter usage data
Changed onQuery and filter usage data collected for your Organization.
You can use several parameters to filter the range of usage data returned:
- Time period. Use startDate and endDate to define a period. The query references the timestamp values of usage data submissions for applying the defined time period, and not the time submissions were receivedAt by the platform. Only usage data with a timestamp that falls in the defined time period are returned.(Required)
- Meters. Specify the Meters you want the query to return data for.
- Accounts. Specify the Accounts you want the query to return data for.
- Dimension Filters. Specify values for Dimension data fields on included Meters. Only data that match the specified Dimension field values will be returned for the query.
You can apply Aggregations functions to the usage data returned for the query. If you apply Aggregations, you can select to group the data by:
- Account
- Time
- Dimension
post/organizations/{orgId}/usage/query
Request
- Base URLhttps://api.m3ter.com
- AuthOAuth 2Authorization codehttps://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize, token URL https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/tokenClient credentialsToken URL /oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orgIdstring required
UUID of the Organization. The Organization represents your company as a direct customer of the m3ter service.
Request body
Response
Returns a list of usage data
Changes
- breaking
the
///request property type changed from no type toobject - breaking
the
///request property type changed from no type toobject
- breaking
- breaking
removed from the
/request propertyoneOflist - info
added the new optional request property
// - info
the request property
////became optional - info
the request property
////became optional - info
added discriminator to
/request property
- breaking