Skip to content
Snippets Groups Projects
Commit a6e3bbe9 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10811: comments on columns to clarify meaning

parent fa358170
No related branches found
No related tags found
No related merge requests found
...@@ -323,6 +323,8 @@ CREATE TABLE resource_monitoring.resource_capacity ( ...@@ -323,6 +323,8 @@ CREATE TABLE resource_monitoring.resource_capacity (
) WITH (OIDS=FALSE); ) WITH (OIDS=FALSE);
ALTER TABLE resource_monitoring.resource_capacity ALTER TABLE resource_monitoring.resource_capacity
OWNER TO resourceassignment; OWNER TO resourceassignment;
COMMENT ON COLUMN resource_monitoring.resource_capacity.available IS 'This is the current (momentaneous) available capacity of this resource (which is total-used) and has to be set from a monitoring system.';
COMMENT ON COLUMN resource_monitoring.resource_capacity.total IS 'This is the total (momentaneous) available capacity of this resource. Usually the total capacity is fixed, but it could change, for example when you add an extra disk.';
CREATE TABLE resource_monitoring.resource_usage ( CREATE TABLE resource_monitoring.resource_usage (
id serial NOT NULL, id serial NOT NULL,
...@@ -457,6 +459,9 @@ ALTER VIEW resource_monitoring.resource_view ...@@ -457,6 +459,9 @@ ALTER VIEW resource_monitoring.resource_view
OWNER TO resourceassignment; OWNER TO resourceassignment;
COMMENT ON VIEW resource_monitoring.resource_view COMMENT ON VIEW resource_monitoring.resource_view
IS 'view on virtual_instrument.resource_view including availability and capacity'; IS 'view on virtual_instrument.resource_view including availability and capacity';
COMMENT ON COLUMN resource_monitoring.resource_view.available_capacity IS 'This is the current (momentaneous) available capacity of this resource (which is total-used) and has to be set from a monitoring system.';
COMMENT ON COLUMN resource_monitoring.resource_view.used_capacity IS 'This is the current (momentaneous) used capacity of this resource (which is total-available) and has to be set from a monitoring system.';
COMMENT ON COLUMN resource_monitoring.resource_view.total_capacity IS 'This is the total (momentaneous) available capacity of this resource. Usually the total capacity is fixed, but it could change, for example when you add an extra disk.';
CREATE OR REPLACE VIEW resource_monitoring.resource_usage_view AS CREATE OR REPLACE VIEW resource_monitoring.resource_usage_view AS
SELECT ru.as_of_timestamp, ru.usage, ru.status_id, rcs.name as status_name, rv.* SELECT ru.as_of_timestamp, ru.usage, ru.status_id, rcs.name as status_name, rv.*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment