| | | 1 | | using Microsoft.Extensions.Logging; |
| | | 2 | | |
| | | 3 | | namespace GistBackend.Utils; |
| | | 4 | | |
| | | 5 | | public static class LogEvents |
| | | 6 | | { |
| | | 7 | | // ReSharper disable once FieldCanBeMadeReadOnly.Local |
| | | 8 | | private static int _eventId; |
| | | 9 | | |
| | 0 | 10 | | public static readonly EventId GistServiceDelayExceeded = new(++_eventId, nameof(GistServiceDelayExceeded)); |
| | 0 | 11 | | public static readonly EventId DatabaseConnectionFailed = new(++_eventId, nameof(DatabaseConnectionFailed)); |
| | | 12 | | |
| | 0 | 13 | | public static readonly EventId GistInserted = new(++_eventId, nameof(GistInserted)); |
| | 0 | 14 | | public static readonly EventId GistUpdated = new(++_eventId, nameof(GistUpdated)); |
| | 0 | 15 | | public static readonly EventId PaywallDetected = new(++_eventId, nameof(PaywallDetected)); |
| | 0 | 16 | | public static readonly EventId OpeningTransactionFailed = new(++_eventId, nameof(OpeningTransactionFailed)); |
| | 0 | 17 | | public static readonly EventId CommittingTransactionFailed = new(++_eventId, nameof(CommittingTransactionFailed)); |
| | 0 | 18 | | public static readonly EventId GettingFeedInfoByUrlFailed = new(++_eventId, nameof(GettingFeedInfoByUrlFailed)); |
| | 0 | 19 | | public static readonly EventId InsertingFeedInfoFailed = new(++_eventId, nameof(InsertingFeedInfoFailed)); |
| | 0 | 20 | | public static readonly EventId UpdatingFeedInfoFailed = new(++_eventId, nameof(UpdatingFeedInfoFailed)); |
| | 0 | 21 | | public static readonly EventId GettingGistByReferenceFailed = new(++_eventId, nameof(GettingGistByReferenceFailed)); |
| | 0 | 22 | | public static readonly EventId InsertingGistFailed = new(++_eventId, nameof(InsertingGistFailed)); |
| | 0 | 23 | | public static readonly EventId InsertingSummaryFailed = new(++_eventId, nameof(InsertingSummaryFailed)); |
| | 0 | 24 | | public static readonly EventId UpdatingGistFailed = new(++_eventId, nameof(UpdatingGistFailed)); |
| | 0 | 25 | | public static readonly EventId UpdatingSummaryFailed = new(++_eventId, nameof(UpdatingSummaryFailed)); |
| | 0 | 26 | | public static readonly EventId DatabaseOperationRetry = new(++_eventId, nameof(DatabaseOperationRetry)); |
| | 0 | 27 | | public static readonly EventId FetchingPageContentFailed = new(++_eventId, nameof(FetchingPageContentFailed)); |
| | 0 | 28 | | public static readonly EventId ExtractingPageContentFailed = new(++_eventId, nameof(ExtractingPageContentFailed)); |
| | 0 | 29 | | public static readonly EventId EntryAlreadyExistsInChromaDb = new(++_eventId, nameof(EntryAlreadyExistsInChromaDb)); |
| | 0 | 30 | | public static readonly EventId ParsingFeedFailed = new(++_eventId, nameof(ParsingFeedFailed)); |
| | | 31 | | |
| | 0 | 32 | | public static readonly EventId DocumentInserted = new(++_eventId, nameof(DocumentInserted)); |
| | | 33 | | |
| | 0 | 34 | | public static readonly EventId NoGistsForDailyRecap = new(++_eventId, nameof(NoGistsForDailyRecap)); |
| | 0 | 35 | | public static readonly EventId DailyRecapCreated = new(++_eventId, nameof(DailyRecapCreated)); |
| | 0 | 36 | | public static readonly EventId NoGistsForWeeklyRecap = new(++_eventId, nameof(NoGistsForWeeklyRecap)); |
| | 0 | 37 | | public static readonly EventId WeeklyRecapCreated = new(++_eventId, nameof(WeeklyRecapCreated)); |
| | 0 | 38 | | public static readonly EventId CheckIfRecapExistsFailed = new(++_eventId, nameof(CheckIfRecapExistsFailed)); |
| | 0 | 39 | | public static readonly EventId GettingGistsForRecapFailed = new(++_eventId, nameof(GettingGistsForRecapFailed)); |
| | 0 | 40 | | public static readonly EventId CouldNotGetRecap = new(++_eventId, nameof(CouldNotGetRecap)); |
| | | 41 | | |
| | 0 | 42 | | public static readonly EventId ChangedDisabledStateOfGistInDb = new(++_eventId, nameof(ChangedDisabledStateOfGistInD |
| | 0 | 43 | | public static readonly EventId ChangedMetadataOfGistInChromaDb = new(++_eventId, nameof(ChangedMetadataOfGistInChrom |
| | 0 | 44 | | public static readonly EventId GettingAllGistsFailed = new(++_eventId, nameof(GettingAllGistsFailed)); |
| | 0 | 45 | | public static readonly EventId EnsuringCorrectDisabledFailed = new(++_eventId, nameof(EnsuringCorrectDisabledFailed) |
| | 0 | 46 | | public static readonly EventId GettingDisabledStateFailed = new(++_eventId, nameof(GettingDisabledStateFailed)); |
| | | 47 | | |
| | 0 | 48 | | public static readonly EventId GettingPreviousGistsWithFeedFailed = new(++_eventId, nameof(GettingPreviousGistsWithF |
| | 0 | 49 | | public static readonly EventId GettingAllFeedInfosFailed = new(++_eventId, nameof(GettingAllFeedInfosFailed)); |
| | 0 | 50 | | public static readonly EventId NoRecapFound = new(++_eventId, nameof(NoRecapFound)); |
| | 0 | 51 | | public static readonly EventId GettingLatestRecapFailed = new(++_eventId, nameof(GettingLatestRecapFailed)); |
| | | 52 | | |
| | 0 | 53 | | public static readonly EventId ErrorInHttpRequest = new(++_eventId, nameof(ErrorInHttpRequest)); |
| | | 54 | | |
| | 0 | 55 | | public static readonly EventId ChatRegisterCheckFailed = new(++_eventId, nameof(ChatRegisterCheckFailed)); |
| | 0 | 56 | | public static readonly EventId NoRecentGistFound = new(++_eventId, nameof(NoRecentGistFound)); |
| | 0 | 57 | | public static readonly EventId ChatRegistered = new(++_eventId, nameof(ChatRegistered)); |
| | 0 | 58 | | public static readonly EventId ChatDeregistered = new(++_eventId, nameof(ChatDeregistered)); |
| | 0 | 59 | | public static readonly EventId RegisteringChatFailed = new(++_eventId, nameof(RegisteringChatFailed)); |
| | 0 | 60 | | public static readonly EventId DeregisteringChatFailed = new(++_eventId, nameof(DeregisteringChatFailed)); |
| | 0 | 61 | | public static readonly EventId SentTelegramMessage = new(++_eventId, nameof(SentTelegramMessage)); |
| | 0 | 62 | | public static readonly EventId UnexpectedTelegramError = new(++_eventId, nameof(UnexpectedTelegramError)); |
| | 0 | 63 | | public static readonly EventId GettingAllChatsFailed = new(++_eventId, nameof(GettingAllChatsFailed)); |
| | 0 | 64 | | public static readonly EventId GettingNextFiveGistsWithFeedFailed = new(++_eventId, nameof(GettingNextFiveGistsWithF |
| | 0 | 65 | | public static readonly EventId SendingGistToChatFailed = new(++_eventId, nameof(SendingGistToChatFailed)); |
| | 0 | 66 | | public static readonly EventId SettingGistIdLastSentFailed = new(++_eventId, nameof(SettingGistIdLastSentFailed)); |
| | | 67 | | |
| | 0 | 68 | | public static readonly EventId TelegramCommandNotRecognized = new(++_eventId, nameof(TelegramCommandNotRecognized)); |
| | 0 | 69 | | public static readonly EventId StartCommandButAlreadyRegistered = new(++_eventId, nameof(StartCommandButAlreadyRegis |
| | 0 | 70 | | public static readonly EventId StartCommandForNewChat = new(++_eventId, nameof(StartCommandForNewChat)); |
| | 0 | 71 | | public static readonly EventId StopCommandButNotRegistered = new(++_eventId, nameof(StopCommandButNotRegistered)); |
| | 0 | 72 | | public static readonly EventId StopCommandForExistingChat = new(++_eventId, nameof(StopCommandForExistingChat)); |
| | 0 | 73 | | public static readonly EventId SendingGistToChat = new(++_eventId, nameof(SendingGistToChat)); |
| | | 74 | | |
| | 0 | 75 | | public static readonly EventId DidNotFindExpectedFeedInDb = new(++_eventId, nameof(DidNotFindExpectedFeedInDb)); |
| | | 76 | | } |