-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(alert-sdk) : AlarmRuleService Add GetAsync (#509)
* feat : add alert sdk * style : global using * reactor : Process pr * feat(alert-sdk) : AlarmRuleService Add GetAsync
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Alert/Model/AlarmRuleModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Alert.Model; | ||
|
||
public class AlarmRuleModel | ||
{ | ||
public Guid Id { get; set; } | ||
|
||
public AlarmRuleType Type { get; set; } | ||
|
||
public string DisplayName { get; set; } = string.Empty; | ||
|
||
public string ProjectIdentity { get; set; } = string.Empty; | ||
|
||
public string AppIdentity { get; set; } = string.Empty; | ||
|
||
public string ChartYAxisUnit { get; set; } = string.Empty; | ||
|
||
public CheckFrequencyModel CheckFrequency { get; set; } = new(); | ||
|
||
public string WhereExpression { get; set; } = string.Empty; | ||
|
||
public string QueryStr { get; set; } = string.Empty; | ||
|
||
public int ContinuousTriggerThreshold { get; set; } | ||
|
||
public SilenceCycleModel SilenceCycle { get; set; } = new(); | ||
|
||
public bool IsEnabled { get; set; } | ||
|
||
public List<LogMonitorItemModel> LogMonitorItems { get; set; } = new(); | ||
|
||
public List<MetricMonitorItemModel> MetricMonitorItems { get; set; } = new(); | ||
|
||
public List<AlarmRuleItemModel> Items { get; set; } = new(); | ||
|
||
public string ModifierName { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters