Skip to content

Commit f3c8ef1

Browse files
author
Dominik Ogrodnik
committed
MEF W143 version 3
1 parent 1a571e0 commit f3c8ef1

File tree

123 files changed

+3643
-5753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searcx below for content that may be hidden.

123 files changed

+3643
-5753
lines changed

‎documentation/serviceApi/pm/MEF W143 - LSO Allegro, LSO Interlude and LSO Legato Performance Monitoring API - Developer Guide.md

+1,715-2,640
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎documentation/serviceApi/pm/performance/media/src/cancelPerformanceJobModel.puml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class CancelPerformanceJob {
44

55
cancellationDeniedReason: string
6-
creationDate: date-time
6+
creationDate*: date-time
77
href: string
88
id*: string
99
state*: PerformanceJobProcessStateType
@@ -17,20 +17,20 @@ class CancelPerformanceJob_Common {
1717
cancellationReason: string
1818
}
1919

20-
CancelPerformanceJob_Common *-->"1" PerformanceJobRef : performanceJob
20+
CancelPerformanceJob *-->"1" PerformanceJobRef : performanceJob
2121

2222

2323
class CancelPerformanceJob_Create {
24-
24+
performanceJobId*: string
2525
}
2626
CancelPerformanceJob_Common <|-- CancelPerformanceJob_Create
2727

2828
enum PerformanceJobProcessStateType {
2929

30-
accepted
3130
acknowledged
3231
completed
33-
declined
32+
inProgress
33+
rejected
3434
}
3535

3636
@enduml

‎documentation/serviceApi/pm/performance/media/src/cancelPerformanceJobStates.puml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ state request_accepted <<choice>>
1717

1818
acknowledged -d-> request_accepted
1919

20-
request_accepted -l-> declined: No
20+
request_accepted -l-> rejected: No
2121

22-
request_accepted -r-> accepted: Yes
22+
request_accepted -r-> inProgress: Yes
2323

24-
accepted -d-> completed
24+
inProgress -d-> completed
2525

26-
declined -d-> [*]
26+
rejected -d-> [*]
2727
completed -d-> [*]
2828

2929
@enduml

‎documentation/serviceApi/pm/performance/media/src/extensionPattern.puml

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@ class PerformanceReport {
4040
<<... attributes are skipped ...>>
4141
}
4242

43-
class ReportContent {
43+
class ReportContentItem {
4444

4545
}
46-
4746
class ResultPayload {
4847
@type*: string <<discriminator>>
4948
}
5049

51-
PerformanceReport *-->"0..1" ReportContent : reportContent
52-
ReportContent *-->"*" ResultPayload : measurementDataPoints
50+
PerformanceReport *-->"0..*" ReportContentItem : reportContent
51+
ReportContentItem -->"*" ResultPayload : measurementDataPoints
5352

5453
class urn:mef:lso:spec:legato:ip-performance-monitoring-results:v0.0.1:all <<ResultPayload>> {
5554

‎documentation/serviceApi/pm/performance/media/src/modifyPerformanceJobModel.puml

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class ModifyPerformanceJob {
44

5-
creationDate: date-time
5+
creationDate*: date-time
66
href: string
77
id*: string
88
modificationDeniedReason: string
@@ -19,18 +19,19 @@ class ModifyPerformanceJob_Common {
1919
producingApplicationId: string
2020
}
2121

22-
ModifyPerformanceJob_Common *--> FileTransferData : fileTransferData
23-
ModifyPerformanceJob_Common *-->"1" PerformanceJobRef : performanceJob
24-
ModifyPerformanceJob_Common *--> ModifyPerformanceJob_ProfileValue : performanceProfile
25-
ModifyPerformanceJob_Common *--> ScheduleDefinition : scheduleDefinition
26-
ModifyPerformanceJob_Common *-r-> ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
22+
ModifyPerformanceJob_Common *-->"0..1" ModifyPerformanceJob_PerformanceProfileValue : performanceProfile
23+
ModifyPerformanceJob_Common *-u->"0..1" ScheduleDefinition : scheduleDefinition
24+
ModifyPerformanceJob_Common *-u->"0..1" ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
25+
26+
ModifyPerformanceJob *-d->"1" PerformanceJobRef : performanceJob
2727

2828
class ModifyPerformanceJob_Create {
29+
performanceJobId*: string
2930

3031
}
3132
ModifyPerformanceJob_Common <|-l- ModifyPerformanceJob_Create
3233

33-
class ModifyPerformanceJob_ProfileValue {
34+
class ModifyPerformanceJob_PerformanceProfileValue {
3435

3536
granularity: Interval
3637
jobPriority: integer

‎documentation/serviceApi/pm/performance/media/src/modifyPerformanceJobStates.puml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ state request_accepted <<choice>>
1717

1818
acknowledged -d-> request_accepted
1919

20-
request_accepted -l-> declined: No
20+
request_accepted -l-> rejected: No
2121

22-
request_accepted -r-> accepted: Yes
22+
request_accepted -r-> inProgress: Yes
2323

24-
accepted -d-> completed
24+
inProgress -d-> completed
2525

26-
declined -d-> [*]
26+
rejected -d-> [*]
2727
completed -d-> [*]
2828

2929
@enduml

‎documentation/serviceApi/pm/performance/media/src/notificationsForPerformanceJob.puml

+13-13
Original file line numberDiff line numberDiff line change
@@ -19,48 +19,48 @@ alt succesful inquiry
1919
...
2020

2121
note over B, SOF : PerformanceJob moves to `scheduled`
22-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
23-
B --> SOF : 204 confirmation
22+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`scheduled`
23+
B --> SOF : 204 confirmation
2424
...
2525

26-
note over B, SOF : Schedule start time is reached\n PerformanceJob moves to `in-progress`
27-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
26+
note over B, SOF : Schedule start time is reached\nPerformanceJob moves to `inProgress`
27+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`inProgress`
2828
B --> SOF : 204 confirmation
2929
...
3030

3131
note over B, SOF : PerformanceReport is generated
32-
SOF -> B: {{callbackUrl}}/listener/performanceJobReportReadyEvent {{id}}
32+
SOF -> B: {{callbackUrl}}/listener/performanceJobReportReadyEvent {{id}}, {{reportId}}
3333
B --> SOF : 204 confirmation
3434
...
3535

36-
note over B, SOF : SuspendPerformanceJob request is completed
37-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
36+
note over B, SOF : PerformanceJob is suspended
37+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`suspended`
3838
B --> SOF : 204 confirmation
3939
...
4040

4141
note over B, SOF : ModifyPerformanceJob request is accepted
42-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
42+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`pending`
4343
B --> SOF : 204 confirmation
4444
...
4545

4646
note over B, SOF : ModifyPerformanceJob request is completed
4747
SOF -> B: {{callbackUrl}}/listener/performanceJobAttributeValueChangeEvent {{id}}
4848
B --> SOF : 204 confirmation
4949

50-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
50+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`inProgress`
5151
B --> SOF : 204 confirmation
5252

53-
note over B, SOF : PerformanceReport generation failed\n
54-
SOF -> B: {{callbackUrl}}/listener/performanceJobReportPreparationErrorEvent {{id}}
53+
note over B, SOF : PerformanceReport generation failed
54+
SOF -> B: {{callbackUrl}}/listener/performanceJobReportPreparationErrorEvent {{id}}, failureReason
5555
B --> SOF : 204 confirmation
5656

5757
note over B, SOF : PerformanceJob is not recurring
58-
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}
58+
SOF -> B: {{callbackUrl}}/listener/performanceJobStateChangeEvent {{id}}, state=`completed`
5959
B --> SOF : 204 confirmation
6060

6161

6262
else validation or internal problem
63-
SOF --> B : 4xx or 5xx errorresponse
63+
SOF --> B : 4xx or 5xx error response
6464
end
6565

6666
...

‎documentation/serviceApi/pm/performance/media/src/performanceJobComplexQueryModel.puml

+33-16
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@ class PerformanceJobComplexQuery {
44

55
buyerJobId: string
66
consumingApplicationId: string
7-
creationDate: date-time
7+
creationDate*: date-time
88
description: string
9-
granularity: Interval
10-
jobPriority: integer
11-
jobType: JobType
9+
lastModifiedDate: date-time
1210
producingApplicationId: string
13-
reportingPeriod: Interval
14-
state: PerformanceJobStateType
11+
state*: PerformanceJobStateType
1512
}
1613

17-
PerformanceJobComplexQuery *--> PerformanceJobRef : performanceJob
18-
PerformanceJobComplexQuery *--> PerformanceProfileRef : performanceProfile
19-
PerformanceJobComplexQuery *--> ScheduleDefinition : scheduleDefinition
20-
PerformanceJobComplexQuery *--> ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
14+
PerformanceJobComplexQuery *-->"1" MonitoredObjectId : monitoredObjectId
15+
PerformanceJobComplexQuery *-->"1" PerformanceJobRef : performanceJob
16+
PerformanceJobComplexQuery *-->"1" PerformanceProfileRefOrValue : performanceProfile
17+
PerformanceJobComplexQuery *-u->"1" ScheduleDefinition : scheduleDefinition
18+
PerformanceJobComplexQuery *-u->"1" ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
2119

2220

2321
class PerformanceJobComplexQuery_Create {
@@ -26,27 +24,34 @@ class PerformanceJobComplexQuery_Create {
2624
consumingApplicationId: string
2725
creationDate.gt: date-time
2826
creationDate.lt: date-time
27+
description: string
2928
granularity: Interval
3029
jobPriority: integer
3130
jobType: JobType
31+
lastModifiedDate.gt: date-time
32+
lastModifiedDate.lt: date-time
33+
outputFormat: OutputFormat
34+
performanceProfileId: string
3235
producingApplicationId: string
3336
reportingPeriod: Interval
37+
resultFormat: ResultFormat
3438
state: PerformanceJobStateType
3539
}
3640

37-
PerformanceJobComplexQuery_Create *--> PerformanceProfileRef : performanceProfile
38-
PerformanceJobComplexQuery_Create *--> ScheduleDefinition : scheduleDefinition
39-
PerformanceJobComplexQuery_Create *--> ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
41+
PerformanceJobComplexQuery_Create *-->"0..1" MonitoredObjectId : monitoredObjectId
42+
PerformanceJobComplexQuery_Create *-->"0..1" ScheduleDefinition : scheduleDefinition
43+
PerformanceJobComplexQuery_Create *-->"0..1" ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
4044

4145
enum PerformanceJobStateType {
4246

4347
acknowledged
4448
cancelled
4549
completed
46-
in-progress
50+
inProgress
4751
pending
52+
pendingCancel
4853
rejected
49-
resource-unavailable
54+
resourcesUnavailable
5055
scheduled
5156
suspended
5257
}
@@ -56,7 +61,7 @@ enum Interval {
5661
10 milliseconds
5762
100 milliseconds
5863
1 second
59-
10 second
64+
10 seconds
6065
1 minute
6166
5 minutes
6267
15 minutes
@@ -74,4 +79,16 @@ enum JobType {
7479
passive
7580
}
7681

82+
enum OutputFormat {
83+
json
84+
xml
85+
avro
86+
csv
87+
}
88+
89+
enum ResultFormat {
90+
attachment
91+
payload
92+
}
93+
7794
@enduml

‎documentation/serviceApi/pm/performance/media/src/performanceJobModel.puml

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ enum PerformanceJobStateType {
1818
acknowledged
1919
cancelled
2020
completed
21-
in-progress
21+
inProgress
2222
pending
23+
pendingCancel
2324
rejected
24-
resource-unavailable
25+
resourcesUnavailable
2526
scheduled
26-
suspended
27+
suspended
2728
}
2829
class PerformanceJob_Common {
2930

@@ -39,9 +40,9 @@ class PerformanceJob_Create {
3940
PerformanceJob_Common <|-- PerformanceJob_Create
4041

4142

42-
PerformanceJob_Common *-l-> FileTransferData : fileTransferData
43+
PerformanceJob_Common *-u->"1" MonitoredObjectId : monitoredObjectId
4344
PerformanceJob_Common *-->"1" PerformanceProfileRefOrValue : performanceProfile
44-
PerformanceJob_Common *-l-> ScheduleDefinition : scheduleDefinition
45+
PerformanceJob_Common *-u->"1" ScheduleDefinition : scheduleDefinition
4546
PerformanceJob_Common *-->"1" ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
4647

4748
class ServicePayloadSpecificAttributes {

‎documentation/serviceApi/pm/performance/media/src/performanceJobRefOrValue.puml

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@ class PerformanceJobRefOrValue {
66

77
class PerformanceJobRef {
88

9-
href: string
10-
id*: string
9+
performanceJobHref: string
10+
performanceJobId*: string
1111
}
1212
PerformanceJobRefOrValue <|-- PerformanceJobRef
1313

1414
class PerformanceJobValue {
1515

1616
consumingApplicationId: string
17-
granularity: Interval
17+
granularity*: Interval
1818
outputFormat*: OutputFormat
1919
producingApplicationId: string
2020
resultFormat*: ResultFormat
2121
}
2222
PerformanceJobRefOrValue <|-- PerformanceJobValue
2323

24+
PerformanceJobValue *-->"1" MonitoredObjectId : monitoredObjectId
25+
PerformanceJobValue *-->"1" ServicePayloadSpecificAttributes : servicePayloadSpecificAttributes
26+
2427
@enduml

‎documentation/serviceApi/pm/performance/media/src/performanceJobStates.puml

+9-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ state resources <<choice>>
2424
state recurring <<choice>>
2525
note left of recurring : Recurring job?
2626

27-
state "in-progress" as in_progress
28-
state "resource-unavailable" as resource_unavailable
27+
state "inProgress" as in_progress
28+
state "resourcesUnavailable" as resource_unavailable
29+
30+
state "pendingCancel" as pending_cancel
2931

3032
''' diagram'''
3133
[*] -d-> acknowledged
@@ -37,7 +39,7 @@ validation_successful -d-> rejected: No
3739
validation_successful -r-> immediate: Yes
3840

3941
immediate -r-> scheduled: No
40-
scheduled -d-> cancelled: Cancel
42+
scheduled -d-> pending_cancel: Cancel
4143
scheduled -d-> resources: schedule start time
4244
resources -d-> resource_unavailable: No
4345
resources -l-> in_progress: Yes
@@ -47,9 +49,12 @@ in_progress -d-> recurring
4749
recurring -d-> completed: No
4850
recurring -u-> immediate: Yes
4951

50-
in_progress -d-> cancelled: Cancel
52+
in_progress -d-> pending_cancel: Cancel
5153
in_progress -u-> suspended: Suspend
5254
suspended -r-> in_progress: Resume
55+
suspended -r-> pending_cancel: Cancel
56+
57+
pending_cancel -> cancelled
5358

5459
suspended -u-> modification: Modify
5560
modification -d-> suspended: No

0 commit comments

Comments
 (0)