capabilities.work

Set Up Analytics Export and Read Stats

A 2-step recipe with Apigee. We can help you get access.

Recipe · 2 steps

Set Up Analytics Export and Read Stats

with Apigee

Create an analytics datastore and query environment statistics.

  1. Create a datastore describing the Cloud Storage target Apigee will export analytics data to.
  2. Query environment statistics for the chosen dimension to confirm analytics data is available.
What you'll need to have ready
  • organizationId: The Apigee organization to configure analytics for.
  • environmentId: The environment to query statistics from.
  • datastoreDisplayName: Display name for the analytics datastore.
  • targetType: Type of target for the data export (e.g. gcs or bigquery).
  • bucketName: Cloud Storage bucket name for the export target.
  • dimensionName: The analytics dimension to query statistics for (e.g. apiproxy).
  • select: Comma-separated metrics to select (e.g. sum(message_count)).
  • timeRange: Time range for the query (MM/DD/YYYY HH:MM~MM/DD/YYYY HH:MM).
For your developer

Arazzo workflow apigee:setup-analytics-datastore, 2 operations: createDatastore → getEnvironmentStats. Specs on APIs.io.