LogoLogo
  • User Guide
    • Getting Started
      • Building a Usage-Based Product in Revenium
      • Setting Up & Using API Analytics & Observability
      • Setting Up & Using Product Analytics
      • Sending Data to Revenium's Metering API
      • Key Concepts & Relationships
    • Connect Your Data
      • cURL Commands for Testing
      • Container-Native Metering
      • Kong
        • Kubernetes Installation
      • Salesforce
        • Revenium Unmanaged Package
          • Anypoint API Experience Hub (AEH)
            • Anypoint API Experience Hub Unmanaged Package Post Installation Instructions
          • Anypoint Community Manager (ACM)
            • Anypoint Community Manager Package Post Installation Instructions
        • Revenium Lightning Web Components
          • Add Components to Experience Cloud site
          • Drop-In Storefront
          • Product Card
          • Product Card (Anypoint)
          • Product Checkout
          • Product Details Button
          • Usage History
          • API Access Requester
      • MuleSoft
        • Metering Policy Configuration
        • Offline Metering Policy Configuration
        • Anypoint API & API Group Synchronization
        • Revenium Connector
        • Disable Default Anypoint Community Manager (ACM) Email Notifications
      • Gravitee
      • Istio
      • Envoy
      • AWS API Gateway
      • Python & Django
      • Golang
      • Spring Boot
      • .Net
      • NodeJs
      • Java/JVM
      • Snowflake
      • Azure API Management
      • IBM
      • Custom Integrations Using Metering Beacons
        • JWT Enrichment
      • Offline Metering via Log Parsing
    • Sources
      • Metering Elements
      • Alerts
        • Alert History
    • API Keys
    • Products & Pricing
      • Product Lines
      • Pricing Rules
        • Revenium Scripting Language
          • RSL Reference
        • Execution Logs
      • SLA Definitions
      • SLA Violation Review
    • Customers
      • Customers
      • Subscribers
      • Subscriptions
      • Subscribers Credentials
      • Subscribers Notifications
    • Billing and Invoicing
      • Manage Refunds
    • Analytics
      • Revenue Analytics
      • Product Analytics
        • Custom Reports (Products)
      • Subscriber Analytics
        • New Subscribers
        • (Daily/Weekly/Monthly) Active Subscribers
        • Most Engaged Subscribers & Customers
        • Historical Usage
      • API Analytics
        • Performance & Availability
        • Compare Periods
        • Traffic by Geography
        • Advanced Search
        • Custom Reports
    • Profile
      • Profile
      • Revenium API Documentation
    • Settings
      • Revenium Users & Organizations
        • Access Permissions by User Type
      • Revenium Subscription
      • Revenium Organizations
      • Notification Templates
      • Transactions Logs
        • Analytics Transaction Log
        • Product Transaction Log
        • Subscription Audit Log
        • No Code Transaction Testing
      • Integrations
        • Data Sync
        • Export Configurations
        • Notification Providers
        • Payment Configurations
          • Customer VAT ID Support
        • ERP Configurations
        • External Integration Logs
        • Identity Providers
      • System Logs
      • Default Configuration Limits
Powered by GitBook

© Revenium - www.revenium.io

On this page
  • Installation
  • Configuration
  • Sending Metering Data
  1. User Guide
  2. Connect Your Data
  3. MuleSoft

Revenium Connector

Revenium provides a Mule connector that can be used in Mule applications to programmatically send metering data to the Revenium platform.

Last updated 9 months ago

This connector is for general purpose event ingest into the Revenium platform. For API specific metering using the Revenium Metering Policy is the recommended approach for metering API transactions. Policy documentation is available here:

Installation

Add this dependency to your Mule application's pom.xml

<groupId>io.revenium.metering.mule</groupId>
<artifactId>revenium-metering-connector</artifactId>
<version>1.0.0</version>
<classifier>mule-plugin</classifier>

Configuration

The connector requires a configuration element to be defined in the Mule configuration file. The configuration element should contain the following attributes:

<revenium-metering:config
        name="Revenium_Metering_Config" doc:name="Revenium Metering Config"
        configId="ca-dmv-poc">
    <revenium-metering:connection
            platformUrl="https://api.revenium.io/meter/v1/api"
            apiKey="hak_api_key"/>
</revenium-metering:config>

Sending Metering Data

The connector provides a meter element that can be used to send metering data to the Revenium platform.

The meter element should contain the following attributes:

  • subscriptionId - The subscription id identifying who is consuming the data

  • sourceId - The source id of the metering data

The metering data should be provided as a JSON payload in the message payload. The key value JSON pairs will be extracted from the payload and sent to the Revenium platform as metering elements.

Metering element documentation is available

https://docs.revenium.io/user-guide/readme/mulesoft/metering-policy-configuration
here