Draft
Conversation
and use given timestamp
having learned something about python imports today... turns out this gives an AttributeError: ``` import unittest unittest.mock ``` ...unless something somewhere (maybe another module) has already done `from unittest import mock` (or `import unittest.mock`), after which `unittest`, however and wherever it's imported, does have a `mock` attr (fair enough within a module, but boo to the inter-module side effect)
fed3c14 to
34c7b18
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DJELME_AUTOSETUPsettingelasticsearch_metrics.imps.elastic8updates:require_been_setupcheck (cached) on first save for each record type.clean()(for use with bulk save)DjelmeRecordtypetoBaseDjelmeRecordMeta.timeseries_name_prefixtoMeta.index_name_prefixMeta.timedepthtoMeta.timeseries_index_timedepth(contrastCyclicRecord's "cycle timedepth").refresh_timeseries_indexes()to simply.refresh().get_timeseries_index_prefix()to.get_index_name_prefix()session_idtoclient_session_idkwarg inCountedUsageRecord.record(...)SimpleRecordabstract record type that has a single index, for non-timeseries djelme conveniencesdjelme_backend_checkcommandopaque_session_key(for COUNTER session-hour)elasticsearch_metrics.tests.utildjelme_test_backends()context manager, to setup/teardown with random index-name prefixesunittest.TestCasesubclasses to base tests on