Skip to content

GetApplicationProcessStatisticsResponse fails for DOWN process because ProcessStatisticsResource build fails #1062

@keviningvalson

Description

@keviningvalson

ProcessStatisticsResource is inconsistent with possible responses from https://v3-apidocs.cloudfoundry.org/version/3.87.0/index.html#the-process-stats-object for processes in a down state

Cannot construct instance of `org.cloudfoundry.client.v3.processes.ProcessStatisticsResource`, problem: Cannot build ProcessStatisticsResource, some of required attributes are not set [diskQuota, fileDescriptorQuota, host, memoryQuota, usage]
 at [Source: (byte[])"{
  "resources": [
    {
      "type": "web",
      "index": 0,
      "state": "DOWN",
      "uptime": 0,
      "isolation_segment": null,
      "details": null
    }
  ]
}"; line: 10, column: 5] (through reference chain: org.cloudfoundry.client.v3.applications.GetApplicationProcessStatisticsResponse$Json["resources"]->java.util.ArrayList[0])

org.cloudfoundry.client.v3.processes.ProcessStatistics as used by org.cloudfoundry.client.v3.applications. _GetApplicationProcessStatisticsResponse does not include @nullable for fields absent in the builder error noted above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions