1 #ifndef PUBSEQ_GATEWAY_STAT_COUNTERS__HPP
2 #define PUBSEQ_GATEWAY_STAT_COUNTERS__HPP
3 
4 /*  $Id: stat_counters.hpp 618495 2020-10-21 15:00:25Z satskyse $
5  * ===========================================================================
6  *
7  *                            PUBLIC DOMAIN NOTICE
8  *               National Center for Biotechnology Information
9  *
10  *  This software/database is a "United States Government Work" under the
11  *  terms of the United States Copyright Act.  It was written as part of
12  *  the author's official duties as a United States Government employee and
13  *  thus cannot be copyrighted.  This software/database is freely available
14  *  to the public for use. The National Library of Medicine and the U.S.
15  *  Government have not placed any restriction on its use or reproduction.
16  *
17  *  Although all reasonable efforts have been taken to ensure the accuracy
18  *  and reliability of the software and data, the NLM and the U.S.
19  *  Government do not and cannot warrant the performance or results that
20  *  may be obtained by using this software or data. The NLM and the U.S.
21  *  Government disclaim all warranties, express or implied, including
22  *  warranties of performance, merchantability or fitness for any particular
23  *  purpose.
24  *
25  *  Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Sergey Satskiy
30  *
31  * File Description:
32  *
33  */
34 
35 
36 // All the statistics counter IDs
37 
38 static const string     kBadUrlPathCount("BadUrlPathCount");
39 static const string     kInsufficientArgumentsCount("InsufficientArgumentsCount");
40 static const string     kCassandraActiveStatementsCount("CassandraActiveStatementsCount");
41 static const string     kNumberOfConnections("NumberOfConnections");
42 static const string     kActiveRequestCount("ActiveRequestCount");
43 static const string     kShutdownRequested("ShutdownRequested");
44 static const string     kGracefulShutdownExpiredInSec("GracefulShutdownExpiredInSec");
45 static const string     kMalformedArgumentsCount("MalformedArgumentsCount");
46 static const string     kGetBlobNotFoundCount("GetBlobNotFoundCount");
47 static const string     kUnknownErrorCount("UnknownErrorCount");
48 static const string     kClientSatToSatNameErrorCount("ClientSatToSatNameErrorCount");
49 static const string     kServerSatToSatNameErrorCount("ServerSatToSatNameErrorCount");
50 static const string     kBlobPropsNotFoundErrorCount("BlobPropsNotFoundErrorCount");
51 static const string     kLMDBErrorCount("LMDBErrorCount");
52 static const string     kCassQueryTimeoutErrorCount("CassQueryTimeoutErrorCount");
53 static const string     kInvalidId2InfoErrorCount("InvalidId2InfoErrorCount");
54 static const string     kSplitHistoryNotFoundErrorCount("SplitHistoryNotFoundErrorCount");
55 static const string     kMaxHopsExceededErrorCount("MaxHopsExceededErrorCount");
56 static const string     kTotalErrorCount("TotalErrorCount");
57 static const string     kInputSeqIdNotResolved("InputSeqIdNotResolved");
58 static const string     kTSEChunkSplitVersionCacheMatched("TSEChunkSplitVersionCacheMatched");
59 static const string     kTSEChunkSplitVersionCacheNotMatched("TSEChunkSplitVersionCacheNotMatched");
60 static const string     kAdminRequestCount("AdminRequestCount");
61 static const string     kResolveRequestCount("ResolveRequestCount");
62 static const string     kGetBlobBySeqIdRequestCount("GetBlobBySeqIdRequestCount");
63 static const string     kGetBlobBySatSatKeyRequestCount("GetBlobBySatSatKeyRequestCount");
64 static const string     kGetNamedAnnotationsCount("GetNamedAnnotationsCount");
65 static const string     kTestIORequestCount("TestIORequestCount");
66 static const string     kGetTSEChunkCount("GetTSEChunkCount");
67 static const string     kTotalRequestCount("TotalRequestCount");
68 static const string     kSi2csiCacheHit("Si2csiCacheHit");
69 static const string     kSi2csiCacheMiss("Si2csiCacheMiss");
70 static const string     kBioseqInfoCacheHit("BioseqInfoCacheHit");
71 static const string     kBioseqInfoCacheMiss("BioseqInfoCacheMiss");
72 static const string     kBlobPropCacheHit("BlobPropCacheHit");
73 static const string     kBlobPropCacheMiss("BlobPropCacheMiss");
74 static const string     kSi2csiNotFound("Si2csiNotFound");
75 static const string     kSi2csiFoundOne("Si2csiFoundOne");
76 static const string     kSi2csiFoundMany("Si2csiFoundMany");
77 static const string     kBioseqInfoNotFound("BioseqInfoNotFound");
78 static const string     kBioseqInfoFoundOne("BioseqInfoFoundOne");
79 static const string     kBioseqInfoFoundMany("BioseqInfoFoundMany");
80 static const string     kSi2csiError("Si2csiError");
81 static const string     kBioseqInfoError("BioseqInfoError");
82 
83 #endif
84