Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
967706a
update
shahzad31 Oct 10, 2019
320751c
added an embeddable maps
shahzad31 Nov 13, 2019
0f53340
update map config
shahzad31 Nov 14, 2019
39ccd02
added options to disable zoom, hide tool tips, widgets/overlays in em…
shahzad31 Nov 14, 2019
47b971b
added options to disable zoom, hide tool tips, widgets/overlays in em…
shahzad31 Nov 14, 2019
4615048
added bool option to hide header
shahzad31 Nov 14, 2019
923bba2
revert panel changes
shahzad31 Nov 14, 2019
65e465a
update panel
shahzad31 Nov 14, 2019
3d3c956
Merge branch 'master' into feature/issue-49871--added-options-in-embe…
shahzad31 Nov 15, 2019
a20c2ae
Merge branch 'master' into feature/issue-49871--added-options-in-embe…
shahzad31 Nov 15, 2019
a296a20
Merge branch 'master' into feature/issue-50665--hide-header-panel-in-…
shahzad31 Nov 15, 2019
d9df545
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 15, 2019
1de5f1f
update map
shahzad31 Nov 15, 2019
427385c
Merge branch 'feature/issue-49871--added-options-in-embeddable-maps' …
shahzad31 Nov 15, 2019
c48f35e
Merge branch 'feature/issue-50665--hide-header-panel-in-embeddable-pa…
shahzad31 Nov 15, 2019
c015314
added disable interactive
shahzad31 Nov 15, 2019
0f29dad
update uptime embeddable
shahzad31 Nov 15, 2019
424ebd3
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 19, 2019
37d24db
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 19, 2019
adc2e6c
update redux state and removed widget over lay hiding
shahzad31 Nov 20, 2019
3d7c765
refactor widget overlay prop
shahzad31 Nov 20, 2019
6cf5327
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 22, 2019
8ee0336
update layout
shahzad31 Nov 25, 2019
ebddd8f
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 25, 2019
cf0c8dc
update rest API
shahzad31 Nov 27, 2019
907f1e1
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 29, 2019
7904e7a
remove maps code
shahzad31 Nov 29, 2019
456c21c
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Nov 30, 2019
4accc47
update components
shahzad31 Dec 2, 2019
c3f2afb
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 2, 2019
508bb7b
update up/down points on map
shahzad31 Dec 4, 2019
12ff83e
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 4, 2019
b9c2ab2
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 4, 2019
9e9ba80
update snaps
shahzad31 Dec 5, 2019
26cbb21
fixed type
shahzad31 Dec 5, 2019
5dea9ec
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 5, 2019
60e3742
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 5, 2019
bfdde98
update request
shahzad31 Dec 6, 2019
4e74f7f
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 6, 2019
512f4df
update request to include rnage
shahzad31 Dec 6, 2019
58b48c5
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 6, 2019
5b4e045
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 9, 2019
d1a6f8e
fix tests
shahzad31 Dec 9, 2019
d8620a5
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 10, 2019
4262d14
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 12, 2019
0b8c60e
utilize newly added setLayers method
shahzad31 Dec 12, 2019
1a85639
remove unused code
shahzad31 Dec 13, 2019
ebad717
Merge branch 'master' into feature/issue-44550--new-details-panel-and…
shahzad31 Dec 13, 2019
a13b396
refactor code
shahzad31 Dec 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions x-pack/legacy/plugins/uptime/common/runtime_types/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import * as t from 'io-ts';

export const LocationType = t.partial({
lat: t.string,
lon: t.string,
});

export const CheckGeoType = t.partial({
name: t.string,
location: LocationType,
});

export const SummaryType = t.partial({
up: t.number,
down: t.number,
geo: CheckGeoType,
});

export type Summary = t.TypeOf<typeof SummaryType>;
export type CheckGeo = t.TypeOf<typeof CheckGeoType>;
export type Location = t.TypeOf<typeof LocationType>;
2 changes: 2 additions & 0 deletions x-pack/legacy/plugins/uptime/common/runtime_types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

export * from './common';
export * from './snapshot';
export * from './monitor/monitor_details';
export * from './monitor/monitor_locations';
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import * as t from 'io-ts';
import { CheckGeoType, SummaryType } from '../common';

// IO type for validation
export const MonitorLocationType = t.partial({
summary: SummaryType,
geo: CheckGeoType,
});

// Typescript type for type checking
export type MonitorLocation = t.TypeOf<typeof MonitorLocationType>;

export const MonitorLocationsType = t.intersection([
t.type({ monitorId: t.string }),
t.partial({ locations: t.array(MonitorLocationType) }),
]);
export type MonitorLocations = t.TypeOf<typeof MonitorLocationsType>;
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/uptime/public/apps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import chrome from 'ui/chrome';
import { npStart } from 'ui/new_platform';
import { Plugin } from './plugin';
import 'uiExports/embeddableFactories';

new Plugin(
{ opaqueId: Symbol('uptime'), env: {} as any, config: { get: () => ({} as any) } },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import lowPolyLayerFeatures from '../low_poly_layer.json';

export const mockDownPointsLayer = {
id: 'down_points',
label: 'Down Locations',
sourceDescriptor: {
type: 'GEOJSON_FILE',
__featureCollection: {
features: [
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [13.399262, 52.487239],
},
},
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [13.399262, 55.487239],
},
},
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [14.399262, 54.487239],
},
},
],
type: 'FeatureCollection',
},
},
visible: true,
style: {
type: 'VECTOR',
properties: {
fillColor: {
type: 'STATIC',
options: {
color: '#BC261E',
},
},
lineColor: {
type: 'STATIC',
options: {
color: '#fff',
},
},
lineWidth: {
type: 'STATIC',
options: {
size: 2,
},
},
iconSize: {
type: 'STATIC',
options: {
size: 6,
},
},
},
},
type: 'VECTOR',
};

export const mockUpPointsLayer = {
id: 'up_points',
label: 'Up Locations',
sourceDescriptor: {
type: 'GEOJSON_FILE',
__featureCollection: {
features: [
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [13.399262, 52.487239],
},
},
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [13.399262, 55.487239],
},
},
{
type: 'feature',
geometry: {
type: 'Point',
coordinates: [14.399262, 54.487239],
},
},
],
type: 'FeatureCollection',
},
},
visible: true,
style: {
type: 'VECTOR',
properties: {
fillColor: {
type: 'STATIC',
options: {
color: '#98A2B2',
},
},
lineColor: {
type: 'STATIC',
options: {
color: '#fff',
},
},
lineWidth: {
type: 'STATIC',
options: {
size: 2,
},
},
iconSize: {
type: 'STATIC',
options: {
size: 6,
},
},
},
},
type: 'VECTOR',
};

export const mockLayerList = [
{
id: 'low_poly_layer',
label: 'World countries',
minZoom: 0,
maxZoom: 24,
alpha: 1,
sourceDescriptor: {
id: 'b7486535-171b-4d3b-bb2e-33c1a0a2854c',
type: 'GEOJSON_FILE',
__featureCollection: lowPolyLayerFeatures,
},
visible: true,
style: {
type: 'VECTOR',
properties: {
fillColor: {
type: 'STATIC',
options: {
color: '#cad3e4',
},
},
lineColor: {
type: 'STATIC',
options: {
color: '#fff',
},
},
lineWidth: {
type: 'STATIC',
options: {
size: 0,
},
},
iconSize: {
type: 'STATIC',
options: {
size: 6,
},
},
},
},
type: 'VECTOR',
},
mockDownPointsLayer,
mockUpPointsLayer,
];
Loading