Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
b2263cb
Merged PR 52062: Generate swagger code and added classes to build ove…
vladbaja Nov 26, 2019
9426c74
Merged PR 52197: Add first bits of permission checks in Systems Manag…
Nov 27, 2019
9c3e992
Merged PR 52563: Replaced inline objects with models in repo.yml
rdragann Dec 6, 2019
d7c753e
Merged PR 50361: Incorporate feedback on Test Monitor swagger doc
alexweav Dec 8, 2019
7bbafbd
Merged PR 53533: Added error codes
rdragann Dec 10, 2019
cb82664
Merged PR 53638: Implemented routes for http handling repo web servic…
rdragann Dec 10, 2019
5af0853
Merged PR 53783: Implemented http request handlers for repo service p…
rdragann Dec 11, 2019
409045e
Merged PR 54242: Updated apm yml routes for availability history and …
ursutaclaudiu Dec 16, 2019
84c33b6
Merged PR 54239: Fix for bug 949745
romynior Dec 16, 2019
0c7135e
Merged PR 54251: Implement compare asset availability route
vladbaja Dec 16, 2019
3931987
Merged PR 54243: Solve returned values inconsistencies
rdragann Dec 17, 2019
9fc1e09
Merged PR 53907: Introduce org modeling/workspace in States HTTP API
chotea Dec 17, 2019
f3cdff0
Merged PR 54271: Implement delete assets route
vladbaja Dec 18, 2019
2da4432
Merged PR 54535: Implement RootEndpoint and RootEndpointWithVersion r…
vladbaja Dec 18, 2019
eaff481
Merged PR 50642: Add workspace field to nitag API
tschmittni Dec 19, 2019
35eb0b6
Merged PR 54544: Implement get asset calibration history route
vladbaja Dec 19, 2019
70487c2
Merged PR 54654: Implement GetAssetWithIdentifier route
vladbaja Dec 19, 2019
33a234d
Merged PR 53912: Introduce org modeling/workspace in Systems Manageme…
chotea Dec 20, 2019
40e2935
Merged PR 54665: Implemented the update policy route.
ursutaclaudiu Jan 6, 2020
bf5d4c0
Merged PR 54753: Implement query location history route
vladbaja Jan 6, 2020
a51c975
Merged PR 55495: Query Assets
vladbaja Jan 7, 2020
ebbd349
Merged PR 56230: Change return type of list packages route
rdragann Jan 13, 2020
3b6030c
Merged PR 56085: Added dependency to openAPIGenerator nuget
rdragann Jan 14, 2020
11bc0bb
Merged PR 56261: Replace HTTP controller with the Swagger generated i…
vladbaja Jan 14, 2020
6301c52
Merged PR 56783: query-data returns partial results if there is a mis…
jjetwash Jan 17, 2020
ca46ff4
Merged PR 57158: Enable security for fileingestion
Jan 20, 2020
5865d86
Merged PR 57169: [S] [HotFix] Removed 'required' attribute from some …
vdeac Jan 20, 2020
389a316
Merged PR 56954: Update yml and midl files to add workspace to feed m…
rdragann Jan 21, 2020
4093d65
Merged PR 56496: Asset Management OpenAPI updates to support Asset Ut…
vdeac Jan 21, 2020
2ef155d
Merged PR 57729: Fixed the Query Utilization Route names for the seve…
vdeac Jan 23, 2020
165fba2
Merged PR 56912: Modify OpenAPI deffinition to match the behavior of …
jjetwash Jan 24, 2020
8d7e414
Merged PR 57890: Update nbexec examples with proper notation of dict …
skizunov Jan 27, 2020
6201302
Merged PR 58209: Obtain user name and id differently until we impleme…
vladbaja Jan 28, 2020
c3cf9b2
Merged PR 58087: Update NotFound error example and code
vladbaja Jan 28, 2020
0d19932
Merged PR 58067: Updated delete-assets route implementation to return…
vdeac Jan 28, 2020
53ff6c9
Merged PR 58079: Change description of skip and take
vladbaja Jan 28, 2020
ee3c626
Merged PR 58339: update yml and helpers for http
jjetwash Jan 28, 2020
444b830
Merged PR 58373: Changed the swagger query-asset-availability example…
ursutaclaudiu Jan 29, 2020
facf54f
Merged PR 58069: Delete calibration returns deleted and not delete ca…
vladbaja Jan 29, 2020
340bebe
Merged PR 58392: Get asset by id never returns 400
vladbaja Jan 29, 2020
f7d0321
Merged PR 58119: Implemented the end multiple utilizations http route.
ursutaclaudiu Jan 29, 2020
86bd98a
Merged PR 58395: Update query assets example to work with no changes
vladbaja Jan 29, 2020
2c4e01f
Merged PR 58397: Update Destination description and example for query…
vladbaja Jan 29, 2020
1fc7dbd
Merged PR 58403: Updated the description for query assets.
ursutaclaudiu Jan 29, 2020
56be60a
Merged PR 58541: Add optional ID part to file upload request
alexweav Jan 29, 2020
2e476f5
Merged PR 58560: Update Test Mon swagger doc example id's
Jan 29, 2020
dfd8236
Merged PR 57346: Asset Management OpenAPI updates to support create a…
vladbaja Jan 30, 2020
5cd6f30
Merged PR 58425: Update metadata returns updated and not updated keyw…
vladbaja Jan 30, 2020
565c3ef
Merged PR 58658: Add checksum for the create/update asset models
vladbaja Feb 3, 2020
8ab7982
Merged PR 58819: Added utilization ids arrays for failed and succeede…
ursutaclaudiu Feb 3, 2020
cbbc39b
Merged PR 58790: Do not return 404 when the URL is found
vladbaja Feb 3, 2020
3f40e7c
Merged PR 59233: Update peristance model for Assets to contain AssetT…
tludusan Feb 5, 2020
8a63f17
Merged PR 59545: Groupname and channel name are not always required. …
jjetwash Feb 6, 2020
88869d7
Merged PR 59571: do grouping 1st class by adding stride, group, max, …
jjetwash Feb 6, 2020
dba0454
Merged PR 59722: calculate function prior to grouping - it won't work…
jjetwash Feb 7, 2020
15fd59f
Merged PR 59824: AM HTTP Route Update - Start Utilization should retu…
ursutaclaudiu Feb 10, 2020
6be3397
Merged PR 60019: NBExec OpenAPI doc changes for org modeling
skizunov Feb 11, 2020
f54d43d
Merged PR 59699: Implement update-assets route
vladbaja Feb 11, 2020
b0743ef
Merged PR 60214: Start Utilization Route only returns Partial Success…
vdeac Feb 11, 2020
62d9a3b
Merged PR 60222: Return PartialSuccess in case of full success for cr…
vladbaja Feb 12, 2020
f472924
Merged PR 60299: Removed the 204 No Content response from the end uti…
vdeac Feb 12, 2020
2b63291
Merged PR 60219: Remove legacy privileges from nbexec OpenAPI doc
skizunov Feb 12, 2020
1977038
Merged PR 60639: add groupItemIndexStart and maxCount so callers can …
jjetwash Feb 14, 2020
3d8c0f0
Merged PR 60729: Add numeric error codes to TDM Reader and increase r…
spanglerco Feb 14, 2020
c2aac5a
Merged PR 60666: Validate calibration entry before creating or updati…
vladbaja Feb 17, 2020
8f12d87
Merged PR 61157: add ignoreXForDecimation, which allows graphs to cha…
jjetwash Feb 19, 2020
f74aaba
Merged PR 61260: Updating one or more identification properties retur…
vladbaja Feb 19, 2020
9010d9f
Merged PR 61948: Added workspace to the asset model.
vdeac Feb 24, 2020
f8424f8
Merged PR 62190: Add x-ni-auth to enable ApiKey in generated open api…
vdeac Feb 28, 2020
e42e3e4
Merged PR 62574: Fix platform enum value braking change.
rdragann Mar 2, 2020
ffc136a
Merged PR 63799: Fixed example of Generate Systems Report route
chotea Mar 11, 2020
fc7c1da
Merged PR 54312: Test Monitor Service - Org Modeling Support
Mar 11, 2020
97fdf35
Merged PR 64337: Fix a couple broken/incorrect examples in Test Monit…
alexweav Mar 12, 2020
46ca5a7
Merged PR 61970: New route updating multiple system in Systems Manage…
elizaolariu Mar 18, 2020
4257b0c
Merged PR 63258: Design Document and Swagger documentation for the Se…
Mar 22, 2020
b0eb073
Merged PR 66825: Added x-ni-auth to APM RuleEgine routes
tludusan Apr 1, 2020
6bc5721
Merged PR 67144: Add workspace property to calibration rule models, e…
vladbaja Apr 1, 2020
a5d9949
Merged PR 67600: ORG Model: Preparations Step1 - TDM Reader - File Fe…
Apr 6, 2020
c268ab4
Merged PR 67997: Add Query Assets Availability Route in YAML
bmaris98 Apr 9, 2020
1320a62
Merged PR 68353: Add examples in query projection fields
chotea Apr 9, 2020
e788f9d
Merged PR 68458: Update test monitor v2 swagger doc to have a better …
Apr 13, 2020
7eeed4a
Merged PR 69714: In API workspace is referenced by "workspaceid" inst…
Apr 20, 2020
a21d9b7
Add workspaces query parameter to GetCalibrationRules route
vladbaja Apr 22, 2020
903997a
Merged PR 69983: Remove ni-auth atribute from ping and packages downl…
rdragann Apr 22, 2020
5d931e5
Merged PR 70266: Update alarm Swagger document with org modeling changes
spanglerco Apr 24, 2020
83668b8
Merged PR 70664: Add error object on Register Systems response model
chotea Apr 28, 2020
5f52513
OpcClient service policy-based auth
rajsite May 6, 2020
13f7f6a
Style and remove old privilege config
rajsite May 15, 2020
f8364b9
Merged PR 74288: Use a more realistic OpenAPI doc example for step data
alexweav May 18, 2020
164eeb5
Merged PR 74035: Add error model on CreateJob response
chotea May 19, 2020
8fd84f8
Merged PR 74215: Query System Utilization to http
May 21, 2020
8f22d4b
Merged PR 74744: Remove x-ni-privileges from yml file
May 22, 2020
af453bc
Merged PR 75761: Bug 1035085: Removed old privileges
May 28, 2020
390b293
Merged PR 77626: BUG 1047762: Added workspace to swagger doc
Jun 10, 2020
92e5a77
The query utilization history route failed to get utilization entries…
ursutaclaudiu Jun 10, 2020
0afba83
Merged PR 78305: Make operations routes public in Systems Management API
chotea Jun 15, 2020
88306e5
Merged PR 78830: Removed assetId from QuerySystemUtilization Response
Jun 15, 2020
d4e403e
Merged PR 78527: Remove Service Registry project from the Skyline Sol…
Jun 15, 2020
94aa4fb
Merged PR 79064: Bug 1059635: Preview button in File Viewer is disabl…
Jun 16, 2020
e8e34c2
Merged PR 78947: Fix user data 403
Jun 16, 2020
d2c4839
Merged PR 78953: Update TM OpenAPI example OneOrMoreErrorsOccurred er…
Jun 16, 2020
08f6df2
Merged PR 79285: Remove auth from root routes in niapm and niapmrule
vladbaja Jun 17, 2020
e5a3819
Merged PR 79075: Forward ApiKey from asset manager to file ingestion …
vladbaja Jun 18, 2020
a515783
Merged PR 78628: Updated tag rule swagger doc
Jun 18, 2020
b679865
Merged PR 79662: Pull in the latest changes from systemlink-openapi-d…
tschmittni Jun 19, 2020
763e166
Merged PR 80256: Update HTTP API to include system name and asset nam…
vladbaja Jun 24, 2020
dc0f7d6
Merged PR 80653: Pull in latest openapi changes
tschmittni Jun 26, 2020
366e6f3
Merge changes from subtree
spanglerco Aug 4, 2020
e70774a
Merge branch 'master' to resolve conflicts
spanglerco Aug 4, 2020
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
176 changes: 156 additions & 20 deletions alarm/nialarm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,33 @@ definitions:
type: array
items:
type: string
resourceType:
description: Type of resource associated with the error.
This field is only present for entries in *innerErrors*.
type: string
enum: [instanceId]
resourceId:
description: Identifier of the resource associated with the error.
This field is only present for entries in *innerErrors*.
type: string
innerErrors:
description: Array of individual errors when a request results in multiple errors.
This field is only present when *name* is 'Skyline.OneOrMoreErrorsOccurred'.
type: array
items:
$ref: '#/definitions/Error'
example:
name: AlarmInstance.InstanceNotFound
code: -253006
message: An instance with instanceId '5c2cf7e0e0d64403b486fcb4' was not found.
name: Skyline.OneOrMoreErrorsOccurred
code: -251041
message: One or more errors occurred. See the contained list for details of each error.
args: []
innerErrors:
- name: AlarmInstance.InstanceNotFound
code: -253006
message: An instance with instanceId '5c2cf7e0e0d64403b486fcb4' was not found.
resourceType: instanceId
resourceId: 5c2cf7e0e0d64403b486fcb4
args: [5c2cf7e0e0d64403b486fcb4]
Operation:
description: Operation provided by the API
type: object
Expand Down Expand Up @@ -104,6 +126,11 @@ definitions:
rule.
type: string
example: CRIO1.System.Health.DiskSpaceUsePercentage.Bdd9u!4aMd!$pYrf*CnaIZ2tbu$-Ct%?
workspace:
description: The ID of the workspace to which this alarm instance belongs. Added in version 3 of the
readAlarmInstances operation.
type: string
example: 3d411024-9db8-42d1-8ab8-6cee0e6cd841
active:
description: Whether or not the alarm instance is active. An active alarm deserves human or automated
attention. Alarm instances always begin life with *active*/true. This field will be automatically
Expand Down Expand Up @@ -410,6 +437,16 @@ definitions:
example:
- keyword1
- keyword2
workspaces:
type: array
description: Workspace query. The service will return instances whose *workspace* field is one of
the specified workspaces. By default, only instances in the default workspace are returned.
Specify an array containing a single value of *\** to query all workspaces. Added in version 3 of the
readAlarmInstances operation.
items:
type: string
example:
- '*'
QueryRequest:
title: Query Request
description: Object describing the request body for an alarm instance query request
Expand Down Expand Up @@ -487,7 +524,6 @@ paths:
summary: API information
description: Returns information about API versions and available operations.
operationId: RootEndpoint
x-ni-request-all-privileges: true
# Explicitly mark security as an empty array - this route does not require any privileges.
# Marking it this way prevents it from inheriting the top-level security settings.
security: []
Expand Down Expand Up @@ -516,7 +552,6 @@ paths:
summary: API version information
description: Returns available operations for a single version of the API.
operationId: RootEndpointWithVersion
x-ni-request-all-privileges: true
# Explicitly mark security as an empty array - this route does not require any privileges.
# Marking it this way prevents it from inheriting the top-level security settings.
security: []
Expand All @@ -529,12 +564,81 @@ paths:
description: Not Found
schema:
$ref: '#/definitions/Error'
/v1/acknowledge-instances:
/v1/acknowledge-instances-by-instance-id:
post:
tags: [alarm instances]
summary: Acknowledge alarm instances
description: Acknowledges one or more alarm instances, optionally forcing them clear and adding notes to
them.
them. Added in version 2 of the writeAlarmInstances operation.
operationId: AcknowledgeInstancesByInstanceId
x-ni-operation: writeAlarmInstances
parameters:
- in: body
name: Request body
required: true
schema:
type: object
title: AcknowledgeByInstanceIdRequestBody
required:
- instanceIds
properties:
instanceIds:
description: The *instanceId*s of the alarm instances which should be acknowledged.
type: array
items:
type: string
example: [5c33c212e0d6444320d9a9f4, 5c2cf7e0e0d64403b486fcb4]
forceClear:
description: Whether or not the affected alarm instances should have their *clear* field set
to true.
type: boolean
default: false
notes:
description: Notes which should be added to the alarm instances.
type: array
items:
$ref: '#/definitions/AlarmNote'
responses:
200:
description: Success - Indicates the request to acknowledge was processed successfully.
If any instances failed to be acknowledged, the included *error* object will contain
an entry in the *innerErrors* array for each failed instance.
schema:
type: object
title: AcknowledgeByInstanceIdResponse
properties:
acknowledged:
description: The *instanceId*s of the alarm instances which were successfully acknowledged.
type: array
items:
type: string
example: [5c33c212e0d6444320d9a9f4]
failed:
description: The *instanceId*s of the alarm instances which were not acknowledged.
See *error* for why each instance failed to be acknowledged. Reasons include the instance
could not be found, the instance was already acknowledged, or the caller is not authorized
to acknowledge the instance.
type: array
items:
type: string
example: [5c2cf7e0e0d64403b486fcb4]
error:
$ref: '#/definitions/Error'
401:
$ref: '#/responses/Unauthorized'
default:
$ref: '#/responses/Error'
/v1/acknowledge-instances:
post:
tags: [deprecated]
deprecated: true
summary: Acknowledge alarm instances
description: As of version 2 of the writeAlarmInstances operation, this route is deprecated.
Instead, use the POST /v1/acknowledge-instances-by-instance-id route.


