Skip to content

Commit

Permalink
Update arch
Browse files Browse the repository at this point in the history
  • Loading branch information
huanpc committed Jul 13, 2017
1 parent 5f40cf0 commit a9a852b
Show file tree
Hide file tree
Showing 9 changed files with 5,381 additions and 0 deletions.
3,010 changes: 3,010 additions & 0 deletions architecture/Model.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added architecture/Model_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
738 changes: 738 additions & 0 deletions architecture/architecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added architecture/architecture_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added architecture/concept.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,485 changes: 1,485 additions & 0 deletions architecture/concept.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions architecture/data_modeling.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="data">
<xs:complexType>
<xs:sequence>
<xs:element name="timestamp" type="xs:integer"/>
<xs:element name="endpoint" type="xs:string"/>
<xs:element name="metric_name">
<xs:restriction base="xs:string">
<xs:enumeration value="temperature"/>
<xs:enumeration value="air_humidity"/>
<xs:enumeration value="light"/>
<xs:enumeration value="human_appearance"/>
<xs:enumeration value="cpu_usage_rate"/>
<xs:enumeration value="memory_usage"/>
<xs:enumeration value="network_in"/>
<xs:enumeration value="network_out"/>
<xs:enumeration value="storage_usage"/>
</xs:restriction>
</xs:element>
<xs:element name="type">
<xs:restriction base="xs:string">
<xs:enumeration value="gauge"/>
<xs:enumeration value="counter"/>
<xs:enumeration value="histogram"/>
<xs:enumeration value="summary"/>
</xs:restriction>
</xs:element>
<xs:element name="data_type">
<xs:restriction base="xs:string">
<xs:enumeration value="float"/>
<xs:enumeration value="int"/>
<xs:enumeration value="double"/>
<xs:enumeration value="short"/>
</xs:restriction>
</xs:element>
<xs:element name="unit">
<xs:restriction base="xs:string">
<xs:enumeration value="celsius"/>
<xs:enumeration value="fahrenheit"/>
<xs:enumeration value="kbps"/>
<xs:enumeration value="seconds"/>
<xs:enumeration value="count"/>
<xs:enumeration value="milicore"/>
<xs:enumeration value="byte"/>
<xs:enumeration value="iso"/>
<xs:enumeration value="ratio"/>
</xs:restriction>
</xs:element>
<xs:element name="polling_frequency" type="xs:float"/>
<xs:element name="value" type="xs:float"/>
<xs:element name="category">
<xs:restriction base="xs:string">
<xs:enumeration value="data_sensing"/>
<xs:enumeration value="resource"/>
</xs:restriction>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Binary file added architecture/k8s-docker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions architecture/modeling.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DataModel">
<xs:complexType>
<xs:sequence>
<xs:element name="Timestamp" type="xs:integer" />
<xs:element name="Id" type="xs:long" />
<xs:element name="Metric">
<xs:complexType>
<xs:sequence>
<xs:element name="MetricName" type="xs:string" />
<xs:element name="MetricType">
<xs:complexType>
<xs:enumeration value="Gagge" />
<xs:enumeration value="Counter" />
<xs:enumeration value="Histogram" />
<xs:enumeration value="Summary" />
</xs:complexType>
</xs:element>
<xs:element name="Units">
<xs:complexType>
<xs:choice>
<xs:element name="Time">
<xs:complexType>
<xs:enumeration value="nanoseconds" />
<xs:enumeration value="microseconds" />
<xs:enumeration value="miliseconds" />
<xs:enumeration value="seconds" />
<xs:enumeration value="minutes" />
</xs:complexType>
</xs:element>
<xs:element name="Data">
<xs:complexType>
<xs:enumeration value="bits" />
<xs:enumeration value="bytes" />
<xs:enumeration value="kilobytes" />
<xs:enumeration value="megabytes" />
</xs:complexType>
</xs:element>
<xs:element name="Temperature">
<xs:complexType>
<xs:enumeration value="Farenheit" />
<xs:enumeration value="Celcius" />
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="DataPoint">
<xs:complexType>
<xs:sequence>
<xs:element name="DataType">
<xs:restriction base="xs:string">
<xs:enumeration value="Float" />
<xs:enumeration value="integer" />
<xs:enumeration value="String" />
<xs:enumeration value="Double" />
</xs:restriction>
</xs:element>
<xs:element name="Value" type="xs:float" />
<xs:element name="PollingFrequency" type="xs:float" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Resource">
<xs:complexType>
<xs:sequence>
<xs:element name="ResourceId" type="xs:string" />
<xs:element name="Endpoint" type="xs:string" />
<xs:element name="State" type="xs:string" />
<xs:element name="Description" type="xs:string" />
<xs:element name="Type" type="xs:string" />
<xs:element name="Namespace" type="xs:string" />
<xs:element name="Label" type="xs:string" />
<xs:element name="RegularExpression" type="xs:string" />
<xs:element name="Version" type="xs:string" />
<xs:any minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

0 comments on commit a9a852b

Please sign in to comment.