Skip to content

Commit

Permalink
Added HOURS option for source refresh interval. (#1190)
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
  • Loading branch information
AWSHurneyt authored Oct 19, 2024
1 parent 2b33ca2 commit 1c31032
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export const ThreatIntelSourceDetails: React.FC<ThreatIntelSourceDetailsProps> =
}}
onScheduleChange={onIntervalChange}
readonly={isReadOnly || !enabled}
scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]}
scheduleUnitOptions={[
defaultIntervalUnitOptions.HOURS,
defaultIntervalUnitOptions.DAYS,
]}
/>
</EuiFlexItem>
{(!isReadOnly || !enabled) && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const AddThreatIntelSource: React.FC<AddThreatIntelSourceProps> = ({
interval: {
start_time: Date.now(),
period: 1,
unit: 'DAYS',
unit: defaultIntervalUnitOptions.HOURS.value,
},
});
const [sourceType, setSourceType] = useState<'S3_CUSTOM' | 'IOC_UPLOAD'>('S3_CUSTOM');
Expand Down Expand Up @@ -545,7 +545,10 @@ export const AddThreatIntelSource: React.FC<AddThreatIntelSourceProps> = ({
unit: schedule.interval.unit,
},
}}
scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]}
scheduleUnitOptions={[
defaultIntervalUnitOptions.HOURS,
defaultIntervalUnitOptions.DAYS,
]}
onScheduleChange={onIntervalChange}
/>
<EuiSpacer />
Expand Down

0 comments on commit 1c31032

Please sign in to comment.