Acknowledges one or more alarm instances in the default workspace by alarm id,
optionally forcing them clear and adding notes to them.
operationId: AcknowledgeInstances
x-ni-operation: writeAlarmInstances
parameters:
Expand Down Expand Up @@ -571,23 +675,23 @@ paths:
title: AcknowledgeResponse
properties:
acknowledged:
description: The *alarmIds* which were successfully acknowledged.
description: The *alarmId*s which were successfully acknowledged.
type: array
items:
type: string
example: [5c40ec55e0d6441168b4c543, 5c40ec55e0d6441168b4c543]
example: [System1.Health.DiskSpaceAlarm, System2.Health.DiskSpaceAlarm]
alreadyAcknowledged:
description: The *alarmIds* which had already been previously acknowledged.
description: The *alarmId*s which had already been previously acknowledged.
type: array
items:
type: string
example: [5c40ec55e0d6441168b4c541]
example: [System1.Health.DiskSpaceAlarm]
notFound:
description: A collection of *alarmIds* for which no active alarm instances were found.
description: A collection of *alarmId*s for which no active alarm instances were found.
type: array
items:
type: string
example: [5c40ec55e0d6441168b4c549]
example: [System2.Health.DiskSpaceAlarm]
401:
$ref: '#/responses/Unauthorized'
default:
Expand All @@ -604,7 +708,7 @@ paths:
- in: body
name: Request body
description: Container which holds data for the request. If an alarm instance is being updated, only
alarmId and transition are applied.
alarmId, workspace, and transition are applied.
schema:
type: object
title: CreateOrUpdateInstanceRequest
Expand All @@ -614,11 +718,17 @@ paths:
properties:
alarmId:
description: A value meant to uniquely identify the particular process or condition tracked
by a given alarm. For example, alarms created by the Tag Rule Engine Service have their
alarmIds set to the concatenation of the path of the tag which caused the rule to be
triggered and the ID of the rule.
by a given alarm within a workspace. For example, alarms created by the Tag Rule Engine
Service have their alarmIds set to the concatenation of the path of the tag which caused
the rule to be triggered and the ID of the rule.
type: string
example: CRIO1.System.Health.DiskSpaceMeanUsePercentage.Bdd9u!4aMd!$pYrf*CnaIZ2tbu$-Ct%?
workspace:
description: The ID of the workspace in which to create or update the alarm. When not specified,
the default workspace is used based on the requesting user. Added in version 2 of the
writeAlarmInstances operation.
type: string
example: 3d411024-9db8-42d1-8ab8-6cee0e6cd841
transition:
$ref: '#/definitions/AlarmTransition'
createdBy:
Expand Down Expand Up @@ -760,7 +870,7 @@ paths:
tags: [alarm instances]
summary: Query alarm instances
description: Queries for alarm instances. Specifying an empty JSON object in the request body will
result in all alarm instances being returned.
result in all alarm instances in the default workspace being returned.
operationId: QueryInstances
x-ni-operation: readAlarmInstances
parameters:
Expand Down Expand Up @@ -798,10 +908,36 @@ paths:
type: string
example:
- 5c33c212e0d6444320d9a9f4
- 5c33c212e0d6444320d9a9f5
- 5c2cf7e0e0d64403b486fcb4
responses:
200:
description: Partial Success - Indicates the request to delete was processed successfully,
but one or more instances failed to delete. The included *error* object will contain
an entry in the *innerErrors* array for each failed instance.
schema:
type: object
title: DeleteInstancesByInstanceIdPartialSuccess
properties:
deleted:
description: The *instanceId*s of the alarm instances that were successfully deleted.
type: array
items:
type: string
example:
- 5c33c212e0d6444320d9a9f4
failed:
description: The *instanceId*s of the alarm instances that were not deleted.
See *error* for why each instance failed to delete. Reasons include the
instance could not be found or the caller is not authorized to delete the instance.
type: array
items:
type: string
example:
- 5c2cf7e0e0d64403b486fcb4
error:
$ref: '#/definitions/Error'
204:
description: No Content
description: Success - Indicates all requested instances were deleted successfully.
401:
$ref: '#/responses/Unauthorized'
default:
Expand Down
23 changes: 17 additions & 6 deletions asset-management-rule/niapmrule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ definitions:
type: string
format: date-time
example: '2018-05-07T18:58:05.219692Z'
workspace:
type: string
description: The ID of the workspace.
example: '5bc5e9092a4fa4c71cfa7197'
RuleStateUpdateModel:
title: Rule State Update Model
description: The collection of rule identifiers and the enable/disable state to apply on them.
Expand Down Expand Up @@ -223,6 +227,13 @@ parameters:
required: true
schema:
$ref: '#/definitions/RuleStateUpdateModel'
Workspaces:
in: query
name: workspaces
description: A string representing the collection of workspace IDs separated by comma used to filter the rules.
required: false
type: string
x-example: '5bc5e9092a4fa4c71cfa7197,3a83d3fc174ae3491890f7ae'
responses:
BadRequest:
description: The server was unable to process the request because of invalid syntax.
Expand Down Expand Up @@ -296,7 +307,6 @@ paths:
summary: API information
description: Returns information about API versions and available operations.
operationId: RootEndpoint
x-ni-request-all-privileges: true
# Explicitly mark security as an empty array - this route does not require any privileges.
# Marking it this way prevents it from inheriting the top-level security settings.
security: []
Expand Down Expand Up @@ -326,7 +336,6 @@ paths:
summary: API version information
description: Returns available operations for a single version of the API.
operationId: RootEndpointWithVersion
x-ni-request-all-privileges: true
security: []
responses:
200:
Expand All @@ -344,7 +353,9 @@ paths:
description: Gets a list containing all rules specific to calibration.
operationId: get-calibration-rules
x-ni-operation: getCalibrationRule
x-ni-privilege: assetrule.Read
x-ni-auth: true
parameters:
- $ref: '#/parameters/Workspaces'
responses:
200:
$ref: '#/responses/CalibrationRulesResponse'
Expand All @@ -361,7 +372,7 @@ paths:
description: Gets the calibration rule with the specified identifier.
operationId: get-calibration-rule-by-id
x-ni-operation: getCalibrationRule
x-ni-privilege: assetrule.Read
x-ni-auth: true
responses:
200:
$ref: '#/responses/CalibrationRuleResponse'
Expand All @@ -379,7 +390,7 @@ paths:
description: Replaces a specific calibration rule with the given one.
operationId: put-calibration-rule
x-ni-operation: updateCalibrationRule
x-ni-privilege: assetrule.Write
x-ni-auth: true
parameters:
- in: body
name: CalibrationRulePutRequestModel
Expand All @@ -405,7 +416,7 @@ paths:
description: Sets specific calibration rules state by enabling or disabling them.
operationId: set-calibration-rules-state
x-ni-operation: updateCalibrationRule
x-ni-privilege: assetrule.Write
x-ni-auth: true
parameters:
- $ref: '#/parameters/SetRulesState'
responses:
Expand Down
Loading