-
Notifications
You must be signed in to change notification settings - Fork 278
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
RN 40420 - Web API changes - Swarming #4083
Open
spetebroodt
wants to merge
11
commits into
main
Choose a base branch
from
RN-40240---WebAPI-changes---Swarming
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+254
−1
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
36dd7d6
GetCurrentAlarmByRootIDV3
spetebroodt d177aa2
GetAlarmHistoryV2
spetebroodt 5c507eb
GetAlarmDetailsV2
spetebroodt 38badd6
MaskAlarmV2
spetebroodt c2385bd
UnmaskAlarmV2
spetebroodt 222ac59
TakeOwnershipAlarmV2
spetebroodt 70f8f81
ReleaseOwnershipAlarmV2
spetebroodt d080b84
AddCommentToAlarmV2
spetebroodt a28b7ed
Update of existing methods
spetebroodt 722ca31
Merge branch 'main' into RN-40240---WebAPI-changes---Swarming
spetebroodt 3632c85
RN 40240
spetebroodt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
develop/webservices/WS_v1/WS_Methods_v1/AddCommentToAlarmV2.md
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,23 @@ | ||
--- | ||
uid: AddCommentToAlarmV2 | ||
--- | ||
|
||
# AddCommentToAlarmV2 | ||
|
||
Use this method to add a comment to an alarm. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|-------------|---------|-------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
| comment | String | The comment to be added to the alarm. | | ||
|
||
## Output | ||
|
||
None. |
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 |
---|---|---|
|
@@ -7,7 +7,10 @@ uid: GetAlarmDetails | |
Use this method to retrieve the alarm details for a specified alarm. | ||
|
||
> [!NOTE] | ||
> Use the [GetAlarmHistory method](xref:GetAlarmHistory) to get the alarm details of a cleared non-root alarm. | ||
> From DataMiner 10.6.0/10.5.1 onwards, when Swarming is enabled, use the [GetAlarmDetailsV2](xref:GetAlarmDetailsV2) method instead. | ||
|
||
> [!NOTE] | ||
> Use the [GetAlarmHistory](xref:GetAlarmHistory) or [GetAlarmHistoryV2](xref:GetAlarmHistoryV2) method to get the alarm details of a cleared non-root alarm. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't recommend to use the old |
||
|
||
## Input | ||
|
||
|
27 changes: 27 additions & 0 deletions
27
develop/webservices/WS_v1/WS_Methods_v1/GetAlarmDetailsV2.md
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,27 @@ | ||
--- | ||
uid: GetAlarmDetailsV2 | ||
--- | ||
|
||
# GetAlarmDetailsV2 | ||
|
||
Use this method to retrieve the alarm details for a specified alarm. | ||
|
||
> [!NOTE] | ||
> Use the [GetAlarmHistory method](xref:GetAlarmHistory) to get the alarm details of a cleared non-root alarm. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. refer to V2 instead? |
||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|------------|---------|-------------------------------------------------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| alarmID | Integer | The alarm ID. | | ||
|
||
## Output | ||
|
||
| Item | Format | Description | | ||
|-------------------------|-----------|------------------------------------------------| | ||
| GetAlarmDetailsV2Result | [DMAAlarmDetails](xref:DMAAlarmDetails) | The alarm information for the specified alarm. | |
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
29 changes: 29 additions & 0 deletions
29
develop/webservices/WS_v1/WS_Methods_v1/GetAlarmHistoryV2.md
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,29 @@ | ||
--- | ||
uid: GetAlarmHistoryV2 | ||
--- | ||
|
||
# GetAlarmHistoryV2 | ||
|
||
Use this method to retrieve: | ||
|
||
- one specific alarm, | ||
- all alarms in the alarm tree of a specific alarm, or | ||
- alarm details of a cleared non-root alarm. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|--|--|--| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DMA ID. | | ||
| elementID | Integer | The element ID. | | ||
| alarmID | Integer | The ID of the specified alarm. This must be the ID of a root alarm of an alarm available in the cache. If you do not specify the root alarm ID and the alarm is not available in the cache, no results will be returned. | | ||
| requestFullTree | Boolean | Whether the method has to return only the specified alarm (FALSE) or all alarms in the alarm tree of the specified alarm (TRUE). | | ||
|
||
## Output | ||
|
||
| Item | Format | Description | | ||
|-------------------------|------------------------------------|--------------------------------------------| | ||
| GetAlarmHistoryV2Result | Array of [DMAAlarm](xref:DMAAlarm) | The alarm history for the specified alarm. | |
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
24 changes: 24 additions & 0 deletions
24
develop/webservices/WS_v1/WS_Methods_v1/GetCurrentAlarmByRootIDV3.md
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,24 @@ | ||
--- | ||
uid: GetCurrentAlarmByRootIDV3 | ||
--- | ||
|
||
# GetCurrentAlarmByRootIDV3 | ||
|
||
Use this method to retrieve the current alarm associated with a particular root alarm ID, as well as the alarm cache status. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|-------------|---------|-------------------------------------------------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
|
||
## Output | ||
|
||
| Item | Format | Description | | ||
|--|--|--| | ||
| GetCurrentAlarmByRootIDV3Result | [DMAAlarm](xref:DMAAlarm) | The current alarm associated with the specified root alarm ID, as well as the alarm cache status. | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
uid: MaskAlarmV2 | ||
--- | ||
|
||
# MaskAlarmV2 | ||
|
||
Use this method to mask an alarm for a certain period of time. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|--|--|--| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
| clearInterval | Integer | The period of time (in seconds) during which the alarm will be masked.<br>Set to -1 if the alarm has to be masked until clearance. | | ||
| comment | String | Extra information. | | ||
|
||
## Output | ||
|
||
None. |
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
23 changes: 23 additions & 0 deletions
23
develop/webservices/WS_v1/WS_Methods_v1/ReleaseOwnershipAlarmV2.md
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,23 @@ | ||
--- | ||
uid: ReleaseOwnershipAlarmV2 | ||
--- | ||
|
||
# ReleaseOwnershipAlarmV2 | ||
|
||
Use this method to release ownership of an alarm. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|-------------|---------|-------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
| comment | String | Extra information. | | ||
|
||
## Output | ||
|
||
None. |
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
23 changes: 23 additions & 0 deletions
23
develop/webservices/WS_v1/WS_Methods_v1/TakeOwnershipAlarmV2.md
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,23 @@ | ||
--- | ||
uid: TakeOwnershipAlarmV2 | ||
--- | ||
|
||
# TakeOwnershipAlarmV2 | ||
|
||
Use this method to take ownership of an alarm. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|-------------|---------|-------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
| comment | String | Extra information. | | ||
|
||
## Output | ||
|
||
None. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
uid: UnmaskAlarmV2 | ||
--- | ||
|
||
# UnmaskAlarmV2 | ||
|
||
Use this method to unmask an alarm. | ||
|
||
Available from DataMiner 10.4.11 onwards. | ||
|
||
## Input | ||
|
||
| Item | Format | Description | | ||
|-------------|---------|-------------| | ||
| connection | String | The connection ID. See [ConnectApp](xref:ConnectApp). | | ||
| dmaID | Integer | The DataMiner Agent ID. | | ||
| elementID | Integer | The element ID. | | ||
| rootAlarmID | Integer | The root alarm ID. | | ||
| comment | String | Extra information. | | ||
|
||
## Output | ||
|
||
None. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we clarify this is the dataminer agent id of the element and not the agent currently hosting the element?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same for the other below)