mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
64 lines
1.3 KiB
C#
64 lines
1.3 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using GitHub.Services.WebApi;
|
|
|
|
namespace GitHub.Build.WebApi
|
|
{
|
|
/// <summary>
|
|
/// Represents metadata about builds in the system.
|
|
/// </summary>
|
|
[DataContract]
|
|
public class BuildMetric : BaseSecuredObject
|
|
{
|
|
public BuildMetric()
|
|
{
|
|
}
|
|
|
|
internal BuildMetric(
|
|
ISecuredObject securedObject)
|
|
:base(securedObject)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// The name of the metric.
|
|
/// </summary>
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public String Name
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The scope.
|
|
/// </summary>
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public String Scope
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The value.
|
|
/// </summary>
|
|
[DataMember(EmitDefaultValue = true)]
|
|
public Int32 IntValue
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The date for the scope.
|
|
/// </summary>
|
|
[DataMember(EmitDefaultValue = false)]
|
|
public DateTime? Date
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|