Welcome to Zuora Product Documentation

Explore our rich library of product information

Defining meters: manage_meters

Use manage_meters to define meters, configure event schemas and stores, validate pipelines, and create or manage meter definitions.

OperationAccessWhat it does
meter_guidanceReadDescribes the workflow and available operations. Start here.
get_meter_settingsReadReturns tenant context, such as units of measure
list_data_typesReadLists the JSON schema field types (string, number, boolean, and so on). No authentication required.
list_event_definitionsReadLists event schemas, with filters by name or numeric ID
create_event_definitionWriteCreates an event schema
update_event_definitionWriteUpdates an event schema. Run list_event_definitions first.
list_event_storesReadLists event stores, with filters
create_event_storeWriteCreates an event store. Optionally sets the lake target to PAIMON or HUDI.
update_event_storeWriteUpdates an event store. Run list_event_stores first.
list_connectionsReadLists connections, filterable by type and status
validate_meterReadChecks a pipeline task structure without saving it
get_meterReadReturns the full meter definition, including tasks, versions, and run status
create_meterWriteCreates a meter
update_meterWriteReplaces the task list for version 0.0.1. The full task list is replaced, not merged.
list_metersReadLists meters, filterable by name and meter type
get_task_metadataReadReturns the configuration schema for a specific operator
export_meterReadExports a meter definition as JSON for backup or migration
duplicate_meterWriteClones a meter under a new ID
import_meterWriteImports a meter from exported JSON

Meter types

TypeUse case
CUSTOMPipeline-based meter with SOURCE, PROCESSOR, and SINK steps. This is the default.
DIRECT, DELTA, CUMULATIVESpecialized aggregation patterns
SUM, MAX, MIN, COUNT, AVGBuilt-in aggregation meters, which require a type definition

Task model for custom meters

FieldDescription
idA UUID that identifies the task
nameA readable label
nodeTypeSOURCE, PROCESSOR, or SINK
operatorTypeThe operator, such as S3, KAFKA, SNOWFLAKE, AGGREGATE, EVENT_STORE, or HTTP
predecessorsThe IDs of the upstream tasks
metadataOperator-specific settings. Use get_task_metadata to see what each operator accepts.

Building a meter from a description

When you describe a pipeline in plain language, the agent follows these steps:

  1. Reads the meter guidance and the supported data types.
  2. Reuses an existing event schema and event store where possible, or creates new ones.
  3. Confirms that the required connections are active.
  4. Retrieves the configuration for each SOURCE, PROCESSOR, and SINK operator.
  5. Validates the pipeline structure before saving.
  6. Creates the meter.
  7. Runs it in debug mode only if you approve.

Event store requirements: the event schema must include eventIdFields at the root level and at least one field marked eventTime=true. The schema eventStoreApplicable flag indicates whether a schema can be used with an event store.

Common definition errors

ErrorHow to resolve it
DUPLICATED_EVENT_DEFINITION_NAMEReuse the existing schema or choose a new name
EVENT_DEFINITION_CANNOT_UPDATE_WHEN_REFERENCED_BY_ACTIVE_METERSStop or deactivate the meters that reference the schema, then update it
Connection is INACTIVEActivate the connection in the Connections page before referencing it in a task