Skip to content

Commit

Permalink
add target group label
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-h-phillips committed Jan 3, 2025
1 parent 9a65f61 commit cbc177e
Showing 1 changed file with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,7 @@ export const TargetMetricFields = ({
inputClassName="metric-select-input"
/>
)}
{!isCustomMetric &&
command.targetTrackingConfiguration.predefinedMetricSpecification?.predefinedMetricType ===
'ALBRequestCountPerTarget' && (
<ReactSelectInput
value={command.targetTrackingConfiguration.predefinedMetricSpecification?.resourceLabel}
options={targetGroupOptions()}
onChange={(e) =>
setCommandField(
'targetTrackingConfiguration.predefinedMetricSpecification.resourceLabel',
e.target.value,
)
}
inputClassName="metric-select-input"
/>
)}

{isCustomMetric && (
<MetricSelector
alarm={command.targetTrackingConfiguration.customizedMetricSpecification as IScalingPolicyAlarmView}
Expand All @@ -163,6 +149,26 @@ export const TargetMetricFields = ({
)}
</div>
</div>
{!isCustomMetric &&
command.targetTrackingConfiguration.predefinedMetricSpecification?.predefinedMetricType ===
'ALBRequestCountPerTarget' && (
<div className="row sp-margin-s-yaxis">
<div className="col-md-2 sm-label-right">Target Group</div>
<div className="col-md-10 content-fields horizontal">
<ReactSelectInput
value={command.targetTrackingConfiguration.predefinedMetricSpecification?.resourceLabel}
options={targetGroupOptions()}
onChange={(e) =>
setCommandField(
'targetTrackingConfiguration.predefinedMetricSpecification.resourceLabel',
e.target.value,
)
}
inputClassName="metric-select-input"
/>
</div>
</div>
)}
<div className="row sp-margin-s-yaxis">
<div className="col-md-2 sm-label-right">Target</div>
<div className="col-md-10 content-fields horizontal">
Expand Down

0 comments on commit cbc177e

Please sign in to comment.