@odigos/ui-kit 0.0.304 → 0.0.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/lib/chunks/{helpers-YkbGOGt5.js → helpers-Cnnu6nDZ.js} +1 -1
- package/lib/chunks/{index-BJ98y5gR.js → index-qLBXdBIN.js} +1 -1
- package/lib/chunks/source-instrument-form-context-CB8LQMmT.js +5 -0
- package/lib/chunks/ui-components-DRnj62bc.js +2298 -0
- package/lib/components/_cards/data-card/index.d.ts +2 -0
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/insights/index.d.ts +1 -0
- package/lib/constants/insights/recommendations.d.ts +78 -0
- package/lib/constants/instrumentation-agents/index.d.ts +58 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/index.d.ts +1 -0
- package/lib/containers/_drawers/instrumentation-agent-drawer/index.d.ts +7 -0
- package/lib/containers/_drawers/instrumentation-agent-drawer/offsets.d.ts +7 -0
- package/lib/containers/_drawers/instrumentation-agent-drawer/overview.d.ts +6 -0
- package/lib/containers/_drawers/instrumentation-agent-drawer/tabs.d.ts +4 -0
- package/lib/containers/_forms/insights/learning-policy-form/types.d.ts +1 -1
- package/lib/containers/index.d.ts +1 -0
- package/lib/containers/insights/consts.d.ts +1 -0
- package/lib/containers/insights/recommendations/card-primitives.d.ts +69 -0
- package/lib/containers/insights/recommendations/drawer.d.ts +12 -0
- package/lib/containers/insights/recommendations/edit-apply-drawer.d.ts +8 -0
- package/lib/containers/insights/recommendations/grouped.d.ts +11 -0
- package/lib/containers/insights/recommendations/guardrail-card.d.ts +22 -0
- package/lib/containers/insights/recommendations/helpers.d.ts +200 -0
- package/lib/containers/insights/recommendations/index.d.ts +2 -0
- package/lib/containers/insights/recommendations/rule-card.d.ts +11 -0
- package/lib/containers/instrumentation-agents/agents-table.d.ts +8 -0
- package/lib/containers/instrumentation-agents/helpers.d.ts +4 -0
- package/lib/containers/instrumentation-agents/index.d.ts +4 -0
- package/lib/containers/instrumentation-agents/types.d.ts +3 -0
- package/lib/containers.js +669 -566
- package/lib/contexts/odigos-api/capabilities.d.ts +2 -0
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +42 -2
- package/lib/contexts/odigos-api/hooks/use-instrumentation-agents-api.d.ts +31 -0
- package/lib/contexts/odigos-api/types.d.ts +64 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +2 -0
- package/lib/contexts.js +1 -1
- package/lib/functions/agent-supports-offsets/index.d.ts +7 -0
- package/lib/functions/get-agent-badge-colors/index.d.ts +8 -0
- package/lib/functions/get-containers-counts/index.d.ts +1 -0
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/insights/index.d.ts +296 -5
- package/lib/types/instrumentation-agents/index.d.ts +71 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/source-instrument-form-context-RwsR5XPB.js +0 -5
- package/lib/chunks/ui-components-CM2SQ_TO.js +0 -2298
|
@@ -20,9 +20,8 @@ export declare enum InsightsDeviationClass {
|
|
|
20
20
|
D3_latency = "D3_latency",
|
|
21
21
|
D4_args_returns = "D4_args_returns",
|
|
22
22
|
D5_libraries = "D5_libraries",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
D8_payload_size = "D8_payload_size"
|
|
23
|
+
D6_db_access = "D6_db_access",
|
|
24
|
+
D7_payload_size = "D7_payload_size"
|
|
26
25
|
}
|
|
27
26
|
export declare enum InsightsSampleReason {
|
|
28
27
|
Example = "example",
|
|
@@ -186,7 +185,7 @@ export interface InsightsBaselineHistogramSeries {
|
|
|
186
185
|
bars: InsightsBaselineHistogramBar[];
|
|
187
186
|
}
|
|
188
187
|
/**
|
|
189
|
-
* Chart-ready exponential histogram for D3_latency and
|
|
188
|
+
* Chart-ready exponential histogram for D3_latency and D7_payload_size.
|
|
190
189
|
* Plot `series[].bars`; do not recompute bounds from raw `data`.
|
|
191
190
|
*/
|
|
192
191
|
export interface InsightsBaselineHistogram {
|
|
@@ -227,7 +226,7 @@ export interface InsightsBaselineClass {
|
|
|
227
226
|
classDescription: string;
|
|
228
227
|
/** JSON-encoded baseline data; shape varies per deviation class. */
|
|
229
228
|
data?: string | null;
|
|
230
|
-
/** Chart-ready histogram for D3_latency /
|
|
229
|
+
/** Chart-ready histogram for D3_latency / D7_payload_size. Omitted for other classes. */
|
|
231
230
|
histogram?: InsightsBaselineHistogram | null;
|
|
232
231
|
dataSchemaVersion?: number | null;
|
|
233
232
|
observationCount: number;
|
|
@@ -547,6 +546,298 @@ export interface InsightsGuardrailSeedInput {
|
|
|
547
546
|
/** JSON-encoded map[string][]string; keys: allowed_callers | allowed_callees | allowed_egress | allowed_transactions. */
|
|
548
547
|
items: string;
|
|
549
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
* The guardrail rule type a recommendation would create.
|
|
551
|
+
*
|
|
552
|
+
* Unrelated to the platform `Recommendation` types in `@/types/recommendations`
|
|
553
|
+
* (InferDBAttributes, UrlTemplatization and friends) — those tune the Odigos
|
|
554
|
+
* pipeline, these are mined security rules.
|
|
555
|
+
*
|
|
556
|
+
* The wire shape is a **flattened union discriminated by `kind`**: there is one
|
|
557
|
+
* `Recommendation` object and the fields of the kind it is not are simply
|
|
558
|
+
* absent. Consumers must `switch (kind)` — never assume a field is there
|
|
559
|
+
* because the other kind always carries it.
|
|
560
|
+
*/
|
|
561
|
+
export declare enum InsightsRecommendationKind {
|
|
562
|
+
/** Two span attributes that always agreed on one transaction. Transaction-scoped. */
|
|
563
|
+
AttributeCorrelation = "attribute_correlation",
|
|
564
|
+
/**
|
|
565
|
+
* A service finished learning, so the callers / callees / egress /
|
|
566
|
+
* transactions it was seen with can become its guardrail. Service-scoped,
|
|
567
|
+
* one card per service, ever.
|
|
568
|
+
*/
|
|
569
|
+
ServiceGuardrail = "service_guardrail"
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* The guardrail rule keys a `service_guardrail` recommendation can propose, in
|
|
573
|
+
* the order the engine emits them (and the order the UI renders them).
|
|
574
|
+
*
|
|
575
|
+
* `InsightsRecommendationRule.rule` is a plain **string** on the wire, not an
|
|
576
|
+
* enum — a future server may add a key this build has never heard of, so match
|
|
577
|
+
* on it defensively and fall back to the server-supplied `label`.
|
|
578
|
+
*/
|
|
579
|
+
export declare enum InsightsRecommendationRuleKey {
|
|
580
|
+
AllowedCallers = "allowed_callers",
|
|
581
|
+
AllowedCallees = "allowed_callees",
|
|
582
|
+
AllowedEgress = "allowed_egress",
|
|
583
|
+
AllowedTransactions = "allowed_transactions"
|
|
584
|
+
}
|
|
585
|
+
/** Lifecycle bucket. `dismissed` is sticky across re-mining. */
|
|
586
|
+
export declare enum InsightsRecommendationState {
|
|
587
|
+
Open = "open",
|
|
588
|
+
Applied = "applied",
|
|
589
|
+
Dismissed = "dismissed"
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* How much the engine trusts the relation. `Low` means live traffic has already
|
|
593
|
+
* broken it, so applying would fire violations immediately.
|
|
594
|
+
*/
|
|
595
|
+
export declare enum InsightsRecommendationConfidenceLevel {
|
|
596
|
+
High = "high",
|
|
597
|
+
Medium = "medium",
|
|
598
|
+
Low = "low"
|
|
599
|
+
}
|
|
600
|
+
/** One stored sample the relation held on, with the two values it compared. */
|
|
601
|
+
export interface InsightsRecommendationExample {
|
|
602
|
+
traceId: string;
|
|
603
|
+
leftValue: string;
|
|
604
|
+
rightValue: string;
|
|
605
|
+
observedAt: string;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Why the engine believes the relation. The sample stats come from the stored
|
|
609
|
+
* relation samples the mining run read; the live counters come from shadow
|
|
610
|
+
* evaluation against real traffic and keep growing until the recommendation is
|
|
611
|
+
* applied or dismissed.
|
|
612
|
+
*/
|
|
613
|
+
export interface InsightsRecommendationConfidence {
|
|
614
|
+
level: InsightsRecommendationConfidenceLevel;
|
|
615
|
+
/**
|
|
616
|
+
* held / observed on the stored samples (0..1).
|
|
617
|
+
* `attribute_correlation` only — absent on a `service_guardrail` card.
|
|
618
|
+
*/
|
|
619
|
+
holdRatio?: number | null;
|
|
620
|
+
/**
|
|
621
|
+
* Stored samples where both values were present.
|
|
622
|
+
* `attribute_correlation` only — absent on a `service_guardrail` card.
|
|
623
|
+
*/
|
|
624
|
+
observed?: number | null;
|
|
625
|
+
/**
|
|
626
|
+
* Of those, how many satisfied the relation.
|
|
627
|
+
* `attribute_correlation` only — absent on a `service_guardrail` card.
|
|
628
|
+
*/
|
|
629
|
+
held?: number | null;
|
|
630
|
+
/**
|
|
631
|
+
* Distinct left-hand values seen agreeing.
|
|
632
|
+
* `attribute_correlation` only — absent on a `service_guardrail` card.
|
|
633
|
+
*/
|
|
634
|
+
distinct?: number | null;
|
|
635
|
+
/**
|
|
636
|
+
* Per kind: `attribute_correlation` — relation samples the mining run looked
|
|
637
|
+
* at; `service_guardrail` — promoted transactions whose learned profile
|
|
638
|
+
* seeded the lists. Label it accordingly.
|
|
639
|
+
*/
|
|
640
|
+
sampleCount: number;
|
|
641
|
+
/**
|
|
642
|
+
* `attribute_correlation`: live **traces** the relation held on.
|
|
643
|
+
* `service_guardrail`: Σ over `rules[]` of `liveChecked - liveViolated`, i.e.
|
|
644
|
+
* **rule-checks**, not traces — one trace contributes up to one per rule.
|
|
645
|
+
*/
|
|
646
|
+
liveHeld: number;
|
|
647
|
+
/**
|
|
648
|
+
* `attribute_correlation`: live **traces** the relation broke on.
|
|
649
|
+
* `service_guardrail`: Σ over `rules[]` of `liveViolated` — again rule-checks.
|
|
650
|
+
*/
|
|
651
|
+
liveBroken: number;
|
|
652
|
+
/**
|
|
653
|
+
* Null until the first live trace was evaluated.
|
|
654
|
+
*
|
|
655
|
+
* ⚠ The server emits the Go zero time (`0001-01-01T00:00:00Z`) instead of
|
|
656
|
+
* omitting the field, so treat that value as null — `isLiveTimestamp()` does.
|
|
657
|
+
*/
|
|
658
|
+
liveSince?: string | null;
|
|
659
|
+
/** Null until the first live trace was evaluated. Same zero-time caveat as `liveSince`. */
|
|
660
|
+
liveLast?: string | null;
|
|
661
|
+
/** Render-ready evidence lines, e.g. "Held on 50 of 50 stored samples". Never parse them. */
|
|
662
|
+
reasons: string[];
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* One allowlist rule a `service_guardrail` recommendation would write, with the
|
|
666
|
+
* list as it stands and how live traffic has fared against it while the card
|
|
667
|
+
* sat open (shadow evaluation — nothing is enforced until apply).
|
|
668
|
+
*/
|
|
669
|
+
export interface InsightsRecommendationRule {
|
|
670
|
+
/**
|
|
671
|
+
* The catalog rule key — one of `InsightsRecommendationRuleKey` today, but a
|
|
672
|
+
* plain open-ended string on the wire.
|
|
673
|
+
*/
|
|
674
|
+
rule: string;
|
|
675
|
+
/** Catalog label, e.g. "Allowed callers". Falls back to the raw key server-side. */
|
|
676
|
+
label: string;
|
|
677
|
+
/** One-line "what it enforces", straight from the catalog. */
|
|
678
|
+
description: string;
|
|
679
|
+
/**
|
|
680
|
+
* The allowlist apply would write: trimmed, de-duplicated, sorted ascending.
|
|
681
|
+
* Never null, and an **empty list is meaningful** — "this service does none
|
|
682
|
+
* of this, so enforcing forbids any".
|
|
683
|
+
*
|
|
684
|
+
* `allowed_transactions` items are `"<KIND>\toperation"`, TAB-separated —
|
|
685
|
+
* split on `\t` to render, never on a space.
|
|
686
|
+
*/
|
|
687
|
+
items: string[];
|
|
688
|
+
/** This rule's own level: `low` if violated live, `high` at 50+ live checks, else `medium`. */
|
|
689
|
+
confidence: InsightsRecommendationConfidenceLevel;
|
|
690
|
+
/** Live traces of this service checked silently against the proposed list. */
|
|
691
|
+
liveChecked: number;
|
|
692
|
+
/** Of those, how many carried something outside the list. > 0 means traffic already disagrees. */
|
|
693
|
+
liveViolated: number;
|
|
694
|
+
/** Null until the rule was first checked. Same Go zero-time caveat as the confidence block. */
|
|
695
|
+
liveSince?: string | null;
|
|
696
|
+
/** Null until the rule was first checked. Same Go zero-time caveat as the confidence block. */
|
|
697
|
+
liveLast?: string | null;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* One mined recommendation the operator can apply as-is, edit and apply, or
|
|
701
|
+
* dismiss. `title`, `summary`, `whyItMatters` and `confidence.reasons` are
|
|
702
|
+
* written by the engine, so the UI lays them out rather than interpreting the
|
|
703
|
+
* numbers itself.
|
|
704
|
+
*
|
|
705
|
+
* This is a **flattened union discriminated by `kind`**. Only the fields marked
|
|
706
|
+
* required below are present on both kinds; everything else belongs to one kind
|
|
707
|
+
* and is absent — not false, not zero, absent — on the other. And because the
|
|
708
|
+
* server uses `omitempty`, a kind's own field also vanishes when it is
|
|
709
|
+
* zero-valued, so read every optional as optional-with-default.
|
|
710
|
+
*/
|
|
711
|
+
export interface InsightsRecommendation {
|
|
712
|
+
id: string;
|
|
713
|
+
kind: InsightsRecommendationKind;
|
|
714
|
+
state: InsightsRecommendationState;
|
|
715
|
+
/** The latest mining run no longer produced this row. Orthogonal to `state`. */
|
|
716
|
+
stale: boolean;
|
|
717
|
+
/** Position among the scope's recommendations, 0 = strongest. Always 0 on a service card. */
|
|
718
|
+
rank: number;
|
|
719
|
+
/**
|
|
720
|
+
* The guardrail this would extend: `transaction` for `attribute_correlation`,
|
|
721
|
+
* `service` for `service_guardrail`.
|
|
722
|
+
*/
|
|
723
|
+
scope: InsightsPolicyScope;
|
|
724
|
+
/** Decimal transaction id for `attribute_correlation`, `"<namespace>/<service>"` for `service_guardrail`. */
|
|
725
|
+
scopeKey: string;
|
|
726
|
+
/** `attribute_correlation` only — a service card has no transaction. */
|
|
727
|
+
transactionId?: string | null;
|
|
728
|
+
/** `attribute_correlation` only. */
|
|
729
|
+
transactionKind?: InsightsTransactionKind | null;
|
|
730
|
+
service: string;
|
|
731
|
+
namespace: string;
|
|
732
|
+
/** `attribute_correlation` only — a service card covers every operation. */
|
|
733
|
+
operation?: string | null;
|
|
734
|
+
/**
|
|
735
|
+
* One-line headline, e.g. "resolvePrincipal return.value matches getCart arg.0"
|
|
736
|
+
* or "Lock down account-service". Never parse anything out of it — in
|
|
737
|
+
* particular the rule count is `rules.length`, it is not in the title.
|
|
738
|
+
*/
|
|
739
|
+
title: string;
|
|
740
|
+
/** One sentence explaining what this would do and on what evidence. */
|
|
741
|
+
summary: string;
|
|
742
|
+
/** The security story — what breaking this would mean. */
|
|
743
|
+
whyItMatters: string;
|
|
744
|
+
/**
|
|
745
|
+
* `attribute_correlation` only. How the two values relate: `exact`
|
|
746
|
+
* (identical), `core` (identical after a constant prefix/suffix), `digits`
|
|
747
|
+
* (same numeric id), `contains` (one value is embedded in the other).
|
|
748
|
+
*/
|
|
749
|
+
transform?: string | null;
|
|
750
|
+
/**
|
|
751
|
+
* `attribute_correlation` only. Guaranteed by the transport rather than by
|
|
752
|
+
* business logic — the same field on both ends of one hop, such as a Kafka
|
|
753
|
+
* message key. Shown as a tag, mined at low severity, and ranked after every
|
|
754
|
+
* business relation. Absent rather than `false` when it does not apply.
|
|
755
|
+
*/
|
|
756
|
+
transport?: boolean | null;
|
|
757
|
+
/**
|
|
758
|
+
* `attribute_correlation` only. The exact rule apply would add; edit it and
|
|
759
|
+
* pass it back to apply something else. **Never send it with a
|
|
760
|
+
* `service_guardrail` id** — the server validates the spec before it knows
|
|
761
|
+
* the kind, so it can 400 the whole batch.
|
|
762
|
+
*/
|
|
763
|
+
spec?: InsightsCorrelationSpec | null;
|
|
764
|
+
confidence: InsightsRecommendationConfidence;
|
|
765
|
+
/** `attribute_correlation` only. Up to three stored samples the relation held on. */
|
|
766
|
+
examples?: InsightsRecommendationExample[] | null;
|
|
767
|
+
/**
|
|
768
|
+
* `attribute_correlation` only. The transaction's guardrail already has a rule
|
|
769
|
+
* on the same two attributes (e.g. written by hand), so applying would replace it.
|
|
770
|
+
*/
|
|
771
|
+
alreadyCovered?: boolean | null;
|
|
772
|
+
/**
|
|
773
|
+
* `service_guardrail` only. The allowlist rules apply would write, in catalog
|
|
774
|
+
* order. Rules the service already enforces (or switched off) are left out,
|
|
775
|
+
* so applying only ever extends a guardrail.
|
|
776
|
+
*/
|
|
777
|
+
rules?: InsightsRecommendationRule[] | null;
|
|
778
|
+
/**
|
|
779
|
+
* `service_guardrail` only, and only once applied: the rule keys that apply
|
|
780
|
+
* actually turned on — a subset of `rules[]` when the operator edited first.
|
|
781
|
+
*/
|
|
782
|
+
appliedRules?: string[] | null;
|
|
783
|
+
minedAt: string;
|
|
784
|
+
createdAt: string;
|
|
785
|
+
updatedAt: string;
|
|
786
|
+
}
|
|
787
|
+
export interface InsightsRecommendationItemError {
|
|
788
|
+
id: string;
|
|
789
|
+
error: string;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Outcome of a bulk action. Items are independent — one failing does not stop
|
|
793
|
+
* the rest — so `done` and `errors` can both be non-empty. Always check
|
|
794
|
+
* `errors`, not just the absence of a request error.
|
|
795
|
+
*/
|
|
796
|
+
export interface InsightsRecommendationBulkResult {
|
|
797
|
+
done: number;
|
|
798
|
+
failed: number;
|
|
799
|
+
errors: InsightsRecommendationItemError[];
|
|
800
|
+
}
|
|
801
|
+
/** One recommendation to apply, optionally with the operator's edits. */
|
|
802
|
+
export interface InsightsRecommendationApplyItemInput {
|
|
803
|
+
id: string;
|
|
804
|
+
/**
|
|
805
|
+
* `attribute_correlation` only. Optional edited rule applied instead of the
|
|
806
|
+
* mined one. Left/right service, span and attr must match the recommendation;
|
|
807
|
+
* name, severity, why, relation and extract regexes may differ.
|
|
808
|
+
*
|
|
809
|
+
* ⚠ Never send it alongside a `service_guardrail` id: the server validates
|
|
810
|
+
* every spec before it knows the item's kind, so an invalid one rejects the
|
|
811
|
+
* **whole** request with a 400, even though it would then be ignored.
|
|
812
|
+
*/
|
|
813
|
+
spec?: InsightsCorrelationSpecInput | null;
|
|
814
|
+
/**
|
|
815
|
+
* `service_guardrail` only. Which of the card's rules to turn on — the
|
|
816
|
+
* "edit & apply" subset selector.
|
|
817
|
+
*
|
|
818
|
+
* ⚠ Omitting it, sending `[]`, or sending only blanks all mean **every rule
|
|
819
|
+
* on the card**. There is no way to say "apply nothing": a UI that wants that
|
|
820
|
+
* must not call apply at all. A key that is not on the card fails that one
|
|
821
|
+
* item; a key that has meanwhile been enforced or switched off is skipped
|
|
822
|
+
* silently, and the item only fails when every selected rule was skipped.
|
|
823
|
+
*/
|
|
824
|
+
rules?: string[] | null;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* How a spec fares on the transaction's stored relation samples. Backs the
|
|
828
|
+
* "edit & apply" flow so the operator sees how often the rule would have held
|
|
829
|
+
* before enforcing it.
|
|
830
|
+
*/
|
|
831
|
+
export interface InsightsRecommendationPreview {
|
|
832
|
+
sampleCount: number;
|
|
833
|
+
observed: number;
|
|
834
|
+
held: number;
|
|
835
|
+
distinct: number;
|
|
836
|
+
holdRatio: number;
|
|
837
|
+
examples: InsightsRecommendationExample[];
|
|
838
|
+
/** Up to three samples where the relation did not hold. */
|
|
839
|
+
counterExamples: InsightsRecommendationExample[];
|
|
840
|
+
}
|
|
550
841
|
export interface InsightsCatalogClass {
|
|
551
842
|
id: string;
|
|
552
843
|
label: string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare enum InstrumentationAgentTier {
|
|
2
|
+
Community = "community",
|
|
3
|
+
Enterprise = "enterprise"
|
|
4
|
+
}
|
|
5
|
+
export declare enum InstrumentationAgentKind {
|
|
6
|
+
Ebpf = "ebpf",
|
|
7
|
+
CodeAgent = "code_agent"
|
|
8
|
+
}
|
|
9
|
+
export interface InstrumentationAgent {
|
|
10
|
+
language: string;
|
|
11
|
+
distroName: string;
|
|
12
|
+
distroDisplayName: string;
|
|
13
|
+
description: string;
|
|
14
|
+
tier: InstrumentationAgentTier;
|
|
15
|
+
kind: InstrumentationAgentKind;
|
|
16
|
+
runtimeEnvironment: string;
|
|
17
|
+
supportedRuntimeVersions: string;
|
|
18
|
+
instrumentedContainers: number;
|
|
19
|
+
uninstrumentedContainers: number;
|
|
20
|
+
/** Sources holding at least one container of this language. A source running more than one language is counted on each agent. */
|
|
21
|
+
sources: number;
|
|
22
|
+
}
|
|
23
|
+
/** A minor version line (e.g. `1.21`) and the patch versions offsets exist for. */
|
|
24
|
+
export interface GoOffsetMinorVersion {
|
|
25
|
+
minorVersion: string;
|
|
26
|
+
versions: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface GoOffsetModule {
|
|
29
|
+
module: string;
|
|
30
|
+
minVersion: string;
|
|
31
|
+
maxVersion: string;
|
|
32
|
+
minorVersions: GoOffsetMinorVersion[];
|
|
33
|
+
}
|
|
34
|
+
/** Struct field offsets the Go eBPF agent uses to read instrumented libraries. */
|
|
35
|
+
export interface GoOffsets {
|
|
36
|
+
/** False when the odigos-go-offsets ConfigMap is missing from the cluster; an update recreates it. */
|
|
37
|
+
installed: boolean;
|
|
38
|
+
timestamp: string;
|
|
39
|
+
mods: GoOffsetModule[];
|
|
40
|
+
}
|
|
41
|
+
export interface GoOffsetVersionUpdate {
|
|
42
|
+
version: string;
|
|
43
|
+
isNew: boolean;
|
|
44
|
+
isRemoved: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface GoOffsetMinorVersionUpdate {
|
|
47
|
+
minorVersion: string;
|
|
48
|
+
isNew: boolean;
|
|
49
|
+
isRemoved: boolean;
|
|
50
|
+
versions: GoOffsetVersionUpdate[];
|
|
51
|
+
}
|
|
52
|
+
export interface GoOffsetModuleUpdate {
|
|
53
|
+
module: string;
|
|
54
|
+
isNew: boolean;
|
|
55
|
+
isRemoved: boolean;
|
|
56
|
+
minVersion: string;
|
|
57
|
+
maxVersion: string;
|
|
58
|
+
minorVersions: GoOffsetMinorVersionUpdate[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Result of diffing a candidate offsets manifest against the installed one.
|
|
62
|
+
* An update overwrites the manifest, so `mods` is the union of both sets: the
|
|
63
|
+
* same list renders the current state plus everything the update would add
|
|
64
|
+
* (`isNew`) or drop (`isRemoved`).
|
|
65
|
+
*/
|
|
66
|
+
export interface GoOffsetsUpdateCheck {
|
|
67
|
+
hasUpdates: boolean;
|
|
68
|
+
currentTimestamp: string;
|
|
69
|
+
proposedTimestamp: string;
|
|
70
|
+
mods: GoOffsetModuleUpdate[];
|
|
71
|
+
}
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f0 as ActionCategoryTypes,bI as ActionKeyTypes,bJ as ActionType,nz as AgentInjectedReason,nA as BooleanOperation,f9 as CloudConnectorFeatureKey,aj as CodeAttributesKeyTypes,nB as ConditionType,bg as Crud,ad as CustomInstrumentationsKeyTypes,fJ as DesiredConditionActionItemType,fn as DesiredStateProgress,nC as DestinationTypes,bh as EntityTypes,cm as ExtractionDataFormat,o as FieldTypes,af as GolangCustomProbe,ah as HeadersCollectionKeyTypes,G as InputTypes,nD as InsightsAnomalyClassFindingKind,k6 as InsightsAnomalyResolution,k3 as InsightsAnomalyStatus,nE as InsightsBaselineHistogramUnit,k7 as InsightsBaselineLearningPhase,k5 as InsightsBulkResolution,bX as InsightsCorrelationRelation,c5 as InsightsDeviationClass,bp as InsightsEntityTypes,k4 as InsightsFindingKind,c7 as InsightsLearningConditionType,c9 as InsightsLearningMode,b_ as InsightsPolicyScope,kd as InsightsRecommendationConfidenceLevel,ke as InsightsRecommendationKind,ky as InsightsRecommendationRuleKey,kc as InsightsRecommendationState,b$ as InsightsRuleMode,ll as InsightsSampleReason,bW as InsightsSeverity,lS as InsightsStorageDiskStatus,nF as InsightsStorageHealthStatus,cZ as InsightsTransactionKind,k2 as InsightsViolationStatus,nG as InstallationMethod,nH as InstallationStatus,nI as InstrumentationAgentKind,nJ as InstrumentationAgentTier,ac as InstrumentationRuleType,nK as IntrumentationStatus,ae as JavaCustomProbe,nL as JsonOperation,ck as K8sAttributesFrom,ce as K8sResourceKind,nM as K8sWorkloadContainerAgentConfigTracesHeadSamplingSpanMetricsMode,nN as ListDirection,nO as NumberOperation,nP as OtelDistroName,bq as OtherEntityTypes,ai as PayloadCollectionKeyTypes,ag as PhpCustomProbe,P as PlatformType,nQ as PodContainerLifecycleStatus,nR as PodContainerStatus,nS as PodPhase,nT as Profile,X as ProgrammingLanguages,gr as RecommendationApplyExampleType,nU as RecommendationRemediationType,go as RecommendationState,nV as RecommendationType,nW as SIGNAL_KEY_TO_TYPE,nX as SIGNAL_TYPE_TO_KEY,nY as SignalKey,bO as SignalType,nZ as SortDirection,S as StatusType,n_ as StringOperation,b as Tier,n$ as WorkloadRolloutReason,mo as WorkloadRolloutStatus}from"./chunks/ui-components-DRnj62bc.js";import"react/jsx-runtime";import"react";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"flubber";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{jZ as VISUAL_CONNECTION_MORPH_HEIGHT,jY as VISUAL_CONNECTION_MORPH_WIDTH,o0 as VISUAL_ODIGOS_LOGO_HEIGHT,o1 as VISUAL_ODIGOS_LOGO_WIDTH,o2 as VISUAL_TERMINAL_HEIGHT,o3 as VISUAL_TERMINAL_WIDTH,jX as VisualConnectionMorph,b4 as VisualGreenRings,o4 as VisualOdigosLogo,iS as VisualPurpleRings,o5 as VisualTerminal}from"./chunks/ui-components-DRnj62bc.js";import"react/jsx-runtime";import"react";import"styled-components";import"./icons.js";import"zustand";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"flubber";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|