Skip to content

Commit

Permalink
[opencti] Align input for network traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Feb 27, 2024
1 parent 80ed335 commit 60b029a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5788,8 +5788,8 @@ input NetworkTrafficAddInput {
start: DateTime
end: DateTime
is_active: Boolean
src: String
dst: String
networkSrc: String
networkDst: String
src_port: Int
dst_port: Int
protocols: [String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8282,8 +8282,8 @@ input NetworkTrafficAddInput {
start: DateTime
end: DateTime
is_active: Boolean
src: String
dst: String
networkSrc: String
networkDst: String
src_port: Int
dst_port: Int
protocols: [String]
Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14983,15 +14983,15 @@ export type NetworkTrafficStixCoreRelationshipsDistributionArgs = {
};

export type NetworkTrafficAddInput = {
dst?: InputMaybe<Scalars['String']['input']>;
dst_byte_count?: InputMaybe<Scalars['Int']['input']>;
dst_packets?: InputMaybe<Scalars['Int']['input']>;
dst_port?: InputMaybe<Scalars['Int']['input']>;
end?: InputMaybe<Scalars['DateTime']['input']>;
file?: InputMaybe<Scalars['Upload']['input']>;
is_active?: InputMaybe<Scalars['Boolean']['input']>;
networkDst?: InputMaybe<Scalars['String']['input']>;
networkSrc?: InputMaybe<Scalars['String']['input']>;
protocols?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
src?: InputMaybe<Scalars['String']['input']>;
src_byte_count?: InputMaybe<Scalars['Int']['input']>;
src_packets?: InputMaybe<Scalars['Int']['input']>;
src_port?: InputMaybe<Scalars['Int']['input']>;
Expand Down
6 changes: 3 additions & 3 deletions opencti-platform/opencti-graphql/src/schema/identifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { now } from '../utils/format';
import { ENTITY_TYPE_VOCABULARY } from '../modules/vocabulary/vocabulary-types';
import { isBasicRelationship } from './stixRelationship';
import { convertTypeToStixType } from '../database/stix-converter';
import { isStixRefRelationship } from './stixRefRelationship';
import { INPUT_DST, INPUT_SRC, isStixRefRelationship } from './stixRefRelationship';

// region hashes
const MD5 = 'MD5';
Expand Down Expand Up @@ -112,8 +112,8 @@ const stixBaseCyberObservableContribution = {
[C.ENTITY_NETWORK_TRAFFIC]: [ // start, (!) end, src_ref, dst_ref, src_port, dst_port, protocols, (!) extensions
{ src: 'start' },
{ src: 'end' },
{ src: 'src', dest: 'src_ref' },
{ src: 'dst', dest: 'dst_ref' },
{ src: INPUT_SRC, dest: 'src_ref' },
{ src: INPUT_DST, dest: 'dst_ref' },
{ src: 'src_port' },
{ src: 'dst_port' },
{ src: 'protocols' },
Expand Down

0 comments on commit 60b029a

Please sign in to comment.