Amberflo.io API 미터링 플러그인 구성 참조
Amberflo.io API 미터링 플러그인 구성 참조 (Amberflo.io API Metering Plugin Configuration Reference)
이 문서는 Kong Gateway에서 Amberflo.io로 API 사용량을 미터링해 전송하는 플러그인의 구성 옵션을 정리한 참조 자료예요. API 키, 배치 크기, 전송 주기 같은 기본 설정부터 차원 매핑과 값 치환 규칙까지 각 필드의 타입과 기본값, 설명이 스키마 형태로 담겨 있어요. 플러그인이 동작할 프로토콜을 지정하거나 특정 서비스와 라우트에만 적용되도록 범위를 좁히는 방법도 함께 확인할 수 있어요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"apiKey": {
"description": "Your Amberflo API key.",
"type": "string"
},
"batchSize": {
"default": 10,
"description": "The size at which to send the meter record batch.",
"type": "number"
},
"customerHeader": {
"description": "The header to get the Amberflo `customerId` from.",
"type": "string"
},
"dimensionHeaders": {
"description": "The map of \"dimension name\" to \"header name\", for inclusion in the meter record.",
"type": "object"
},
"hostDimension": {
"description": "The dimension name for the target URL host.",
"type": "string"
},
"intervalSeconds": {
"default": 1,
"description": "The rate (in seconds) at which to send the meter record batch.",
"type": "number"
},
"meterApiName": {
"description": "The meter for metering the requests.",
"type": "string"
},
"methodDimension": {
"description": "The dimension name for the request method.",
"type": "string"
},
"replacements": {
"default": "{ \"/\": \":\" }",
"description": "The map of \"old\" to \"new\" values for transforming dimension values.",
"type": "object"
},
"routeDimension": {
"description": "The dimension name for the route name.",
"type": "string"
},
"serviceDimension": {
"description": "The dimension name for the service name.",
"type": "string"
}
},
"required": [],
"type": "object"
},
"protocols": {
"default": [
"http",
"https"
],
"description": "A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support tcp and tls.",
"items": {
"enum": [
"http",
"https"
],
"required": [],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"required": [],
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"required": [],
"type": "object"
}
},
"required": []
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.