Skip to content

Commit faea187

Browse files
add WorkflowUserMetric (#319)
* add WorkflowUserMetric * fix metric suffix * bot: regenerate protobuf files * add USER_METRIC_TYPE_UNSPECIFIED * bot: regenerate protobuf files * update WorkflowUserMetric value to double * drop histogram support * bot: regenerate protobuf files --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
1 parent 314ec8d commit faea187

3 files changed

Lines changed: 280 additions & 0 deletions

File tree

workflows/go/generate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ package workflows
2929
//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/capability_execution_started.proto
3030
//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/capability_execution_finished.proto
3131
//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/workflow_user_log.proto
32+
//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/workflow_user_metric.proto
3233
//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/xxx_no_send.proto
3334

3435
// sources/v1 - workflow metadata source service

workflows/go/v2/workflow_user_metric.pb.go

Lines changed: 253 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
syntax = "proto3";
2+
3+
package workflows.v2;
4+
5+
import "workflows/v2/cre_info.proto";
6+
import "workflows/v2/workflow_key.proto";
7+
8+
option go_package = "github.com/smartcontractkit/chainlink-protos/workflows/go/v2";
9+
10+
enum UserMetricType {
11+
USER_METRIC_TYPE_UNSPECIFIED = 0;
12+
USER_METRIC_TYPE_COUNTER = 1;
13+
USER_METRIC_TYPE_GAUGE = 2;
14+
}
15+
16+
message WorkflowUserMetric {
17+
CreInfo creInfo = 1;
18+
WorkflowKey workflow = 2;
19+
string workflowExecutionID = 3;
20+
string timestamp = 4;
21+
22+
string name = 5;
23+
double value = 6;
24+
UserMetricType type = 7;
25+
map<string, string> labels = 8;
26+
}

0 commit comments

Comments
 (0)