Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(broker/bbdo):grpc_stream.proto is bad generated #1713

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions bbdo/bam.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ enum State {
UNKNOWN = 3;
}

/*io::bam, bam::de_pb_inherited_downtime*/
/* io::bam, bam::de_pb_inherited_downtime, 31 */
message InheritedDowntime {
BBDOHeader header = 1;
uint32 ba_id = 2;
bool in_downtime = 3;
}

/*io::bam, bam::de_pb_ba_status*/
/* io::bam, bam::de_pb_ba_status, 32 */
message BaStatus {
uint32 ba_id = 1;
bool in_downtime = 2;
Expand All @@ -49,7 +49,7 @@ message BaStatus {
string output = 9;
}

/*io::bam, bam::de_pb_ba_event*/
/* io::bam, bam::de_pb_ba_event, 33 */
message BaEvent {
uint32 ba_id = 1;
double first_level = 2;
Expand All @@ -59,7 +59,7 @@ message BaEvent {
State status = 6;
}

/*io::bam, bam::de_pb_kpi_event*/
/* io::bam, bam::de_pb_kpi_event, 34 */
message KpiEvent {
uint32 ba_id = 1;
uint64 start_time = 2;
Expand All @@ -72,20 +72,20 @@ message KpiEvent {
State status = 9;
}

/*io::bam, bam::de_pb_dimension_bv_event*/
/* io::bam, bam::de_pb_dimension_bv_event, 35 */
message DimensionBvEvent {
uint32 bv_id = 1;
string bv_name = 2;
string bv_description = 3;
}

/*io::bam, bam::de_pb_dimension_ba_bv_relation_event*/
/* io::bam, bam::de_pb_dimension_ba_bv_relation_event, 36 */
message DimensionBaBvRelationEvent {
uint32 ba_id = 1;
uint32 bv_id = 2;
}

/*io::bam, bam::de_pb_dimension_timeperiod*/
/* io::bam, bam::de_pb_dimension_timeperiod, 37 */
message DimensionTimeperiod {
uint32 id = 1;
string name = 2;
Expand All @@ -98,7 +98,7 @@ message DimensionTimeperiod {
string sunday = 9;
}

/*io::bam, bam::de_pb_dimension_ba_event*/
/* io::bam, bam::de_pb_dimension_ba_event, 38 */
message DimensionBaEvent {
uint32 ba_id = 1;
string ba_name = 2;
Expand All @@ -109,7 +109,7 @@ message DimensionBaEvent {
uint32 sla_duration_warn = 7;
}

/*io::bam, bam::de_pb_dimension_kpi_event*/
/* io::bam, bam::de_pb_dimension_kpi_event, 39 */
message DimensionKpiEvent {
uint32 kpi_id = 1;
uint32 ba_id = 2;
Expand All @@ -129,7 +129,7 @@ message DimensionKpiEvent {
double impact_unknown = 16;
}

/*io::bam, bam::de_pb_kpi_status*/
/* io::bam, bam::de_pb_kpi_status, 40 */
message KpiStatus {
uint32 kpi_id = 1;
bool in_downtime = 2;
Expand All @@ -146,7 +146,7 @@ message KpiStatus {
bool valid = 13;
}

/*io::bam, bam::de_pb_ba_duration_event*/
/* io::bam, bam::de_pb_ba_duration_event, 41 */
message BaDurationEvent {
uint32 ba_id = 1;
int64 real_start_time = 2;
Expand All @@ -158,14 +158,14 @@ message BaDurationEvent {
bool timeperiod_is_default = 8;
}

/*io::bam, bam::de_pb_dimension_ba_timeperiod_relation*/
/* io::bam, bam::de_pb_dimension_ba_timeperiod_relation, 42 */
message DimensionBaTimeperiodRelation {
uint32 ba_id = 1;
uint32 timeperiod_id = 2;
bool is_default = 3;
}

/*io::bam, bam::de_pb_dimension_truncate_table_signal*/
/* io::bam, bam::de_pb_dimension_truncate_table_signal, 43 */
message DimensionTruncateTableSignal {
bool update_started = 1;
}
3 changes: 2 additions & 1 deletion bbdo/bam_state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ package com.centreon.broker;
* @brief Stores needed information for bool_service or kpi_service. Very useful
* when broker is stopped to save the BA's states.
*/
/* Ignore */
message ServiceState {
uint64 host_id = 1;
uint64 service_id = 2;
Expand All @@ -40,7 +41,7 @@ message ServiceState {
* @brief This message contains the living informations of the current BA's.
* Thanks to them we can recompute their states when Broker is restarted.
*/
/*io::bam, bam::de_pb_services_book_state*/
/* io::bam, bam::de_pb_services_book_state, 48 */
message ServicesBookState {
repeated ServiceState service = 1;
}
8 changes: 4 additions & 4 deletions bbdo/bbdo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ syntax = "proto3";

package com.centreon.broker;


/* Ignore */
message Bbdo {
uint32 major = 1;
uint32 minor = 2;
uint32 patch = 3;
}

/*io::bbdo, bbdo::de_welcome*/
/* io::bbdo, bbdo::de_welcome, 49 */
message Welcome {
Bbdo version = 1;
string extensions = 2;
uint64 poller_id = 3;
string poller_name = 4;
}

/*io::bbdo, bbdo::de_pb_ack*/
/* io::bbdo, bbdo::de_pb_ack, 50 */
message Ack {
uint32 acknowledged_events = 1;
}

/*io::bbdo, bbdo::de_pb_stop*/
/* io::bbdo, bbdo::de_pb_stop, 51 */
message Stop {
uint64 poller_id = 1;
}
4 changes: 2 additions & 2 deletions bbdo/extcmd.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto";
package com.centreon.broker;



/* Ignore */
message TimePoint {
string name = 1;
string function = 2;
Expand All @@ -36,7 +36,7 @@ message TimePoint {
* from engine to dest with several timepoints (one per muxer)
*
*/
/*io::extcmd, extcmd::de_pb_bench*/
/* io::extcmd, extcmd::de_pb_bench, 3 */
message Bench {
uint32 id = 1;
repeated TimePoint points = 2;
Expand Down
Loading