crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
CrawlStatsTick.hpp
Go to the documentation of this file.
1 /*
2  *
3  * ---
4  *
5  * Copyright (C) 2023 Anselm Schmidt (ans[ät]ohai.su)
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version in addition to the terms of any
11  * licences already herein identified.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <https://www.gnu.org/licenses/>.
20  *
21  * ---
22  *
23  * CrawlStatsTick.hpp
24  *
25  * Created on: Oct 12, 2023
26  * Author: ans
27  */
28 
29 #ifndef STRUCT_CRAWLSTATSTICK_HPP_
30 #define STRUCT_CRAWLSTATSTICK_HPP_
31 
32 #include "../Timer/StartStop.hpp"
33 
35 namespace crawlservpp::Struct {
36 
38  struct CrawlStatsTick {
39 
42 
44  std::size_t checkedUrls{};
45 
47  std::size_t newUrls{};
48 
50  std::size_t checkedUrlsArchive{};
51 
53  std::size_t newUrlsArchive{};
54 
56  std::size_t urlLockTimeArchiveMs{};
58  };
59 
60 } /* namespace crawlservpp::Struct */
61 
62 #endif /* STRUCT_CRAWLSTATSTICK_HPP_ */
std::size_t urlLockTimeArchiveMs
The time since the current URL has been locked for crawling archived content (in ms).
Definition: CrawlStatsTick.hpp:56
std::size_t newUrls
Number of URLs added.
Definition: CrawlStatsTick.hpp:47
std::size_t checkedUrlsArchive
Number of URLs checked from archived content.
Definition: CrawlStatsTick.hpp:50
Statistics for crawling tick.
Definition: CrawlStatsTick.hpp:38
std::size_t newUrlsArchive
Number of URLs added from archived content.
Definition: CrawlStatsTick.hpp:53
Namespace for data structures.
Definition: AlgoThreadProperties.hpp:43
std::size_t checkedUrls
Number of URLs checked.
Definition: CrawlStatsTick.hpp:44