You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/microsoft-office365-source/src/main/java/org/opensearch/dataprepper/plugins/source/microsoft_office365/Office365Source.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ public void start(Buffer<Record<Event>> buffer) {
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/microsoft-office365-source/src/main/java/org/opensearch/dataprepper/plugins/source/microsoft_office365/Office365SourceConfig.java
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,26 @@ public class Office365SourceConfig implements CrawlerSourceConfig {
59
59
@DurationMax(days = 7, message = "Range cannot exceed 7 days due to Office 365 API limitation")
60
60
privateDurationrange;
61
61
62
+
/**
63
+
* Gets the look back range as minutes for the crawler framework.
64
+
* This method supports minute-level granularity for historical pulls.
65
+
*
66
+
* @return the number of minutes to look back, or 0 if no range is specified
67
+
*/
68
+
publiclonggetLookBackMinutes() {
69
+
if (range == null || range.isZero() || range.isNegative()) {
70
+
return0;
71
+
}
72
+
returnrange.toMinutes();
73
+
}
74
+
62
75
/**
63
76
* Gets the look back range as hours for compatibility with existing crawler framework.
64
77
*
65
78
* @return the number of hours to look back, or 0 if no range is specified
79
+
* @deprecated Use {@link #getLookBackMinutes()} for minute-level granularity support
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/microsoft-office365-source/src/main/java/org/opensearch/dataprepper/plugins/source/microsoft_office365/service/Office365Service.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -63,11 +63,11 @@ public AuditLogsResponse searchAuditLogs(final String logType,
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/microsoft-office365-source/src/test/java/org/opensearch/dataprepper/plugins/source/microsoft_office365/Office365SourceConfigTest.java
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/microsoft-office365-source/src/test/java/org/opensearch/dataprepper/plugins/source/microsoft_office365/service/Office365ServiceTest.java
Copy file name to clipboardExpand all lines: data-prepper-plugins/saas-source-plugins/source-crawler/src/main/java/org/opensearch/dataprepper/plugins/source/source_crawler/base/DimensionalTimeSliceCrawler.java
+43-14Lines changed: 43 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,10 @@
28
28
/**
29
29
* A crawler implementation that partitions work along two dimensions:
30
30
* 1. Dimension type (e.g., log types)
31
-
* 2. Time slices (hourly windows)
32
-
*
31
+
* 2. Time slices (configurable time windows)
33
32
* This crawler supports both historical data ingestion and incremental updates,
34
33
* creating separate partitions for each combination of dimension type and time window.
34
+
* Supports minute-level granularity for historical pulls (e.g., PT15M, PT30M).
0 commit comments