Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
2875fb3a
Commit
2875fb3a
authored
2 years ago
by
Ricard Vilalta
Browse files
Options
Downloads
Patches
Plain Diff
Update monitoring.proto
parent
f205c53a
No related branches found
No related tags found
1 merge request
!54
Release 2.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/monitoring.proto
+123
-24
123 additions, 24 deletions
proto/monitoring.proto
with
123 additions
and
24 deletions
proto/monitoring.proto
+
123
−
24
View file @
2875fb3a
...
@@ -19,27 +19,73 @@ import "context.proto";
...
@@ -19,27 +19,73 @@ import "context.proto";
import
"kpi_sample_types.proto"
;
import
"kpi_sample_types.proto"
;
service
MonitoringService
{
service
MonitoringService
{
rpc
CreateKpi
(
KpiDescriptor
)
returns
(
KpiId
)
{}
rpc
CreateKpi
(
KpiDescriptor
)
returns
(
KpiId
)
{}
rpc
GetKpiDescriptor
(
KpiId
)
returns
(
KpiDescriptor
)
{}
rpc
EditKpiDescriptor
(
EditedKpiDescriptor
)
returns
(
context.Empty
)
{}
rpc
IncludeKpi
(
Kpi
)
returns
(
context.Empty
)
{}
rpc
DeleteKpi
(
KpiId
)
returns
(
context.Empty
)
{}
rpc
MonitorKpi
(
MonitorKpiRequest
)
returns
(
context.Empty
)
{}
rpc
GetKpiDescriptorList
(
context.Empty
)
returns
(
KpiDescriptorList
)
{}
rpc
GetStreamKpi
(
KpiId
)
returns
(
stream
Kpi
)
{}
rpc
CreateBundleKpi
(
BundleKpiDescriptor
)
returns
(
KpiId
)
{}
rpc
GetInstantKpi
(
KpiId
)
returns
(
Kpi
)
{}
rpc
GetKpiDescriptor
(
KpiId
)
returns
(
KpiDescriptor
)
{}
rpc
IncludeKpi
(
Kpi
)
returns
(
context.Empty
)
{}
rpc
MonitorKpi
(
MonitorKpiRequest
)
returns
(
context.Empty
)
{}
rpc
QueryKpiData
(
KpiQuery
)
returns
(
KpiList
)
{}
rpc
SubscribeKpi
(
SubsDescriptor
)
returns
(
stream
KpiList
)
{}
rpc
GetSubsDescriptor
(
SubscriptionID
)
returns
(
SubsDescriptor
)
{}
rpc
GetSubscriptions
(
context.Empty
)
returns
(
SubsIDList
)
{}
rpc
EditKpiSubscription
(
SubsDescriptor
)
returns
(
context.Empty
)
{}
rpc
CreateKpiAlarm
(
AlarmDescriptor
)
returns
(
AlarmID
)
{}
rpc
EditKpiAlarm
(
AlarmDescriptor
)
returns
(
context.Empty
)
{}
rpc
GetAlarms
(
context.Empty
)
returns
(
AlarmIDList
)
{}
rpc
GetAlarmDescriptor
(
AlarmID
)
returns
(
AlarmDescriptor
)
{}
rpc
GetAlarmResponseStream
(
AlarmID
)
returns
(
stream
AlarmResponse
)
{}
// rpc GetStreamKpi (KpiId ) returns (stream Kpi ) {}
// rpc GetInstantKpi (KpiId ) returns (KpiList ) {}
}
}
message
KpiDescriptor
{
message
KpiDescriptor
{
string
kpi_description
=
1
;
string
kpi_description
=
1
;
kpi_sample_types.KpiSampleType
kpi_sample_type
=
2
;
kpi_sample_types.KpiSampleType
kpi_sample_type
=
2
;
context.DeviceId
device_id
=
3
;
context.DeviceId
device_id
=
3
;
context.EndPointId
endpoint_id
=
4
;
context.EndPointId
endpoint_id
=
4
;
context.ServiceId
service_id
=
5
;
context.ServiceId
service_id
=
5
;
//
context.SliceId slice_id = 6;
context.SliceId
slice_id
=
6
;
}
}
message
MonitorKpiRequest
{
message
BundleKpiDescriptor
{
KpiId
kpi_id
=
1
;
string
kpi_description
=
1
;
float
sampling_duration_s
=
2
;
repeated
KpiId
kpi_id_list
=
2
;
float
sampling_interval_s
=
3
;
kpi_sample_types.KpiSampleType
kpi_sample_type
=
3
;
context.DeviceId
device_id
=
4
;
context.EndPointId
endpoint_id
=
5
;
context.ServiceId
service_id
=
6
;
context.SliceId
slice_id
=
7
;
}
message
EditedKpiDescriptor
{
KpiId
kpi_id
=
1
;
string
kpi_description
=
2
;
repeated
KpiId
kpi_id_list
=
3
;
kpi_sample_types.KpiSampleType
kpi_sample_type
=
4
;
context.DeviceId
device_id
=
5
;
context.EndPointId
endpoint_id
=
6
;
context.ServiceId
service_id
=
7
;
context.SliceId
slice_id
=
8
;
}
message
MonitorKpiRequest
{
KpiId
kpi_id
=
1
;
float
monitoring_window_s
=
2
;
float
sampling_rate_s
=
3
;
// Pending add field to reflect Available Device Protocols
}
message
KpiQuery
{
repeated
KpiId
kpi_id
=
1
;
float
monitoring_window_s
=
2
;
float
sampling_rate_s
=
3
;
uint32
last_n_samples
=
4
;
// used when you want something like "get the last N many samples
string
start_date
=
5
;
// used when you want something like "get the samples since X date/time"
string
end_date
=
6
;
// used when you want something like "get the samples until X date/time"
// Pending add field to reflect Available Device Protocols
}
}
message
KpiId
{
message
KpiId
{
...
@@ -47,20 +93,73 @@ message KpiId {
...
@@ -47,20 +93,73 @@ message KpiId {
}
}
message
Kpi
{
message
Kpi
{
KpiId
kpi_id
=
1
;
KpiId
kpi_id
=
1
;
string
timestamp
=
2
;
string
timestamp
=
2
;
KpiValue
kpi_value
=
4
;
KpiValue
kpi_value
=
3
;
}
message
KpiValueRange
{
KpiValue
kpiMinValue
=
1
;
KpiValue
kpiMaxValue
=
2
;
}
}
message
KpiValue
{
message
KpiValue
{
oneof
value
{
oneof
value
{
uint32
intVal
=
1
;
uint32
intVal
=
1
;
float
floatVal
=
2
;
float
floatVal
=
2
;
string
stringVal
=
3
;
string
stringVal
=
3
;
bool
boolVal
=
4
;
bool
boolVal
=
4
;
}
}
}
}
message
KpiList
{
message
KpiList
{
repeated
Kpi
kpi_list
=
1
;
repeated
Kpi
kpi_list
=
1
;
}
message
KpiDescriptorList
{
repeated
KpiDescriptor
kpi_descriptor_list
=
1
;
}
message
SubsDescriptor
{
KpiId
kpi_id
=
1
;
float
sampling_duration_s
=
2
;
float
sampling_interval_s
=
3
;
string
start_date
=
4
;
// used when you want something like "get the samples since X date/time"
string
end_date
=
5
;
// used when you want something like "get the samples until X date/time"
// Pending add field to reflect Available Device Protocols
}
message
SubscriptionID
{
context.Uuid
subs_id
=
1
;
}
message
SubsResponse
{
SubscriptionID
subs_id
=
1
;
repeated
KpiList
kpi_list
=
2
;
}
message
SubsIDList
{
repeated
SubscriptionID
subs_list
=
1
;
}
message
AlarmDescriptor
{
string
alarm_description
=
1
;
string
name
=
2
;
KpiId
kpi_id
=
3
;
KpiValueRange
kpi_value_range
=
4
;
string
timestamp
=
5
;
}
message
AlarmID
{
context.Uuid
alarm_id
=
1
;
}
message
AlarmResponse
{
AlarmID
alarm_id
=
1
;
string
text
=
2
;
KpiValue
kpi_value
=
3
;
}
message
AlarmIDList
{
repeated
AlarmID
alarm_list
=
1
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment