-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from lsst-sqre/feature/redis
Feature/redis
- Loading branch information
Showing
11 changed files
with
1,252 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Avro schemas.""" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""USGS Schemas.""" | ||
|
||
from dataclasses import dataclass, field | ||
|
||
from dataclasses_avroschema.schema_generator import AvroModel | ||
|
||
|
||
@dataclass | ||
class EarthquakeSchema(AvroModel): | ||
"""Collection of earthquakes near the summit.""" | ||
|
||
timestamp: int | ||
id: str = field(metadata={"description": "unique earthquake id"}) | ||
latitude: float = field(metadata={"units": "degree"}) | ||
longitude: float = field(metadata={"units": "degree"}) | ||
depth: float = field(metadata={"units": "km"}) | ||
magnitude: float = field(metadata={"units": "u.richter_magnitudes"}) | ||
|
||
class Meta: | ||
"""Schema metadata.""" | ||
|
||
namespace = "$namespace" | ||
schema_name = "$topic_name" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters