"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.Variant1 = void 0;

var _index = require("./index");

var _jsxRuntime = require("react/jsx-runtime");

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = {
  title: "LogsViewer",
  component: _index.LogsViewer
};
exports.default = _default;
var logsExample = [{
  timestamp: "2022-04-14T11:49:12.705934543Z",
  message: "W0414 11:49:12.705797       1 warnings.go:67] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress",
  labels: {
    containerName: "cert-manager",
    namespace: "cert-manager",
    nodeName: "ip-10-0-6-82.eu-west-2.compute.internal",
    pod: "cert-manager-55c7f45676-ldt2x"
  }
}, {
  timestamp: "2022-04-14T11:56:31.562Z",
  message: "\x1B[34mINFO\x1B[0m\tcontrollers.canary\tFAIL [http] dev/abp-microservice/ABP Microservices demo public website duration=32  response code invalid 503 != [200]",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:56:55.581Z",
  message: "\x1B[35mDEBUG\x1B[0m\tcontroller-runtime.manager.events\tWarning\t{\"object\": {\"kind\":\"Canary\",\"namespace\":\"prod\",\"name\":\"abp-microservice\",\"uid\":\"e821fd8a-ca3f-448e-bd16-2b4003444128\",\"apiVersion\":\"canaries.flanksource.com/v1\",\"resourceVersion\":\"234790132\"}, \"reason\": \"Failed\", \"message\": \"http-https://abp-sample-admin-prod.canary.lab.flanksource.com: \"}",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:49:12.705934543Z",
  message: "W0414 11:49:12.705797       1 warnings.go:67] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress",
  labels: {
    containerName: "cert-manager",
    namespace: "cert-manager",
    nodeName: "ip-10-0-6-82.eu-west-2.compute.internal",
    pod: "cert-manager-55c7f45676-ldt2x"
  }
}, {
  timestamp: "2022-04-14T11:56:31.562Z",
  message: "\x1B[34mINFO\x1B[0m\tcontrollers.canary\tFAIL [http] dev/abp-microservice/ABP Microservices demo public website duration=32  response code invalid 503 != [200]",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:56:55.581Z",
  message: "\x1B[35mDEBUG\x1B[0m\tcontroller-runtime.manager.events\tWarning\t{\"object\": {\"kind\":\"Canary\",\"namespace\":\"prod\",\"name\":\"abp-microservice\",\"uid\":\"e821fd8a-ca3f-448e-bd16-2b4003444128\",\"apiVersion\":\"canaries.flanksource.com/v1\",\"resourceVersion\":\"234790132\"}, \"reason\": \"Failed\", \"message\": \"http-https://abp-sample-admin-prod.canary.lab.flanksource.com: \"}",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:49:12.705934543Z",
  message: "W0414 11:49:12.705797       1 warnings.go:67] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress",
  labels: {
    containerName: "cert-manager",
    namespace: "cert-manager",
    nodeName: "ip-10-0-6-82.eu-west-2.compute.internal",
    pod: "cert-manager-55c7f45676-ldt2x"
  }
}, {
  timestamp: "2022-04-14T11:56:31.562Z",
  message: "\x1B[34mINFO\x1B[0m\tcontrollers.canary\tFAIL [http] dev/abp-microservice/ABP Microservices demo public website duration=32  response code invalid 503 != [200]",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:56:55.581Z",
  message: "\x1B[35mDEBUG\x1B[0m\tcontroller-runtime.manager.events\tWarning\t{\"object\": {\"kind\":\"Canary\",\"namespace\":\"prod\",\"name\":\"abp-microservice\",\"uid\":\"e821fd8a-ca3f-448e-bd16-2b4003444128\",\"apiVersion\":\"canaries.flanksource.com/v1\",\"resourceVersion\":\"234790132\"}, \"reason\": \"Failed\", \"message\": \"http-https://abp-sample-admin-prod.canary.lab.flanksource.com: \"}",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:49:12.705934543Z",
  message: "W0414 11:49:12.705797       1 warnings.go:67] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress",
  labels: {
    containerName: "cert-manager",
    namespace: "cert-manager",
    nodeName: "ip-10-0-6-82.eu-west-2.compute.internal",
    pod: "cert-manager-55c7f45676-ldt2x"
  }
}, {
  timestamp: "2022-04-14T11:56:31.562Z",
  message: "\x1B[34mINFO\x1B[0m\tcontrollers.canary\tFAIL [http] dev/abp-microservice/ABP Microservices demo public website duration=32  response code invalid 503 != [200]",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}, {
  timestamp: "2022-04-14T11:56:55.581Z",
  message: "\x1B[35mDEBUG\x1B[0m\tcontroller-runtime.manager.events\tWarning\t{\"object\": {\"kind\":\"Canary\",\"namespace\":\"prod\",\"name\":\"abp-microservice\",\"uid\":\"e821fd8a-ca3f-448e-bd16-2b4003444128\",\"apiVersion\":\"canaries.flanksource.com/v1\",\"resourceVersion\":\"234790132\"}, \"reason\": \"Failed\", \"message\": \"http-https://abp-sample-admin-prod.canary.lab.flanksource.com: \"}",
  labels: {
    containerName: "canary-checker",
    namespace: "demo",
    nodeName: "ip-10-0-5-82.eu-west-2.compute.internal",
    pod: "canary-checker-5d484488bf-sxbpb"
  }
}];

var Template = function Template(arg) {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogsViewer, _objectSpread({}, arg));
};

var Variant1 = Template.bind({});
exports.Variant1 = Variant1;
Variant1.args = {
  logs: logsExample,
  isLoading: false
};