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 <[email protected]>
(cherry picked from commit 1c31032)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 23, 2024
1 parent ef5d1ea commit 57a81ab
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 57a81ab

Please sign in to comment.