Amberflo · Schema
FilteringRule
A rule for filtering meter events before ingestion
Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetization
Properties
| Name | Type | Description |
|---|---|---|
| meterApiName | string | The meter API name this rule applies to |
| ruleId | string | Unique identifier for this filtering rule |
| dimensionName | string | The dimension to filter on |
| dimensionValues | array | Values to include or exclude |
| action | string | Whether to include or exclude matching events |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amberflo/refs/heads/main/json-schema/metering-filtering-rule-schema.json",
"title": "FilteringRule",
"description": "A rule for filtering meter events before ingestion",
"type": "object",
"properties": {
"meterApiName": {
"type": "string",
"description": "The meter API name this rule applies to",
"example": "api-calls"
},
"ruleId": {
"type": "string",
"description": "Unique identifier for this filtering rule",
"example": "rule-a1b2c3"
},
"dimensionName": {
"type": "string",
"description": "The dimension to filter on",
"example": "region"
},
"dimensionValues": {
"type": "array",
"description": "Values to include or exclude",
"items": {
"type": "string"
},
"example": [
"us-east-1",
"eu-west-1"
]
},
"action": {
"type": "string",
"description": "Whether to include or exclude matching events",
"enum": [
"INCLUDE",
"EXCLUDE"
],
"example": "INCLUDE"
}
},
"required": [
"meterApiName"
]
}