option java_package = "ru.yandex.webmaster3.proto.hostdatastate";

import "wmconsole/backend/java/webmaster3-proto/internal/src/main/proto_internal/webmaster_common_proto.proto";

message IndicatorsState {
    required int32 tcy                  = 1; // TODO: по факту, теперь всегда 0, нужно выпилить
    required int64 indexed_pages        = 2;
    required int64 searchable_pages     = 3;
    required int64 excluded_pages       = 4;
    required int64 internal_link_urls   = 5;
    required int64 external_link_urls   = 6;
}

message SiteProblemState {
    required int32 problem_type     = 1;
    required int32 problem_state    = 2;
}

message HostDataState {
    optional string owner_host_id                   = 1;
    optional UUID tree_generation_id                = 2;
    optional UUID sitemap_generation_id             = 3;
    optional UUID links_generation_id               = 4;
    optional UUID threats_generation_id             = 5;
    required int64 close_timestamp                  = 6;
    optional string displayHostName                 = 7;
    optional UUID regions_generation_id             = 8;
    repeated SiteProblemState problems              = 9;
    optional IndicatorsState current_indicators     = 10;
    optional IndicatorsState prev_indicators        = 11;
    optional IndicatorsState next_base_indicators   = 12;
    optional int64 next_base_date                   = 13;
}
