-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10652 from linode/staging
Release v1.123.0 - `staging` → `master`
- Loading branch information
Showing
285 changed files
with
7,416 additions
and
3,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ResourcePage } from 'src/types'; | ||
import Request, { setMethod, setURL } from '../request'; | ||
import { Dashboard } from './types'; | ||
import { API_ROOT } from 'src/constants'; | ||
|
||
//Returns the list of all the dashboards available | ||
export const getDashboards = () => | ||
Request<ResourcePage<Dashboard>>( | ||
setURL(`${API_ROOT}/monitor/services/linode/dashboards`), | ||
setMethod('GET') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './types'; | ||
|
||
export * from './dashboards'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
export interface Dashboard { | ||
id: number; | ||
label: string; | ||
widgets: Widgets[]; | ||
created: string; | ||
updated: string; | ||
time_duration: TimeDuration; | ||
service_type: string; | ||
} | ||
|
||
export interface TimeGranularity { | ||
unit: string; | ||
value: number; | ||
} | ||
|
||
export interface TimeDuration { | ||
unit: string; | ||
value: number; | ||
} | ||
|
||
export interface Widgets { | ||
label: string; | ||
metric: string; | ||
aggregate_function: string; | ||
group_by: string; | ||
region_id: number; | ||
namespace_id: number; | ||
color: string; | ||
size: number; | ||
chart_type: string; | ||
y_label: string; | ||
filters: Filters[]; | ||
serviceType: string; | ||
service_type: string; | ||
resource_id: string[]; | ||
time_granularity: TimeGranularity; | ||
time_duration: TimeDuration; | ||
unit: string; | ||
} | ||
|
||
export interface Filters { | ||
key: string; | ||
operator: string; | ||
value: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.