Skip to content

Commit

Permalink
Added HOURS option for source refresh interval.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Oct 18, 2024
1 parent 2b33ca2 commit 06e37f9
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 06e37f9

Please sign in to comment.