On this page
MirrorPolicy
MirrorPolicy API reference.
Proto: mirror_policy.proto
Package: trafficcontrol.policy.gloo.solo.io
Types:
- MirrorPolicyReport
- MirrorPolicyReport.WorkspacesEntry
- MirrorPolicySpec
- MirrorPolicySpec.Config
- MirrorPolicyStatus
MirrorPolicyReport
Field | Description |
---|---|
workspaces | (repeated MirrorPolicyReport.WorkspacesEntry )The status of the resource in each workspace that it exists in. |
selectedRoutes | (repeated common.gloo.solo.io.RouteReference )A list of references to all routes selected by the policy. |
MirrorPolicyReport.WorkspacesEntry
Field | Description |
---|---|
key | (string ) |
value | (common.gloo.solo.io.Report ) |
MirrorPolicySpec
MirrorPolicy is used to mirror/shadow traffic to a another destination (traffic will be sent to its original destination in addition to the mirrored destinations). MirrorPolicies are applied at the Route level.
Field | Description |
---|---|
applyToRoutes | (repeated common.gloo.solo.io.RouteSelector )select the routes where the policy will be applied if left empty, will apply to all routes in the workspace. |
config | (MirrorPolicySpec.Config )The details of the Mirror policy to apply to the selected routes |
MirrorPolicySpec.Config
Field | Description |
---|---|
destination | (common.gloo.solo.io.DestinationReference )The destination to which to send mirrored traffic |
percentage | (google.protobuf.DoubleValue )Percentage of traffic to mirror. If omitted all traffic will be mirrored. Values must be between 0 and 100. For information about the value format, see the Google protocol buffer documentation. |
MirrorPolicyStatus
reflects the status of the MirrorPolicy
Field | Description |
---|---|
common | (common.gloo.solo.io.Status ) |
numSelectedRoutes | (uint32 )The number of routes selected by this policy. |