Skip to content

Commit

Permalink
PMM-5260 Deprecate ExampleFormat. (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi authored Jan 21, 2020
1 parent a36bb71 commit 28dd2ef
Show file tree
Hide file tree
Showing 10 changed files with 525 additions and 510 deletions.
338 changes: 171 additions & 167 deletions api/agentpb/collector.pb.go

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions api/agentpb/collector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ option go_package = "agentpb";
import "inventorypb/agents.proto";

// ExampleFormat is format of query example: real or query without values.
//
// Deprecated: is not used, should not be used, should be removed.
enum ExampleFormat {
EXAMPLE_FORMAT_INVALID = 0;
EXAMPLE = 1;
FINGERPRINT = 2;
EXAMPLE_FORMAT_INVALID = 0 [deprecated = true];
EXAMPLE = 1 [deprecated = true];
FINGERPRINT = 2 [deprecated = true];
}

// ExampleType is a type of query example selected for this query class in given period of time.
Expand Down Expand Up @@ -60,7 +62,7 @@ message MetricsBucket {
uint32 period_length_secs = 11;
// One of query example from set found in bucket.
string example = 12;
ExampleFormat example_format = 13;
ExampleFormat example_format = 13 [deprecated = true];
ExampleType example_type = 14;
// Indicates if query examples is too long and was truncated.
bool is_truncated = 24;
Expand Down
362 changes: 182 additions & 180 deletions api/qanpb/collector.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/qanpb/collector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ message MetricsBucket {
uint32 period_length_secs = 11;
// One of query example from set found in bucket.
string example = 13;
ExampleFormat example_format = 14;
ExampleFormat example_format = 14 [deprecated = true];
// Indicates if query examples is too long and was truncated.
bool is_truncated = 15;
ExampleType example_type = 16;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/qanpb/json/qanpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@
"x-order": 0
},
"example_format": {
"description": "ExampleFormat is format of query example: real or query without values.",
"description": "ExampleFormat is format of query example: real or query without values.\n\nDeprecated: is not used, should not be used, should be removed.",
"type": "string",
"default": "EXAMPLE_FORMAT_INVALID",
"enum": [
Expand Down
139 changes: 70 additions & 69 deletions api/qanpb/object_details.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/qanpb/object_details.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ message QueryExampleReply {
// QueryExample shows query examples and their metrics.
message QueryExample {
string example = 1;
ExampleFormat example_format = 2;
ExampleFormat example_format = 2 [deprecated = true];
ExampleType example_type = 3;
uint32 is_truncated = 4;
string example_metrics = 5;
Expand Down
Loading

0 comments on commit 28dd2ef

Please sign in to comment.