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

Generic telemetry #1321

Merged
merged 20 commits into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make JobTelemetryType a string
  • Loading branch information
fhammerl committed Sep 13, 2021
commit 51a0fdf52b9f1385b57c767999f7887ffb75a3e9
2 changes: 1 addition & 1 deletion src/Sdk/DTWebApi/WebApi/JobTelemetry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public class JobTelemetry
public string Message { get; set; }

[DataMember(EmitDefaultValue = false)]
public string Type { get; set; }
public JobTelemetryType Type { get; set; }
}
}
13 changes: 13 additions & 0 deletions src/Sdk/DTWebApi/WebApi/JobTelemetryType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Runtime.Serialization;

namespace GitHub.DistributedTask.WebApi
{
public enum JobTelemetryType
{
[EnumMember]
General = 0,

[EnumMember]
ActionCommand = 1,
}
}