Skip to content

Commit

Permalink
remove unused struct
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Rash <jordan@synadia.com>
  • Loading branch information
jordan-rash committed Jan 7, 2025
1 parent 6092a84 commit 2238c97
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 156 deletions.
24 changes: 1 addition & 23 deletions api/agent-ping-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"running_workloads": {
"type": "array",
"items": {
"$ref": "#/definitions/WorkloadPingMachineSummary"
"$ref": "./shared-workload-summary.json"
}
}
},
Expand All @@ -46,27 +46,5 @@
"uptime",
"running_workloads"
],
"definitions": {
"WorkloadPingMachineSummary": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"namespace": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"namespace",
"name",
"type"
]
}
},
"additionalProperties": false
}
59 changes: 0 additions & 59 deletions api/go/node.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 42 additions & 18 deletions api/go/shared.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions api/heartbeat-agent.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "io.nats.nex.v2.agent_heartbeat",
"title": "AgentHeartbeat",
"type": "object",
"properties": {
},
"required": [],
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "io.nats.nex.v2.agent_heartbeat",
"title": "AgentHeartbeat",
"type": "object",
"properties": {},
"required": [
],
"additionalProperties": false
}
50 changes: 2 additions & 48 deletions api/node-info-response.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,62 +34,16 @@
"workload_summaries": {
"type": "array",
"items": {
"$ref": "#/definitions/WorkloadSummary"
"$ref": "./shared-workload-summary.json"
}
}
},
"required": [
"node_id",
"nexus",
"version",
"uptime",
"target_xkey",
"tags",
"workload_summaries"
],
"definitions": {
"WorkloadSummary": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the workload"
},
"name": {
"type": "string",
"description": "The name of the workload"
},
"start_time": {
"type": "string",
"description": "The start time of the workload"
},
"runtime": {
"type": "string",
"description": "The runtime of the workload"
},
"workload_type": {
"type": "string",
"description": "The type of the workload"
},
"workload_runtype": {
"type": "string",
"description": "The runtype/lifecycle of the workload"
},
"workload_state": {
"type": "string",
"description": "The state of the workload"
}
},
"required": [
"id",
"name",
"start_time",
"runtime",
"workload_type",
"workload_runtype",
"workload_state"
]
}
},
"additionalProperties": false
]
}
45 changes: 45 additions & 0 deletions api/shared-workload-summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "shared",
"title": "WorkloadSummary",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the workload"
},
"name": {
"type": "string",
"description": "The name of the workload"
},
"start_time": {
"type": "string",
"description": "The start time of the workload"
},
"runtime": {
"type": "string",
"description": "The runtime of the workload"
},
"workload_type": {
"type": "string",
"description": "The type of the workload"
},
"workload_runtype": {
"type": "string",
"description": "The runtype/lifecycle of the workload"
},
"workload_state": {
"type": "string",
"description": "The state of the workload"
}
},
"required": [
"id",
"name",
"start_time",
"runtime",
"workload_type",
"workload_runtype",
"workload_state"
]
}

0 comments on commit 2238c97

Please sign in to comment.