-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 Source Amplitude: added missing attrs in events schema, enabled default availability strategy #25842
🎉 Source Amplitude: added missing attrs in events schema, enabled default availability strategy #25842
Changes from 7 commits
0652efa
55e42fd
d076d5b
9ffaec6
5eb7f9c
1f9ef31
b50a12d
2bf0ce0
c425afb
fdf4dfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
import pendulum | ||
import requests | ||
from airbyte_cdk.models import SyncMode | ||
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy | ||
from airbyte_cdk.sources.streams.http import HttpStream | ||
|
||
LOGGER = logging.getLogger("airbyte") | ||
|
@@ -68,10 +67,6 @@ def url_base(self) -> str: | |
subdomain = "analytics.eu." if self.data_region == "EU Residency Server" else "" | ||
return f"https://{subdomain}amplitude.com/api/" | ||
|
||
@property | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Connector does have custom error handling. |
||
def availability_strategy(self) -> Optional["AvailabilityStrategy"]: | ||
return None | ||
Comment on lines
-72
to
-73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just double checked - I think @midavadim is right. The availability strategy's |
||
|
||
@property | ||
def time_interval(self) -> dict: | ||
return {self.event_time_interval.get("size_unit"): self.event_time_interval.get("size")} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woot 🥳