初始化
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// ApplyConfigToMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class ApplyConfigToMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志配置名称。
|
||||
/// </summary>
|
||||
public String ConfigName { get; }
|
||||
|
||||
public ApplyConfigToMachineGroupRequest(String groupName, String configName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
this.ConfigName = configName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// CreateMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class CreateMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组类型,默认为空。
|
||||
/// </summary>
|
||||
public String GroupType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器标识类型,分为 IP 和 userdefined 两种。
|
||||
/// </summary>
|
||||
public String MachineIdentifyType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组的属性,默认为空。
|
||||
/// </summary>
|
||||
public MachineGroupAttributeInfo GroupAttribute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 具体的机器标识,可以是 IP 或 userdefined-id。
|
||||
/// </summary>
|
||||
public IEnumerable<String> MachineList { get; }
|
||||
|
||||
public CreateMachineGroupRequest(String groupName, String machineIdentifyType, IEnumerable<String> machineList)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
this.MachineIdentifyType = machineIdentifyType;
|
||||
this.MachineList = machineList;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// DeleteMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class DeleteMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
public DeleteMachineGroupRequest(String groupName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// GetAppliedConfigsRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class GetAppliedConfigsRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
public GetAppliedConfigsRequest(String groupName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// GetAppliedConfigsResult.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class GetAppliedConfigsResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回的 config 数目。
|
||||
/// </summary>
|
||||
public Int32 Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的 config 名称列表。
|
||||
/// </summary>
|
||||
public IList<String> Configs { get; }
|
||||
|
||||
public GetAppliedConfigsResult(Int32 count, IList<String> configs)
|
||||
{
|
||||
this.Count = count;
|
||||
this.Configs = configs;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// GetMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class GetMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
public GetMachineGroupRequest(String groupName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// GetMachineGroupResult.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class GetMachineGroupResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组类型,默认为空。
|
||||
/// </summary>
|
||||
public String GroupType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组的属性,默认为空。
|
||||
/// </summary>
|
||||
public MachineGroupAttributeInfo GroupAttribute { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器标识类型,分为 IP 和 userdefined 两种。
|
||||
/// </summary>
|
||||
public String MachineIdentifyType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 具体的机器标识,可以是 IP 或 userdefined-id。
|
||||
/// </summary>
|
||||
public IEnumerable<String> MachineList { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组创建时间。
|
||||
/// </summary>
|
||||
public Int32 CreateTime { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组最近更新时间。
|
||||
/// </summary>
|
||||
public Int32 LastModifyTime { get; }
|
||||
|
||||
public GetMachineGroupResult(String groupName, String groupType, MachineGroupAttributeInfo groupAttribute, String machineIdentifyType,
|
||||
IEnumerable<String> machineList, Int32 createTime, Int32 lastModifyTime)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
this.GroupType = groupType;
|
||||
this.GroupAttribute = groupAttribute;
|
||||
this.MachineIdentifyType = machineIdentifyType;
|
||||
this.MachineList = machineList;
|
||||
this.CreateTime = createTime;
|
||||
this.LastModifyTime = lastModifyTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
//
|
||||
// ListMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class ListMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
public const Int32 DefaultOffset = 0;
|
||||
public const Int32 DefaultSize = 500;
|
||||
|
||||
/// <summary>
|
||||
/// 用于过滤的机器组名称(支持部分匹配)。
|
||||
/// </summary>
|
||||
public String GroupName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回记录的起始位置,默认为 0。
|
||||
/// </summary>
|
||||
public Int32 Offset { get; set; } = DefaultOffset;
|
||||
|
||||
/// <summary>
|
||||
/// 每页返回最大条目,默认 500(最大值)。
|
||||
/// </summary>
|
||||
public Int32 Size { get; set; } = DefaultSize;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// ListMachineGroupResult.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class ListMachineGroupResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回的 machinegroup 数目。
|
||||
/// </summary>
|
||||
public Int32 Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回 machinegroup 总数。
|
||||
/// </summary>
|
||||
public Int32 Total { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的 machinegroup 名称列表。
|
||||
/// </summary>
|
||||
public IList<String> MachineGroups { get; }
|
||||
|
||||
public ListMachineGroupResult(Int32 count, Int32 total, IList<String> machineGroups)
|
||||
{
|
||||
this.Count = count;
|
||||
this.Total = total;
|
||||
this.MachineGroups = machineGroups;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
//
|
||||
// ListMachinesRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class ListMachinesRequest : ProjectScopedRequest
|
||||
{
|
||||
public const Int32 DefaultOffset = 0;
|
||||
public const Int32 DefaultSize = 500;
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回记录的起始位置,默认为 0。
|
||||
/// </summary>
|
||||
public Int32 Offset { get; set; } = DefaultOffset;
|
||||
|
||||
/// <summary>
|
||||
/// 每页返回最大条目,默认 500(最大值)。
|
||||
/// </summary>
|
||||
public Int32 Size { get; set; } = DefaultSize;
|
||||
|
||||
public ListMachinesRequest(String groupName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
//
|
||||
// ListMachinesResult.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class ListMachinesResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回的 machinegroup 数目。
|
||||
/// </summary>
|
||||
public Int32 Count { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回 machinegroup 总数。
|
||||
/// </summary>
|
||||
public Int32 Total { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回的 machinegroup 名称列表。
|
||||
/// </summary>
|
||||
public IList<MachineInfo> Machines { get; }
|
||||
|
||||
public ListMachinesResult(Int32 count, Int32 total, IList<MachineInfo> machines)
|
||||
{
|
||||
this.Count = count;
|
||||
this.Total = total;
|
||||
this.Machines = machines;
|
||||
}
|
||||
|
||||
public class MachineInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器的 IP。
|
||||
/// </summary>
|
||||
public String Ip { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器 DMI UUID。
|
||||
/// </summary>
|
||||
public String MachineUniqueId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器的用户自定义标识。
|
||||
/// </summary>
|
||||
public String UserDefinedId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器最后的心跳时间。
|
||||
/// </summary>
|
||||
public String LastHeartbeatTime { get; }
|
||||
|
||||
public MachineInfo(String ip, String machineUniqueId, String userDefinedId, String lastHeartbeatTime)
|
||||
{
|
||||
this.Ip = ip;
|
||||
this.MachineUniqueId = machineUniqueId;
|
||||
this.UserDefinedId = userDefinedId;
|
||||
this.LastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// MachineGroupAttributeInfo.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class MachineGroupAttributeInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组的 topic,默认为空。
|
||||
/// </summary>
|
||||
public String GroupTopic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组所依赖的外部管理标识,默认为空。
|
||||
/// </summary>
|
||||
public String ExternalName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
//
|
||||
// RemoveConfigFromMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class RemoveConfigFromMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 日志配置名称。
|
||||
/// </summary>
|
||||
public String ConfigName { get; }
|
||||
|
||||
public RemoveConfigFromMachineGroupRequest(String groupName, String configName)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
this.ConfigName = configName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// UpdateMachineGroupRequest.cs
|
||||
//
|
||||
// Author:
|
||||
// MiNG <developer@ming.gz.cn>
|
||||
//
|
||||
// Copyright (c) 2018 Alibaba Cloud
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
// in the Software without restriction, including without limitation the rights
|
||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
// copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Aliyun.Api.LogService.Domain.Project;
|
||||
|
||||
namespace Aliyun.Api.LogService.Domain.MachineGroup
|
||||
{
|
||||
public class UpdateMachineGroupRequest : ProjectScopedRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器分组名称。
|
||||
/// </summary>
|
||||
public String GroupName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组类型,默认为空。
|
||||
/// </summary>
|
||||
public String GroupType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器标识类型,分为 IP 和 userdefined 两种。
|
||||
/// </summary>
|
||||
public String MachineIdentifyType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 机器分组的属性,默认为空。
|
||||
/// </summary>
|
||||
public MachineGroupAttributeInfo GroupAttribute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 具体的机器标识,可以是 IP 或 userdefined-id。
|
||||
/// </summary>
|
||||
public IEnumerable<String> MachineList { get; }
|
||||
|
||||
public UpdateMachineGroupRequest(String groupName, String machineIdentifyType, IEnumerable<String> machineList)
|
||||
{
|
||||
this.GroupName = groupName;
|
||||
this.MachineIdentifyType = machineIdentifyType;
|
||||
this.MachineList = machineList;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user