Details on the various actions that can be performed on the
Dashboard resource, including the expected
parameters and the potential responses.
Deletes a dashboard
result = client.dashboard.delete(dashboardId=my_dashboard_id)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Organization, all.User, dashboard.*, or dashboard.delete.
| Name |
Type |
Required |
Description |
Default |
Example |
| dashboardId |
string |
Y |
ID of the associated dashboard |
|
575ece2b7ae143cd83dc4a9b |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Success |
If dashboard was successfully deleted |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if dashboard was not found |
Retrieves information on a dashboard
result = client.dashboard.get(dashboardId=my_dashboard_id)
print(result)
No api access token is required to call this action.
| Name |
Type |
Required |
Description |
Default |
Example |
| dashboardId |
string |
Y |
ID of the associated dashboard |
|
575ece2b7ae143cd83dc4a9b |
| password |
string |
N |
Password for password-protected dashboards |
|
myPassword |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Dashboard |
Dashboard information |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if dashboard was not found |
Updates information about a dashboard
result = client.dashboard.patch(
dashboardId=my_dashboard_id,
dashboard=my_dashboard)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Organization, all.User, dashboard.*, or dashboard.patch.
| Name |
Type |
Required |
Description |
Default |
Example |
| dashboardId |
string |
Y |
ID of the associated dashboard |
|
575ece2b7ae143cd83dc4a9b |
| dashboard |
Dashboard Patch |
Y |
Object containing new dashboard properties |
|
Dashboard Patch Example |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 200 |
Dashboard |
Update dashboard information |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if dashboard was not found |
Sends a snapshot of a dashboard
result = client.dashboard.send_report(
dashboardId=my_dashboard_id,
reportConfig=my_report_config)
print(result)
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Organization, all.User, dashboard.*, or dashboard.sendReport.
| Name |
Type |
Required |
Description |
Default |
Example |
| dashboardId |
string |
Y |
ID of the associated dashboard |
|
575ece2b7ae143cd83dc4a9b |
| reportConfig |
Dashboard Send Report |
Y |
Object containing report options |
|
Dashboard Send Report Example |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
| Code |
Type |
Description |
| 400 |
Error |
Error if malformed request |
| 404 |
Error |
Error if dashboard was not found |
Validates a context object against the dashboard's context configuration
result = client.dashboard.validate_context(
dashboardId=my_dashboard_id,
ctx=my_ctx)
print(result)
No api access token is required to call this action.
| Name |
Type |
Required |
Description |
Default |
Example |
| dashboardId |
string |
Y |
ID of the associated dashboard |
|
575ece2b7ae143cd83dc4a9b |
| ctx |
Dashboard Context Instance |
Y |
The context object to validate |
|
Dashboard Context Instance Example |
| password |
string |
N |
Password for password-protected dashboards |
|
myPassword |
| duration |
string |
N |
Duration of data to fetch in milliseconds |
|
3600000 |
| resolution |
string |
N |
Resolution in milliseconds |
|
60000 |
| end |
string |
N |
End timestamp of the data, in ms since epoch |
|
1465790400000 |
| losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |