FlowPreviewService_PreviewFlowLabels2
FlowPreviewService_PreviewFlowLabels2
Path Parameters
- control_point string required
Control point to preview.
Query Parameters
- samples int64
Number of samples to collect.
- service string
Service to preview.
- application/json
Request Body required
Flow labels to match. Optional parameter for advanced filtering.
expression object
match_expressions object[]
match_labels object
match_list object[]
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
samples object[]
{
"samples": [
{
"labels": {}
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
details object[]
- message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
POST /v1/flowcontrol/preview/labels/:control_point
Request
Request
curl / cURL
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/preview/labels/:control_point' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"expression": {
"all": {
"of": [
{}
]
},
"any": {
"of": [
{}
]
},
"label_equals": {
"label": "string",
"value": "string"
},
"label_exists": "string",
"label_matches": {
"label": "string",
"regex": "string"
},
"not": {}
},
"match_expressions": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
],
"match_labels": {},
"match_list": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
]
}'
python / requests
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/preview/labels/:control_point' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"expression": {
"all": {
"of": [
{}
]
},
"any": {
"of": [
{}
]
},
"label_equals": {
"label": "string",
"value": "string"
},
"label_exists": "string",
"label_matches": {
"label": "string",
"regex": "string"
},
"not": {}
},
"match_expressions": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
],
"match_labels": {},
"match_list": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
]
}'
go / native
curl -L -X POST 'https://aperture-agent/v1/flowcontrol/preview/labels/:control_point' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"expression": {
"all": {
"of": [
{}
]
},
"any": {
"of": [
{}
]
},
"label_equals": {
"label": "string",
"value": "string"
},
"label_exists": "string",
"label_matches": {
"label": "string",
"regex": "string"
},
"not": {}
},
"match_expressions": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
],
"match_labels": {},
"match_list": [
{
"key": "string",
"operator": "In",
"values": [
"string"
]
}
]
}'