Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support id in CeilometerSample #700

Closed
llarsson opened this issue Jun 1, 2016 · 1 comment
Closed

Support id in CeilometerSample #700

llarsson opened this issue Jun 1, 2016 · 1 comment

Comments

@llarsson
Copy link

llarsson commented Jun 1, 2016

The documentation of Ceilometer Sample shows that a Sample has an ID. When I stick their example in a file and try to parse it into an OpenStack4j CeilometerSample as follows:

private CeilometerSample parse(String resourceFile) throws IOException {
    ObjectMapper mapper = new ObjectMapper();
    return mapper.readValue(
        new File(getClass().getClassLoader().getResource(resourceFile).getFile()),
        CeilometerSample.class);
}

I get the following error (rest of stack trace omitted for clarity):

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "id" (class org.openstack4j.openstack.telemetry.domain.CeilometerSample), not marked as ignorable (12 known properties: "resource_metadata", "project_id", "recorded_at", "counter_unit", "resource_id", "counter_name", "user_id", "message_id", "timestamp", "source", "counter_type", "counter_volume"])
 at 
@llarsson
Copy link
Author

llarsson commented Jun 1, 2016

This is a subset of #701, so closing this.

@llarsson llarsson closed this as completed Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant