Google has announced the general availability of its Stackdriver Cloud Monitoring dashboards API. The dashboards API is part of Google Cloud. It allows users to read the configuration for existing dashboards, create new dashboards, update existing dashboards and delete dashboards no longer used.
Reusability is a key feature Google expects developers to leverage. Once a dashboard is created for a given Workspace, that dashboard can be deployed in another Workspace through the API. A particularly helpful use case for this feature is during the move from QA testing to production. Retrieving an existing dashboard is achieved through a simple get method and deployed through a create method.
API methods follow the REST and gRPC semantics like other Google Cloud APIs. When creating a dashboard, developers must select widgets that go inside and a layout. Widgets currently available include XyChart, Scorecard and Text object. Layouts currently available include GridLayout, RowLayout or ColumnLayout.