Openframe Sdk Fleetmdm
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Openframe Sdk Fleetmdm is a small Java model package supplied by the com.openframe.oss:fleetmdm library. The tenant repository consumes version 7.0.11 of that library. Its responsibility is to deserialize selected FleetMDM JSON responses into stable Java objects: an assigned-host identifier and osquery table and column metadata.
The module deliberately contains transport-neutral data models. It does not define HTTP clients, endpoints, persistence, or FleetMDM request orchestration. Callers supply those concerns, deserialize payloads with Jackson, and use these models as the typed result structure.
| Area | Components | Responsibility |
|---|---|---|
| Host assignment | AssignedHost |
Represents an assigned host by its numeric FleetMDM identifier. |
| osquery table metadata | OsqueryTableSchema |
Describes an osquery table, including documentation metadata, supported platforms, flags, and its columns. |
| osquery column metadata | OsqueryColumnSchema |
Describes a single column's name, type, platform coverage, documentation, and query-relevant flags. |
flowchart LR
FleetMdm["FleetMDM JSON payload"] --> Jackson["Jackson deserialization"]
Jackson --> AssignedHost["AssignedHost"]
Jackson --> TableSchema["OsqueryTableSchema"]
TableSchema --> ColumnSchema["OsqueryColumnSchema"]
AssignedHost --> Consumer["Tenant service or integration"]
ColumnSchema --> Consumer
The model layer is intentionally one-directional. OsqueryTableSchema owns a list of OsqueryColumnSchema objects, while AssignedHost is independent because it represents only the id property returned for a host assignment.
classDiagram
class AssignedHost {
Long id
}
class OsqueryTableSchema {
String name
List platforms
String description
List columns
String examples
String notes
String url
boolean evented
boolean cacheable
}
class OsqueryColumnSchema {
String name
String type
String description
List platforms
String notes
boolean required
Boolean hidden
Boolean index
}
OsqueryTableSchema "1" --> "0..many" OsqueryColumnSchema : columns
AssignedHost is a minimal mutable DTO with an id field of type Long. Jackson maps the FleetMDM id JSON property explicitly with @JsonProperty("id"). Lombok generates the accessor and mutator methods.
Use this model where a response only needs to identify the assigned FleetMDM host. Since the identifier is nullable at the Java level, consumers should validate it before performing operations that require a host reference.
OsqueryTableSchema maps metadata for an osquery table:
name identifies the table.platforms lists supported operating-system platforms.description, examples, notes, and url carry documentation metadata.columns provides the nested column definitions.evented and cacheable expose boolean table capabilities.This type is the aggregation boundary for a schema response. Consumers can use platform information and column flags to present valid query options or perform validation before dispatching a query, while retaining the source documentation fields for user-facing help.
OsqueryColumnSchema represents an entry within OsqueryTableSchema.columns.
| Property group | Fields | Meaning |
|---|---|---|
| Identity and representation | name, type |
The column name and its declared value type. |
| Documentation | description, notes |
Human-readable usage context supplied with schema metadata. |
| Compatibility | platforms |
Platforms on which the column applies. |
| Query flags | required, hidden, index |
Required is a primitive boolean. Hidden and index are boxed booleans, allowing an absent JSON value to remain distinguishable from false. |
All three DTOs use Jackson @JsonIgnoreProperties(ignoreUnknown = true). This makes the integration forward-compatible with payloads that add fields: known properties are populated and unknown properties are ignored. It also means this module is not a strict payload validator. Callers that require validation must validate required domain conditions after deserialization.
The implementation uses Lombok:
AssignedHost uses @Getter and @Setter.@Data, which provides accessors, mutators, and standard value-style methods.sequenceDiagram
participant Integration as "Tenant integration"
participant Fleet as "FleetMDM"
participant Mapper as "Jackson mapper"
participant Schema as "Openframe Sdk Fleetmdm"
Integration->>Fleet: Request host or schema metadata
Fleet->>Integration: Return JSON payload
Integration->>Mapper: Deserialize payload
Mapper->>Schema: Populate model fields
Schema->>Integration: Return typed host or table schema
Integration->>Integration: Validate and use typed metadata
Openframe Sdk Fleetmdm is provided by the OpenFrame OSS Library rather than implemented in this tenant repository. The tenant assembles the wider platform services and consumes the artifact; this model package provides a typed contract at the FleetMDM boundary. Platform services that need FleetMDM setup or Fleet-facing routing should keep request execution and operational policy outside these DTOs.
@JsonIgnoreProperties(ignoreUnknown = true) when evolving these models unless a deliberate strict-deserialization policy is introduced across the integration.Boolean types for hidden and index when absence has different semantics from an explicit false.